anv: Rework the meaning of anv_image::planes[]::aux_usage
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 21 Jan 2020 23:13:30 +0000 (17:13 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 21:07:26 +0000 (21:07 +0000)
commite693a57232a45df6093e583ec5a105d04d2f4c13
tree084ee7e661fa3a155dd3e0709bbfb429f972e55c
parentde647190244d06d38e0e91874b0b84122da496c5
anv: Rework the meaning of anv_image::planes[]::aux_usage

Previously, we set aux_usage=ISL_AUX_USAGE_NONE when we really meant
CCS_D.  This sort-of made sense before we had anv_layout_to_aux_usage
but now that we have that helper.  However, in our more modern aux
tracking model, all aux usage goes through anv_layout_to_* and we're
better off making the meaning of anv_image::planes[]::aux_usage be
AUX_USAGE_NONE if and only if there is no compression.

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