summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2015-02-17 17:03:35 +0900
committerEmil Velikov <[email protected]>2015-02-24 12:29:33 +0000
commitae275a653aa3400332e4877a46f3b9f7cc2dcf74 (patch)
treeb40ba64c06a9d84c214ccc0ee99cbaccbe9cf305 /src/gallium/drivers
parent86aaa10ce7bd8e919ba5c7517a4b6b975229f83c (diff)
Revert "radeon/llvm: enable unsafe math for graphics shaders"
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" <[email protected]> Reviewed-by: Tom Stellard <[email protected]> Reviewed-by: Marek Olšák <[email protected]> (cherry picked from commit 4db985a5fa9ea985616a726b1770727309502d81)
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeon/radeon_llvm_emit.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c
index 0f9dbab4f24..624077c7465 100644
--- a/src/gallium/drivers/radeon/radeon_llvm_emit.c
+++ b/src/gallium/drivers/radeon/radeon_llvm_emit.c
@@ -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()