i915g: actually try to clear 16bit depth bufs
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 25 Sep 2011 16:35:12 +0000 (18:35 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Oct 2011 12:31:17 +0000 (14:31 +0200)
... with the right value.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/gallium/drivers/i915/i915_clear.c

index bb8ff91767ad5aede5bd5d6bd1bd256ddf8ff7a3..8e2541d51d6e876e3b33c69ff8366e69a14f8e63 100644 (file)
@@ -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;
       }
    }