Revert "gallium/radeon: re-enable unsafe math for graphics shaders"
authorMarek Olšák <marek.olsak@amd.com>
Fri, 31 Jul 2015 22:51:00 +0000 (00:51 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 31 Jul 2015 22:52:05 +0000 (00:52 +0200)
This reverts commit 8559f6ce62a9d5b52fa8189ba2352cd48bdabccf.

It causes hangs in DOTA 2 Reborn.

src/gallium/drivers/radeon/radeon_llvm_emit.c

index f0112c784d43247fd2ed65c118504db94be31c57..00025590137a54a4b2452860ff7aaf67f7fba580 100644 (file)
@@ -82,10 +82,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()