Module: wine Branch: master Commit: 864bef4c193276eefc8198ea2b91b5339d210db3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=864bef4c193276eefc8198ea2b...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Jul 17 14:01:36 2017 +0200
wined3d: Make a FIXME in cpu_blitter_clear() slightly more accurate.
The issue isn't so much stencil clears as clearing either depth or stencil on formats that contain both.
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/surface.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index c1bb53e..c914e8d 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -3499,12 +3499,15 @@ static void cpu_blitter_clear(struct wined3d_blitter *blitter, struct wined3d_de } }
- if ((flags & WINED3DCLEAR_ZBUFFER) && (view = fb->depth_stencil)) + if ((flags & (WINED3DCLEAR_ZBUFFER | WINED3DCLEAR_STENCIL)) && (view = fb->depth_stencil)) + { + if ((view->format->depth_size && !(flags & WINED3DCLEAR_ZBUFFER)) + || (view->format->stencil_size && !(flags & WINED3DCLEAR_STENCIL))) + FIXME("Clearing %#x on %s.\n", flags, debug_d3dformat(view->format->id)); + surface_cpu_blt_colour_fill(view, &box, &c); + } } - - if (flags & ~(WINED3DCLEAR_TARGET | WINED3DCLEAR_ZBUFFER)) - FIXME("flags %#x not implemented.\n", flags); }
static void cpu_blitter_blit(struct wined3d_blitter *blitter, enum wined3d_blit_op op,