iris: determine aux usage during predraw and state setup
authorTapani Pälli <tapani.palli@intel.com>
Thu, 12 Mar 2020 11:43:14 +0000 (13:43 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Mar 2020 10:34:21 +0000 (10:34 +0000)
commitcd132a8eed94955332db6c8b553141f1b261066f
tree89e67ab30c92ef252d3b7ed6be763de085beaa7c
parentd4c879e69e2e54d3f422367a51dc4a4a82dddf22
iris: determine aux usage during predraw and state setup

Patch changes surface state setup to alloc/fill states for all possible
usages for image resource on gen12. Also predraw and binding table
population is changed to determine correct aux usage with the new
iris_image_view_aux_usage.

v2: alloc always all states independent on current image
    aux state on gen >= 12 , code cleanups (Nanley)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4080>
src/gallium/drivers/iris/iris_resolve.c
src/gallium/drivers/iris/iris_state.c