Revert "radeon/llvm: enable unsafe math for graphics shaders"
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 17 Feb 2015 08:03:35 +0000 (17:03 +0900)
committerMichel Dänzer <michel.daenzer@amd.com>
Wed, 18 Feb 2015 08:06:32 +0000 (17:06 +0900)
This reverts commit 0e9cdedd2e3943bdb7f3543a3508b883b167e427.

It caused the grass to disappear in The Talos Principle.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89069
Cc: "10.5 10.4" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/radeon_llvm_emit.c

index 0f9dbab4f24faa5fe7c470d3766f5f2b5be2b28f..624077c74650c491cb5db56d532cc44d04162d59 100644 (file)
@@ -80,10 +80,6 @@ void radeon_llvm_shader_type(LLVMValueRef F, unsigned type)
        sprintf(Str, "%1d", llvm_type);
 
        LLVMAddTargetDependentFunctionAttr(F, "ShaderType", Str);
-
-       if (type != TGSI_PROCESSOR_COMPUTE) {
-               LLVMAddTargetDependentFunctionAttr(F, "unsafe-fp-math", "true");
-       }
 }
 
 static void init_r600_target()