Mesa (master): i915g: actually try to clear 16bit depth bufs

Daniel Vetter danvet at kemper.freedesktop.org
Fri Oct 7 12:47:46 UTC 2011


Module: Mesa
Branch: master
Commit: ce775dc1b6601bb7272054b87fcb574c19265c63
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ce775dc1b6601bb7272054b87fcb574c19265c63

Author: Daniel Vetter <daniel.vetter at ffwll.ch>
Date:   Sun Sep 25 18:35:12 2011 +0200

i915g: actually try to clear 16bit depth bufs

... with the right value.

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>

---

 src/gallium/drivers/i915/i915_clear.c |    2 +-
 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 bb8ff91..8e2541d 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;
       }
    }




More information about the mesa-commit mailing list