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
4928e38c
Commit
4928e38c
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 ffp_blitter_use_cpu_clear().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
df715e5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
surface.c
dlls/wined3d/surface.c
+5
-3
No files found.
dlls/wined3d/surface.c
View file @
4928e38c
...
...
@@ -2744,14 +2744,16 @@ static BOOL ffp_blitter_use_cpu_clear(struct wined3d_rendertarget_view *view)
resource
=
view
->
resource
;
if
(
resource
->
type
==
WINED3D_RTYPE_BUFFER
)
return
resource
->
pool
==
WINED3D_POOL_SYSTEM_MEM
;
return
!
(
resource
->
access
&
WINED3D_RESOURCE_ACCESS_GPU
)
;
texture
=
texture_from_resource
(
resource
);
locations
=
texture
->
sub_resources
[
view
->
sub_resource_idx
].
locations
;
if
(
locations
&
(
resource
->
map_binding
|
WINED3D_LOCATION_DISCARDED
))
return
resource
->
pool
==
WINED3D_POOL_SYSTEM_MEM
||
(
texture
->
flags
&
WINED3D_TEXTURE_PIN_SYSMEM
);
return
!
(
resource
->
access
&
WINED3D_RESOURCE_ACCESS_GPU
)
||
(
texture
->
flags
&
WINED3D_TEXTURE_PIN_SYSMEM
);
return
resource
->
pool
==
WINED3D_POOL_SYSTEM_MEM
&&
!
(
texture
->
flags
&
WINED3D_TEXTURE_CONVERTED
);
return
!
(
resource
->
access
&
WINED3D_RESOURCE_ACCESS_GPU
)
&&
!
(
texture
->
flags
&
WINED3D_TEXTURE_CONVERTED
);
}
static
void
ffp_blitter_clear
(
struct
wined3d_blitter
*
blitter
,
struct
wined3d_device
*
device
,
...
...
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