summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2011-09-25 18:35:12 +0200
committerDaniel Vetter <[email protected]>2011-10-07 14:31:17 +0200
commitce775dc1b6601bb7272054b87fcb574c19265c63 (patch)
tree8bbbda6c4f55f1c0b93ba75ffc8f61adc9aff7e0 /src/gallium/drivers/i915
parent661b7ef9a89b8f5a10cb8ca8a23365bce1f1cbc5 (diff)
i915g: actually try to clear 16bit depth bufs
... with the right value. Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r--src/gallium/drivers/i915/i915_clear.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}