zink: always set VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT for non-staging resources
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 15 Sep 2020 18:57:45 +0000 (14:57 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Feb 2021 14:32:02 +0000 (14:32 +0000)
commit54cb05b46c5fee48277ca2545417a2f6657642d5
treeb3d23c16abcbd677177e6ca90aef80ca85c49172
parentbc37d882fcde8a0fb7ca94ec076f6680e3d61dda
zink: always set VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT for non-staging resources

this is weird but sometimes gallium makes resources with bind==0, which will
crash later if we don't add this

Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9066>
src/gallium/drivers/zink/zink_resource.c