Mesa (master): anv/cmd_buffer: Fix programmed HiZ qpitch

Nanley Chery nchery at kemper.freedesktop.org
Thu Jan 12 01:36:06 UTC 2017


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

Author: Nanley Chery <nanley.g.chery at intel.com>
Date:   Thu Jan  5 01:23:27 2017 -0800

anv/cmd_buffer: Fix programmed HiZ qpitch

Match the comment above the field by using units of pixels and not HiZ
blocks.

Cc: mesa-stable at lists.freedesktop.org
Suggested-by: Jason Ekstrand <jason at jlekstrand.net>
Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/intel/vulkan/genX_cmd_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index a2782dc..7ff0d3e 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -2191,7 +2191,7 @@ cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer)
           * 2-D images.  Prior to Sky Lake, this field is always in rows.
           */
          hdb.SurfaceQPitch =
-            isl_surf_get_array_pitch_el_rows(&image->aux_surface.isl) >> 2;
+            isl_surf_get_array_pitch_sa_rows(&image->aux_surface.isl) >> 2;
 #endif
       }
    } else {




More information about the mesa-commit mailing list