mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
radeonsi: use llvm.amdgcn.s.barrier instead of llvm.AMDGPU.barrier.local
The new name for the intrinsic was introduced in LLVM r258558. v2: use ternary operator instead of preprocessor Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (v1) Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
a443b5b732
commit
8894b5f008
1 changed files with 3 additions and 1 deletions
|
|
@ -3465,7 +3465,9 @@ static void si_llvm_emit_barrier(const struct lp_build_tgsi_action *action,
|
|||
{
|
||||
struct gallivm_state *gallivm = bld_base->base.gallivm;
|
||||
|
||||
lp_build_intrinsic(gallivm->builder, "llvm.AMDGPU.barrier.local",
|
||||
lp_build_intrinsic(gallivm->builder,
|
||||
HAVE_LLVM >= 0x0309 ? "llvm.amdgcn.s.barrier"
|
||||
: "llvm.AMDGPU.barrier.local",
|
||||
LLVMVoidTypeInContext(gallivm->context), NULL, 0,
|
||||
LLVMNoUnwindAttribute);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue