radeon/llvm: Use the llvm.rsq.clamped intrinsic for RSQ
authorTom Stellard <thomas.stellard@amd.com>
Tue, 24 Jun 2014 23:35:08 +0000 (19:35 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 2 Jul 2014 18:59:29 +0000 (14:59 -0400)
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Tested-by: Laurent Carlier <lordheavym@gmail.com>
https://bugs.freedesktop.org/show_bug.cgi?id=80015

CC: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c

index 217fa3294c0e304d7ed5f21347a8c7686a37852d..119e613c5e55867a19af2c1c1563006751cbe1db 100644 (file)
@@ -1385,7 +1385,7 @@ void radeon_llvm_context_init(struct radeon_llvm_context * ctx)
 
        bld_base->rsq_action.emit = build_tgsi_intrinsic_nomem;
 #if HAVE_LLVM >= 0x0305
-       bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq.";
+       bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq.clamped.f32";
 #else
        bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq";
 #endif