anv/blorp: Use layout_to_aux_usage when a layout is provided
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Feb 2018 22:51:56 +0000 (14:51 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 20 Feb 2018 21:57:17 +0000 (13:57 -0800)
commitc66fb1211734fdee55062ccbeb5c546fce131dbc
tree7236753ac32c0f33416c17894cb5741ce25401f8
parent0fa040e6f52080ee7446ed5509c1c70085ea285b
anv/blorp: Use layout_to_aux_usage when a layout is provided

Instead of having aux usage and ANV_AUX_USAGE_DEFAULT to mean "give me
something reasonable" we now use anv_layout_to_aux_usage whenever a
layout is available.  If a layout is available, we ignore the aux_usage
parameter.  For the cases where we have an explicit aux usage such as
clears and aux ops, we have a new ANV_IMAGE_LAYOUT_EXPLICIT_AUX layout.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/intel/vulkan/anv_blorp.c