diff options
author | Jason Ekstrand <[email protected]> | 2020-03-06 19:22:57 -0600 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-24 16:17:45 +0000 |
commit | 65e541ab16a156b0128e4c6917af86d0a6be264c (patch) | |
tree | 0734a5ec90b31bed6f3d1ff3dd591b80eaff00dd /src | |
parent | 5cb6c5d11d3eee083bb16942cb294434626cc14c (diff) |
anv: Simplify a case in layout_to_aux_usage
If it's depth, the only possible value of planes[plane].aux_usage is
ISL_AUX_USAGE_HIZ at least right now.
Reviewed-by: Rafael Antognolli <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4100>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_image.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index ea9be68e762..3fb48d0b3cd 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -1499,12 +1499,7 @@ anv_layout_to_aux_usage(const struct gen_device_info * const devinfo, case ISL_AUX_STATE_COMPRESSED_CLEAR: case ISL_AUX_STATE_COMPRESSED_NO_CLEAR: - if (aspect == VK_IMAGE_ASPECT_DEPTH_BIT) { - return ISL_AUX_USAGE_HIZ; - } else { - assert(image->planes[plane].aux_usage != ISL_AUX_USAGE_NONE); - return image->planes[plane].aux_usage; - } + return image->planes[plane].aux_usage; case ISL_AUX_STATE_RESOLVED: /* We can only use RESOLVED in read-only layouts because any write will |