ttn: Assume use_scoped_barrier

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23191>
This commit is contained in:
Alyssa Rosenzweig 2023-06-06 16:45:09 -04:00 committed by Marge Bot
parent 7173cbccbf
commit 416d8ad384

View file

@ -1127,10 +1127,7 @@ ttn_ucmp(nir_builder *b, nir_op op, nir_alu_dest dest, nir_ssa_def **src)
static void
ttn_barrier(nir_builder *b)
{
if (b->shader->options->use_scoped_barrier)
nir_scoped_barrier(b, .execution_scope = NIR_SCOPE_WORKGROUP);
else
nir_control_barrier(b);
nir_scoped_barrier(b, .execution_scope = NIR_SCOPE_WORKGROUP);
}
static void