zink: Switch to scoped barriers
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 23 May 2023 16:22:57 +0000 (12:22 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 25 May 2023 11:43:39 +0000 (11:43 +0000)
commitb6e40edae6f1eee70924902e564fcd116500763d
treec82273628506cee92ee61b22e7a34298057e4e85
parentee62454fe3d7c5d59ba6c4da1eb64a1fbb7b4472
zink: Switch to scoped barriers

Rather than translate piles of discrete memory_barrier/control_barrier
instructions, translate the unified scoped_barrier which maps almost directly to
SPIR-V's barrier. Yes, this means I cheated off vtn for the implementation.

v2: Use existing scope translation.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23186>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
src/gallium/drivers/zink/zink_compiler.c