New: [bisected] Starcraft 2: some effects are corrupted or too big
https://bugs.freedesktop.org/show_bug.cgi?id=34030
Summary: [bisected] Starcraft 2: some effects are corrupted or
too big
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Keywords: regression
Severity: minor
Priority: medium
Component: Drivers/Gallium/r300
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=43092)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43092)
screenshot of the problem
With latest mesa git there are some messed up effects in Starcraft 2 (harvesting drones, vespene geysers, and some surfaces have solid background color insted transparent). This is with Wine 1.3.13 and GLSL disabled in Wine. (GLSL codepath works fine)
I did a regression test:68b701f5ded5f6b73a6b07cf37d862fab4836607 is the first bad commit commit 68b701f5ded5f6b73a6b07cf37d862fab4836607
Author: Tom Stellard <[email protected]> Date: Sat Feb 5 22:39:58 2011 -0800
r300/compiler: Disable register rename pass on r500
The scheduler and the register allocator are not good enough yet to deal with the effects of the register rename pass. This was causing a 50% performance drop in Lightsmark. The pass can be re-enabled once the scheduler and the register allocator are more mature. r300 and r400 still need this pass, because it prevents a lot of shaders from using too many texture indirections.
NOTE: This is a candidate for the 7.10 branch.
However this looked like unlikely to cause this regression, I was quite sure it worked before register rename pass was introduced and indeed commit bbe49bc585c4fed46f55d184b463d13bddd97f1b (r300/compiler: Use presubtract operations as much as possible) was working fine. Also commit 8833f53e659e079e7ab74bb9197f9b44b1eeefe0 (r300/compiler: Enable rename_reg pass for r500 cards) alone or with 68b701f5ded5f6b73a6b07cf37d862fab4836607 manually applied worked fine, so this have led me to an idea that the actual regression happened somewhere between 8833f53e659e079e7ab74bb9197f9b44b1eeefe0 and 68b701f5ded5f6b73a6b07cf37d862fab4836607 and was hidden by the register rename pass. Finally bisecting between mentioned commits and manually applying 68b701f5ded5f6b73a6b07cf37d862fab4836607 in each step led to:
8f32c6cfc6503dd234f09fb06941803866c23c65 is the first bad commit commit 8f32c6cfc6503dd234f09fb06941803866c23c65
Author: Tom Stellard <[email protected]> Date: Sat Jan 29 14:37:58 2011 -0800
r300/compiler: Standardize the number of bits used by swizzle fields
Swizzles are now defined everywhere as a field with 12 bits that contains 4 channels worth of meaningful information. Any channel that is unused is set to RC_SWIZZLE_UNUSED. This change is necessary because rgb
instructions
and alpha instructions were initializing channels that would never be used (channel 3 for rgb and channels 1-3 for alpha) with 0 (aka RC_SWIZZLE_X). This made it impossible to use generic helper functions for swizzles, because sometimes a channel value of 0 meant unused and other times it meant RC_SWIZZLE_X.
All hacks that tried to guess how many channels were relevant have also been removed.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 34030] [bisected] Starcraft 2: some effects are corrupted or too big
https://bugs.freedesktop.org/show_bug.cgi?id=34030
--- Comment #1 from Pavel Ondračka <[email protected]> 2011-02-08 04:17:13 PST --- Created an attachment (id=43093)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43093)
screenshot without corruption for comparison
BTW reverting 8f32c6cfc6503dd234f09fb06941803866c23c65 from current mesa master makes the problem go away.
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 34030] [bisected] Starcraft 2: some effects are corrupted or too big
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=34030
--- Comment #2 from Tom Stellard <[email protected]> 2011-02-08 21:12:48 PST --- Can you post the output of RADEON_DEBUG=fp,vp with the master branch and with 8f32c6cfc6503dd234f09fb06941803866c23c65 reverted?
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 34030] [bisected] Starcraft 2: some effects are corrupted or too big
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=34030
--- Comment #3 from Pavel Ondračka <[email protected]> 2011-02-09 00:34:57 PST --- Created an attachment (id=43151)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43151)
output of RADEON_DEBUG=fp,vp with mesa master
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 34030] [bisected] Starcraft 2: some effects are corrupted or too big
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=34030
--- Comment #4 from Pavel Ondračka <[email protected]> 2011-02-09 00:35:42 PST --- Created an attachment (id=43152)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43152)
output of RADEON_DEBUG=fp,vp with mesa master and 8f32c6cfc6503dd234f09fb06941803866c23c65 reverted
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 34030] [bisected] Starcraft 2: some effects are corrupted or too big
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=34030
--- Comment #5 from Tom Stellard <[email protected]> 2011-02-09 01:46:08 PST --- Created an attachment (id=43154)
View: https://bugs.freedesktop.org/attachment.cgi?id=43154
Review: https://bugs.freedesktop.org/review?bug=34030&attachment=43154
Possible Fix
This patch should be applied to the master branch. Does it fix the problem? If not can you post the output of RADEON_DEBUG=fp,vp with this patch applied.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 34030] [bisected] Starcraft 2: some effects are corrupted or too big
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=34030
--- Comment #6 from Pavel Ondračka <[email protected]> 2011-02-09 02:05:40 PST --- (In reply to comment #5)
Quoted 1 line
Created an attachment (id=43154)
View: https://bugs.freedesktop.org/attachment.cgi?id=43154
Review: https://bugs.freedesktop.org/review?bug=34030&attachment=43154
Quoted 4 lines
Possible Fix
This patch should be applied to the master branch. Does it fix the problem? If not can you post the output of RADEON_DEBUG=fp,vp with this patch applied.
Yes, this patch fixes the problem. Thank you.
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 34030] [bisected] Starcraft 2: some effects are corrupted or too big
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=34030
Tom Stellard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED--- Comment #7 from Tom Stellard <[email protected]> 2011-02-11 20:07:05 PST --- Fix in git by commit 9106b98766e36b04daf738bd81c4f86eedfa1b8d
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.