diff options
author | Nanley Chery <[email protected]> | 2017-01-07 15:47:36 -0800 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2017-01-12 20:52:19 -0800 |
commit | 160a54810ebf05857ee46a5410b9893046357a1c (patch) | |
tree | 5f95b6a95927b1eb8e707489ac2e0afdb91cfc9a /src/intel | |
parent | 09948151ab1d5184b4dd9052bb1f710fa1e00a7b (diff) |
anv/blorp: Handle ISL_AUX_USAGE_HIZ
Prevent assert failures that would occur in the next patch.
v2: Don't remove asserts from blorp/blit (Jason Ekstrand)
Signed-off-by: Nanley Chery <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index b431d6af485..7e157b4d266 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -172,7 +172,8 @@ get_blorp_surf_for_anv_image(const struct anv_image *image, enum isl_aux_usage aux_usage, struct blorp_surf *blorp_surf) { - if (aspect == VK_IMAGE_ASPECT_STENCIL_BIT) + if (aspect == VK_IMAGE_ASPECT_STENCIL_BIT || + aux_usage == ISL_AUX_USAGE_HIZ) aux_usage = ISL_AUX_USAGE_NONE; const struct anv_surface *surface = |