Module: Mesa
Branch: 10.2
Commit: ee4274c393632e44cafa7392f4e89425f104bbba
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee4274c393632e44cafa7392f4e89425f104bbba

Author: Michel Dänzer <[email protected]>
Date:   Thu Jun 19 15:53:42 2014 +0900

radeon/llvm: Use the llvm.rsq.clamped intrinsic for RSQ

Reviewed-and-Tested-by: Michel Dänzer <[email protected]>
Tested-by: Laurent Carlier <[email protected]>

https://bugs.freedesktop.org/show_bug.cgi?id=80015

CC: "10.1 10.2" <[email protected]>
(cherry picked from commit b9f501bc6bc52c25bef86a24b49fda4e92fcd924)

Squashed together with the earlier:

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]>
(cherry picked from commit 93b6b1fa83a2000f7a60ca12df54c2dd808a87a8)

---

 src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c 
b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
index 60ade78..61292d6 100644
--- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
+++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
@@ -1378,7 +1378,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.clamped.f32";
+#else
        bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq";
+#endif
 }
 
 void radeon_llvm_create_func(struct radeon_llvm_context * ctx,

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to