Henri Verbeet : wined3d: Use the CPU blitter for clearing depth/ stencil textures that are current in the map binding.
Module: wine Branch: master Commit: 2f0b9452358125063f03cadde77374e030136daf URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f0b9452358125063f03cadde7... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue May 2 11:35:29 2017 +0200 wined3d: Use the CPU blitter for clearing depth/stencil textures that are current in the map binding. Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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; }
participants (1)
-
Alexandre Julliard