[Bug 89069] Lack of grass in The Talos Principle on radeonsi (native\wine\nine)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon May 4 15:47:59 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89069
--- Comment #34 from Daniel Scharrer <daniel at constexpr.org> ---
(In reply to smoki from comment #28)
> After
> http://cgit.freedesktop.org/mesa/mesa/commit/
> ?id=c6d79ed289a75f13c65f011be870f7e43a0fedc7 which improve code quality i
> can enable unsafe-fp-math and grass is now there with trace from Comment 7
>
> Daniel and others, you might want to recheck this.
I can confirm that there is still grass with Mesa git-e1ae0c3 + LLVM r236436
and
diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c.old
b/src/gallium/drivers/radeon/radeon_llvm_emit.c
index 624077c..0f9dbab 100644
--- a/src/gallium/drivers/radeon/radeon_llvm_emit.c.old
+++ b/src/gallium/drivers/radeon/radeon_llvm_emit.c
@@ -80,6 +80,10 @@ 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");
+ }
}
I still get GPU faults with The Talos Principle, even with "unsafe-fp-math"
enabled now - although not with either of the traces I posted. I also get some
garbage rendered / flickering stuff, but I don't think it's related to
"unsafe-fp-math". I'll test more and post a new trace when I have time.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150504/c78b9b47/attachment.html>
More information about the dri-devel
mailing list