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

--- Comment #11 from andy...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to