[Mesa-dev] [Bug 98974] Can't see borders/empires in Stellaris

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Apr 30 09:27:03 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=98974

--- Comment #11 from andy641 at gmx.at ---
Comment on attachment 131158
  --> https://bugs.freedesktop.org/attachment.cgi?id=131158
Patch for r600 GPUs

I have written a mod for the game Stellaris, which seems to fix this problem
for AMD GPUs that use the r600 driver.

http://steamcommunity.com/sharedfiles/filedetails/?id=907468268

The mod changes the pixel shader that creates the border. I simply manually
unrolled a loop and turned a function into a macro. There are no functional
differences and these changes should make no difference in the resulting code,
yet they make the shader work.

I don't know why it works and I am not an expert in this stuff, but I think
there could be a bug in the GLSL compiler. Maybe the register allocator messes
something up and manually unrolling the loop fixes it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170430/7522f15a/attachment.html>


More information about the mesa-dev mailing list