anv: Generalize some aux usage checks
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 6 Mar 2020 22:21:55 +0000 (16:21 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 16:17:45 +0000 (16:17 +0000)
commit0d91dae7f0855aa6cd36d247ee126f7030f75137
tree70174e2fdc8f9760a2c9b289c4dc37d7c275b3fc
parent86ded00c4021e015ac38a3274309414b2e0b6caa
anv: Generalize some aux usage checks

For the checks dealing with fast-clear values, we change them to check
for the depth aspect because the distinction there really is between
color and depth more than between HiZ and CCS.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4100>
src/intel/vulkan/anv_image.c
src/intel/vulkan/genX_cmd_buffer.c