Mesa (master): i965/gen8: Set depth extent field

Jordan Justen jljusten at kemper.freedesktop.org
Tue May 13 21:56:47 UTC 2014


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

Author: Jordan Justen <jordan.l.justen at intel.com>
Date:   Tue May 13 18:06:59 2014 +0000

i965/gen8: Set depth extent field

The depth extent field is used to limit the allowed slice range that
can be rendered to.

With the previous setting, only slice 0 could be rendered.

This fixes piglit amd_vertex_shader_layer-layered-depth-texture-render.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>

---

 src/mesa/drivers/dri/i965/gen8_depth_state.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/gen8_depth_state.c b/src/mesa/drivers/dri/i965/gen8_depth_state.c
index 0bed3b4..8c70c62 100644
--- a/src/mesa/drivers/dri/i965/gen8_depth_state.c
+++ b/src/mesa/drivers/dri/i965/gen8_depth_state.c
@@ -75,7 +75,7 @@ emit_depth_packets(struct brw_context *brw,
    OUT_BATCH(((width - 1) << 4) | ((height - 1) << 18) | lod);
    OUT_BATCH(((depth - 1) << 21) | (min_array_element << 10) | BDW_MOCS_WB);
    OUT_BATCH(0);
-   OUT_BATCH(depth_mt ? depth_mt->qpitch >> 2 : 0);
+   OUT_BATCH(((depth - 1) << 21) | (depth_mt ? depth_mt->qpitch >> 2 : 0));
    ADVANCE_BATCH();
 
    if (!hiz) {




More information about the mesa-commit mailing list