[PATCH 4/5] wined3d: Use the CPU blitter for clearing depth/stencil textures that are current in the map binding.
Henri Verbeet
hverbeet at codeweavers.com
Tue May 2 04:35:29 CDT 2017
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/wined3d/surface.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 864a20c..e86119d 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2596,7 +2596,9 @@ static void ffp_blitter_clear(struct wined3d_blitter *blitter, struct wined3d_de
if (flags & (WINED3DCLEAR_ZBUFFER | WINED3DCLEAR_STENCIL))
{
- if (fb->depth_stencil && fb->depth_stencil->resource->pool == WINED3D_POOL_SYSTEM_MEM)
+ view = fb->depth_stencil;
+ if (view && (view->resource->pool == WINED3D_POOL_SYSTEM_MEM
+ || ffp_blitter_use_cpu_clear(view)))
goto next;
}
--
2.1.4
More information about the wine-patches
mailing list