zink: do not request scoped memory barriers
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 31 Mar 2021 13:45:11 +0000 (15:45 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 31 Mar 2021 14:07:11 +0000 (14:07 +0000)
commit70066fb036bce2b9070587f101f56e67e3088bbc
tree07d3f5f031744eeb390c614f076e199f50ca74fe
parent71e39c79fdadf68f24a9ae0efa4c0af5526dafce
zink: do not request scoped memory barriers

While barriers in Vulkan are scoped, we do not handle
nir_intrinsic_scoped_barrier, so we do not support them from NIR.

The reason why this hasn't been a problem seems to be that VTN is the
only place that respects them, so we haven't seen them yet.

But if the GLSL compiler starts respecting the setting, things will
start blowing up. There's WIP patches for this in !3339 already.

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