zink: tighten emitted image spir-v caps
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 26 Mar 2021 13:22:01 +0000 (14:22 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Mar 2021 14:30:46 +0000 (14:30 +0000)
commit3463b8bf416430b9b381522b019a72e0fdabafd7
tree151f2b6ddb0fdc37cb5318c815a3a01d5e6ddbf1
parenta3ee818b790920fa4b74823cd207d3b5ff340798
zink: tighten emitted image spir-v caps

We might only need to emit a read or write cap for a given image. This
could provide the Vulkan driver with the chance to optimize things
slightly.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9855>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c