panvk: Only prepare texture descriptors when the image is sampled
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 23 Sep 2021 14:17:32 +0000 (16:17 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Sep 2021 14:03:40 +0000 (14:03 +0000)
commite48d66afcb77d394587ca35aff15dcc62bb5b3f2
tree333db33a4119e33a81a43db4201d74bc0880b9ec
parent92768ee62758b3a28e46182b1bd5e242003d94cc
panvk: Only prepare texture descriptors when the image is sampled

Not that input attachments will be lowered to textures, so we need to
create a texture descriptor in that case too.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13077>
src/panfrost/vulkan/panvk_private.h
src/panfrost/vulkan/panvk_vX_descriptor_set.c
src/panfrost/vulkan/panvk_vX_image.c