anv: Move scope of CCS binding determination
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 25 Aug 2023 19:50:33 +0000 (15:50 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 23 Oct 2023 21:37:24 +0000 (21:37 +0000)
commit5e0725514894efdd7f8f8cc527e4f5d63d3dee9e
tree04450385ce6504cc50569bbc6a9dc301f74d66e3
parentb1a14fe9231e62d5b65e47bbf934e9b14f47f722
anv: Move scope of CCS binding determination

Move the determination of the image binding for CCS to a larger scope,
so that it can be reused for other aux usages in
add_aux_surface_if_supported().

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25003>
src/intel/vulkan/anv_image.c