Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
916b1564
Commit
916b1564
authored
Sep 08, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Sep 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Rename wined3d_resource_from_resource() to wined3d_resource_from_d3d10_resource().
parent
41740bec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
d3d11_private.h
dlls/d3d11/d3d11_private.h
+1
-1
device.c
dlls/d3d11/device.c
+5
-5
utils.c
dlls/d3d11/utils.c
+1
-1
view.c
dlls/d3d11/view.c
+3
-3
No files found.
dlls/d3d11/d3d11_private.h
View file @
916b1564
...
...
@@ -63,7 +63,7 @@ const char *debug_dxgi_format(DXGI_FORMAT format) DECLSPEC_HIDDEN;
DXGI_FORMAT
dxgi_format_from_wined3dformat
(
enum
wined3d_format_id
format
)
DECLSPEC_HIDDEN
;
enum
wined3d_format_id
wined3dformat_from_dxgi_format
(
DXGI_FORMAT
format
)
DECLSPEC_HIDDEN
;
DWORD
wined3d_usage_from_d3d11
(
UINT
bind_flags
,
enum
D3D11_USAGE
usage
)
DECLSPEC_HIDDEN
;
struct
wined3d_resource
*
wined3d_resource_from_resource
(
ID3D10Resource
*
resource
)
DECLSPEC_HIDDEN
;
struct
wined3d_resource
*
wined3d_resource_from_
d3d10_
resource
(
ID3D10Resource
*
resource
)
DECLSPEC_HIDDEN
;
DWORD
wined3d_map_flags_from_d3d10_map_type
(
D3D10_MAP
map_type
)
DECLSPEC_HIDDEN
;
enum
D3D11_USAGE
d3d11_usage_from_d3d10_usage
(
enum
D3D10_USAGE
usage
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3d11/device.c
View file @
916b1564
...
...
@@ -1139,8 +1139,8 @@ static void STDMETHODCALLTYPE d3d10_device_CopySubresourceRegion(ID3D10Device1 *
iface
,
dst_resource
,
dst_subresource_idx
,
dst_x
,
dst_y
,
dst_z
,
src_resource
,
src_subresource_idx
,
src_box
);
wined3d_dst_resource
=
wined3d_resource_from_resource
(
dst_resource
);
wined3d_src_resource
=
wined3d_resource_from_resource
(
src_resource
);
wined3d_dst_resource
=
wined3d_resource_from_
d3d10_
resource
(
dst_resource
);
wined3d_src_resource
=
wined3d_resource_from_
d3d10_
resource
(
src_resource
);
wined3d_src_box
.
left
=
src_box
->
left
;
wined3d_src_box
.
top
=
src_box
->
top
;
wined3d_src_box
.
front
=
src_box
->
front
;
...
...
@@ -1161,8 +1161,8 @@ static void STDMETHODCALLTYPE d3d10_device_CopyResource(ID3D10Device1 *iface,
TRACE
(
"iface %p, dst_resource %p, src_resource %p.
\n
"
,
iface
,
dst_resource
,
src_resource
);
wined3d_dst_resource
=
wined3d_resource_from_resource
(
dst_resource
);
wined3d_src_resource
=
wined3d_resource_from_resource
(
src_resource
);
wined3d_dst_resource
=
wined3d_resource_from_
d3d10_
resource
(
dst_resource
);
wined3d_src_resource
=
wined3d_resource_from_
d3d10_
resource
(
src_resource
);
wined3d_mutex_lock
();
wined3d_device_copy_resource
(
device
->
wined3d_device
,
wined3d_dst_resource
,
wined3d_src_resource
);
wined3d_mutex_unlock
();
...
...
@@ -1189,7 +1189,7 @@ static void STDMETHODCALLTYPE d3d10_device_UpdateSubresource(ID3D10Device1 *ifac
wined3d_box
.
back
=
box
->
back
;
}
wined3d_resource
=
wined3d_resource_from_resource
(
resource
);
wined3d_resource
=
wined3d_resource_from_
d3d10_
resource
(
resource
);
wined3d_mutex_lock
();
wined3d_device_update_sub_resource
(
device
->
wined3d_device
,
wined3d_resource
,
subresource_idx
,
box
?
&
wined3d_box
:
NULL
,
data
,
row_pitch
,
depth_pitch
);
...
...
dlls/d3d11/utils.c
View file @
916b1564
...
...
@@ -502,7 +502,7 @@ UINT d3d10_resource_misc_flags_from_d3d11_resource_misc_flags(UINT resource_misc
return
d3d10_resource_misc_flags
;
}
struct
wined3d_resource
*
wined3d_resource_from_resource
(
ID3D10Resource
*
resource
)
struct
wined3d_resource
*
wined3d_resource_from_
d3d10_
resource
(
ID3D10Resource
*
resource
)
{
D3D10_RESOURCE_DIMENSION
dimension
;
...
...
dlls/d3d11/view.c
View file @
916b1564
...
...
@@ -693,7 +693,7 @@ HRESULT d3d_depthstencil_view_init(struct d3d_depthstencil_view *view, struct d3
}
wined3d_mutex_lock
();
if
(
!
(
wined3d_resource
=
wined3d_resource_from_resource
(
resource
)))
if
(
!
(
wined3d_resource
=
wined3d_resource_from_
d3d10_
resource
(
resource
)))
{
wined3d_mutex_unlock
();
ERR
(
"Failed to get wined3d resource for d3d10 resource %p.
\n
"
,
resource
);
...
...
@@ -957,7 +957,7 @@ HRESULT d3d10_rendertarget_view_init(struct d3d10_rendertarget_view *view, struc
}
wined3d_mutex_lock
();
if
(
!
(
wined3d_resource
=
wined3d_resource_from_resource
(
resource
)))
if
(
!
(
wined3d_resource
=
wined3d_resource_from_
d3d10_
resource
(
resource
)))
{
wined3d_mutex_unlock
();
ERR
(
"Failed to get wined3d resource for d3d10 resource %p.
\n
"
,
resource
);
...
...
@@ -1158,7 +1158,7 @@ HRESULT d3d10_shader_resource_view_init(struct d3d10_shader_resource_view *view,
}
wined3d_mutex_lock
();
if
(
!
(
wined3d_resource
=
wined3d_resource_from_resource
(
resource
)))
if
(
!
(
wined3d_resource
=
wined3d_resource_from_
d3d10_
resource
(
resource
)))
{
ERR
(
"Failed to get wined3d resource for d3d10 resource %p.
\n
"
,
resource
);
return
E_FAIL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment