diff options
author | Nanley Chery <[email protected]> | 2017-01-07 15:10:57 -0800 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2017-01-12 20:52:19 -0800 |
commit | 055ff2ec52143f9d9110a27cea046087de7a0cb5 (patch) | |
tree | 6581b1c665730edfaf2cb01c656dd2a2af9e3cc3 /src/intel/vulkan/gen8_cmd_buffer.c | |
parent | 160a54810ebf05857ee46a5410b9893046357a1c (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/gen8_cmd_buffer.c')
-rw-r--r-- | src/intel/vulkan/gen8_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/gen8_cmd_buffer.c b/src/intel/vulkan/gen8_cmd_buffer.c index 3e4aa9bc623..892a035304e 100644 --- a/src/intel/vulkan/gen8_cmd_buffer.c +++ b/src/intel/vulkan/gen8_cmd_buffer.c @@ -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 */ |