Skip to content
Snippets Groups Projects
Commit d5a941b7 authored by Nanley Chery's avatar Nanley Chery Committed by Emil Velikov
Browse files

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: default avatarJason Ekstrand <jason@jlekstrand.net>
Signed-off-by: default avatarNanley Chery <nanley.g.chery@intel.com>
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 9f1d3a0c)
parent 8b3beddd
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment