anv/image: Define add_all_surfaces()
authorChad Versace <chad@kiwitree.net>
Sun, 9 Aug 2020 20:01:24 +0000 (13:01 -0700)
committerChad Versace <chad@kiwitree.net>
Tue, 17 Nov 2020 18:36:45 +0000 (10:36 -0800)
commit9f2073c76ef0c1bb8d4c14add2ea33be2bc558c2
tree5d3aac4888bd21719d237c3e6945e55d483d1e0b
parent2bfd43ba0bf7ef43d73c0d4dc9174aad8f0522f7
anv/image: Define add_all_surfaces()

This deduplicates the loops in anv_image_create() and
resolve_ahw_image().

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_image.c