anv: Replace anv_image_has_hiz() with ISL_AUX_USAGE_HIZ

The helper doesn't provide additional functionality over the current
infrastructure.

v2: Add comment to anv_image::aux_usage (Jason Ekstrand)
v3: Clarify comment for aux_usage (Jason Ekstrand)

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Nanley Chery
2017-01-07 15:10:57 -08:00
parent 160a54810e
commit 055ff2ec52
5 changed files with 18 additions and 16 deletions

View File

@@ -337,7 +337,7 @@ genX(cmd_buffer_emit_hz_op)(struct anv_cmd_buffer *cmd_buffer,
const struct anv_image_view *iview =
anv_cmd_buffer_get_depth_stencil_view(cmd_buffer);
if (iview == NULL || !anv_image_has_hiz(iview->image))
if (iview == NULL || iview->image->aux_usage != ISL_AUX_USAGE_HIZ)
return;
/* FINISHME: Implement multi-subpass HiZ */