anv: Replace aux_surface.isl.size_B checks with aux_usage checks
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 21 Jan 2020 23:21:47 +0000 (17:21 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 21:07:26 +0000 (21:07 +0000)
commit41bffe091350d858ae4f82d179671c6cfb44253b
tree32f2696079a5ddb15108b215a8a318a25142bbe3
parente693a57232a45df6093e583ec5a105d04d2f4c13
anv: Replace aux_surface.isl.size_B checks with aux_usage checks

Now that aux_usage has a unified meaning, aux_usage == NONE if and only
if aux_surface.isl.size_B > 0.  In most of these cases, the question
we're asking is "does have compression?" and not "have we allocated an
aux surface for compression?".

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3556>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3556>
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c