summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2014-06-19 15:53:42 +0900
committerTom Stellard <[email protected]>2014-06-19 09:58:03 -0400
commit93b6b1fa83a2000f7a60ca12df54c2dd808a87a8 (patch)
treebc2b44b26155b0b01569e2ee856e9317554535c4 /src
parent949beb0b84bb5b6a24b62ca19df9d44ff64be120 (diff)
radeon/llvm: Adapt to AMDGPU.rsq intrinsic change in LLVM 3.5
Reviewed-by: Tom Stellard <[email protected]> Signed-off-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
index f8be0df94cf..217fa3294c0 100644
--- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
+++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
@@ -1384,7 +1384,11 @@ 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
+ bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq.";
+#else
bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq";
+#endif
}
void radeon_llvm_create_func(struct radeon_llvm_context * ctx,