llvmpipe: set nir_shader_compiler_options::use_scoped_barrier

required for vk memory model

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15377>
This commit is contained in:
Mike Blumenkrantz 2022-03-14 09:45:28 -04:00 committed by Marge Bot
parent e3e3186855
commit 13d900de0d
2 changed files with 2 additions and 0 deletions

View file

@ -1907,6 +1907,7 @@ static void visit_intrinsic(struct lp_build_nir_context *bld_base,
visit_shared_atomic(bld_base, instr, result); visit_shared_atomic(bld_base, instr, result);
break; break;
case nir_intrinsic_control_barrier: case nir_intrinsic_control_barrier:
case nir_intrinsic_scoped_barrier:
visit_barrier(bld_base); visit_barrier(bld_base);
break; break;
case nir_intrinsic_group_memory_barrier: case nir_intrinsic_group_memory_barrier:

View file

@ -628,6 +628,7 @@ static const struct nir_shader_compiler_options gallivm_nir_options = {
.lower_device_index_to_zero = true, .lower_device_index_to_zero = true,
.support_16bit_alu = true, .support_16bit_alu = true,
.lower_fisnormal = true, .lower_fisnormal = true,
.use_scoped_barrier = true,
}; };
static char * static char *