From d5a941b7d9a7ded14febdb3cf2a33e4ee9433bfd Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Thu, 5 Jan 2017 01:23:27 -0800 Subject: [PATCH] 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@lists.freedesktop.org Suggested-by: Jason Ekstrand Signed-off-by: Nanley Chery Reviewed-by: Jason Ekstrand (cherry picked from commit 9f1d3a0c971e95c9e04cf6bfcd60f8b0d8c6742b) --- 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 695b78bd40d..897c34a5d87 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -1822,7 +1822,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 {