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
74c97c9a
Commit
74c97c9a
authored
Feb 01, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the resource access flags in wined3d_surface_blt().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4928e38c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
surface.c
dlls/wined3d/surface.c
+6
-6
No files found.
dlls/wined3d/surface.c
View file @
74c97c9a
...
...
@@ -3854,10 +3854,10 @@ HRESULT wined3d_surface_blt(struct wined3d_surface *dst_surface, const RECT *dst
{
TRACE
(
"Depth/stencil blit.
\n
"
);
if
(
dst_texture
->
resource
.
pool
==
WINED3D_POOL_SYSTEM_MEM
)
dst_location
=
dst_texture
->
resource
.
map_binding
;
else
if
(
dst_texture
->
resource
.
access
&
WINED3D_RESOURCE_ACCESS_GPU
)
dst_location
=
dst_texture
->
resource
.
draw_binding
;
else
dst_location
=
dst_texture
->
resource
.
map_binding
;
context
=
context_acquire
(
device
,
dst_texture
,
dst_sub_resource_idx
);
valid_locations
=
device
->
blitter
->
ops
->
blitter_blit
(
device
->
blitter
,
...
...
@@ -3959,10 +3959,10 @@ HRESULT wined3d_surface_blt(struct wined3d_surface *dst_surface, const RECT *dst
blit_op
=
WINED3D_BLIT_OP_RAW_BLIT
;
}
if
(
dst_texture
->
resource
.
pool
==
WINED3D_POOL_SYSTEM_MEM
)
dst_location
=
dst_texture
->
resource
.
map_binding
;
else
if
(
dst_texture
->
resource
.
access
&
WINED3D_RESOURCE_ACCESS_GPU
)
dst_location
=
dst_texture
->
resource
.
draw_binding
;
else
dst_location
=
dst_texture
->
resource
.
map_binding
;
context
=
context_acquire
(
device
,
dst_texture
,
dst_sub_resource_idx
);
valid_locations
=
device
->
blitter
->
ops
->
blitter_blit
(
device
->
blitter
,
blit_op
,
context
,
...
...
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