diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index dce5b55..8e97922 100644 --- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c +++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c @@ -1408,7 +1408,9 @@ void radeon_llvm_context_init(struct radeon_llvm_context * ctx) bld_base->op_actions[TGSI_OPCODE_UCMP].emit = emit_ucmp; bld_base->rsq_action.emit = build_tgsi_intrinsic_nomem; -#if HAVE_LLVM >= 0x0305 +#if HAVE_LLVM >= 0x0307 + bld_base->rsq_action.intr_name = "llvm.amdgpu.rsq.clamped.f32"; +#elif HAVE_LLVM >= 0x0305 bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq.clamped.f32"; #else bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq";