anv/cmd_buffer: Fix programmed HiZ qpitch
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 5 Jan 2017 09:23:27 +0000 (01:23 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 12 Jan 2017 01:35:59 +0000 (17:35 -0800)
Match the comment above the field by using units of pixels and not HiZ
blocks.

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

index a2782dcc4b6e27cbb2973f5eb1b1262a43494c12..7ff0d3ebba3c2800159c2d4cd958120a66cfd668 100644 (file)
@@ -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 {