zink: only emit runtime array for ssbos if present
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 14 Sep 2022 18:17:22 +0000 (14:17 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Sep 2022 21:58:58 +0000 (21:58 +0000)
commit41eed5b463a4a395b19e3e35f8333514220aafe6
tree5f97a7acbe7b4093212a20995a02a119c059fbb6
parent93696693b2cd3258ba0f841fbc923e4997b1e93d
zink: only emit runtime array for ssbos if present

it's impossible to accurately determine whether an op will use the base,
sized array or the unsized array due to dynamic indexing, and thus it's
impossible to not violate spec by emitting both arrays at offset=0 so they
can overlap

so instead, just emit the runtime array and blast all bounds checking in
vk drivers into the void

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