Created attachment 38895 [details]
comparison of good (left) bad (right) behaviour
When running Starcraft 2, there should be thin circle around selected units or buildings, however big square filled with colour is being drawn instead. This is with Wine 1.3.3 (also happens with other versions) and GLSL disabled in Wine.
564653b9f196b9bf91fe772fd1ca1e131ff33774 is the first bad commit
Author: Tom Stellard <firstname.lastname@example.org>
Date: Mon Sep 6 10:57:20 2010 -0700
r300/compiler: Add peephole optimization for the 'sub' presubtract operation
:040000 040000 a0618411740d18c4769e6284bb943fb583c29d2d 02240349d7832ff252896acce15da24964f0a462 M src
Can you post the output of RADEON_DEBUG=fp? You can probably get around this bug for now by running with RADEON_DEBUG=noopt
Created attachment 38922 [details]
output with RADEON_DEBUG=fp, mesa 59276b8541049a2d07d32fbb139fb14e21e387fc
BTW workaround with RADEON_DEBUG=noopt indeed fixes this.
Created attachment 38923 [details] [review]
Here is a possible fix. If it doesn't work, please post the output of RADEON_DEBUG=fp with this patch applied.
Created attachment 38924 [details]
RADEON_DEBUG=fp output with patch applied
Created attachment 38942 [details] [review]
Can you try this patch? Apply it to directly to master.
Created attachment 38948 [details] [review]
Fix v3 - This one should work.
Apply this directly to master.
(In reply to comment #3)
> Created an attachment (id=38923) [details]
> Possible Fix
> Here is a possible fix. If it doesn't work, please post the output of
> RADEON_DEBUG=fp with this patch applied.
Thank you, with this patch there is no more corruption.
Fixed in git by commit 522e994a22e8b46c8a41f2920af88c5ebad43cd8