From ce775dc1b6601bb7272054b87fcb574c19265c63 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Sun, 25 Sep 2011 18:35:12 +0200 Subject: [PATCH] i915g: actually try to clear 16bit depth bufs ... with the right value. Signed-off-by: Daniel Vetter --- src/gallium/drivers/i915/i915_clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/i915/i915_clear.c b/src/gallium/drivers/i915/i915_clear.c index bb8ff91767a..8e2541d51d6 100644 --- a/src/gallium/drivers/i915/i915_clear.c +++ b/src/gallium/drivers/i915/i915_clear.c @@ -102,7 +102,7 @@ i915_clear_emit(struct pipe_context *pipe, unsigned buffers, depth_clear_bbp = 32; } else { - clear_depth = (clear_depth & 0xffff) | (clear_depth << 16); + clear_depth = (packed_z_stencil & 0xffff) | (packed_z_stencil << 16); depth_clear_bbp = 16; } } -- 2.30.2