zink: use HIC for image subdata when possible
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 18 Aug 2023 15:09:47 +0000 (11:09 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 9 Sep 2023 13:02:44 +0000 (13:02 +0000)
commit6d5174974a41e5bde96b26d00176e2b5e31dd70a
tree5e1e199a1aec05fc376df7124d8f0e788d153f5a
parentf24891269d2532ed5a1317882cd6b6108110a8fd
zink: use HIC for image subdata when possible

this has a lot of caveats:
* extension must be supported
* resource must have usage bit set
* resource must not have any pending batch usage
* resource must be in supported layout

if all of these conditionals pass, then HIC can be used for direct image subdata

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24775>
src/gallium/drivers/zink/zink_resource.c