From: Daniel Vetter Date: Sun, 25 Sep 2011 16:35:12 +0000 (+0200) Subject: i915g: actually try to clear 16bit depth bufs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce775dc1b6601bb7272054b87fcb574c19265c63;p=mesa.git i915g: actually try to clear 16bit depth bufs ... with the right value. Signed-off-by: Daniel Vetter --- 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; } }