Skip to contentSkip to conversation

New: Some textures now rendered as completely black after register allocator rewrite.

Bug 36753 [email protected] 1 participant 10 messages May 1, 2011 – May 18, 2011

lore
Share & tools
lore
#0 lore raw

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

Summary: Some textures now rendered as completely black after
register allocator rewrite.
Product: Mesa
Version: git
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r300
AssignedTo: [email protected]
ReportedBy: [email protected]

Running World of Warcraft on my M66GL (RV530), and some textures are now rendered as completely black. However, my RV350 is unaffected.

git bisect says:

fe622bac0c1b5b9f2a9fcf9f35b51232a06bea42 is the first bad commit commit fe622bac0c1b5b9f2a9fcf9f35b51232a06bea42

Author: Tom Stellard <[email protected]>
Date:   Tue Jan 11 00:05:08 2011 -0800

r300/compiler: Rewrite register allocator

The new allocator uses ra and does swizzle packing.

Also, a data structure (struct rc_variable) and associated functions have been added for generating UD and DU chains.

:040000 040000 545a13a6577705511d30b471d6901237e793679c
f27924a4a5a40bab284ea7c03facab6c69875fb9 M src

The following error messages are written to the output log:

r300 FP: Compiler Error:
Rewrite of inst 10 failed Can't allocate source for Inst 13 src_type=1 new_index=2 new_mask=1
Using a dummy shader instead.
r300 FP: Compiler Error:
Rewrite of inst 14 failed Can't allocate source for Inst 17 src_type=1 new_index=2 new_mask=1
Using a dummy shader instead.

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.
#1 lore raw

[Bug 36753] Some textures now rendered as completely black after register allocator rewrite.

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

--- Comment #1 from Tom Stellard <[email protected]> 2011-05-01 17:22:17 PDT --- Can you run the program with RADEON_DEBUG=fp and post the output.

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.
#2 lore raw

[Bug 36753] Some textures now rendered as completely black after register allocator rewrite.

In reply to [email protected]

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

--- Comment #2 from Chris Rankin <[email protected]> 2011-05-02 06:04:46 PDT --- Created an attachment (id=46250)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46250)
FP debug output

Strictly speaking, this output is from RADEON_DEBUG=nohiz,fp because HiZ is also broken with M66GL chips at the moment.

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.
#3 lore raw

[Bug 36753] Some textures now rendered as completely black after register allocator rewrite.

In reply to [email protected]

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

--- Comment #3 from Tom Stellard <[email protected]> 2011-05-04 00:28:04 PDT --- (In reply to comment #2)

Quoted 1 line

Created an attachment (id=46250)

--> (https://bugs.freedesktop.org/attachment.cgi?id=46250)

Quoted 4 lines

FP debug output

Strictly speaking, this output is from RADEON_DEBUG=nohiz,fp because HiZ is also broken with M66GL chips at the moment.

I'm working on a proper fix for this. In the mean time, running with RADEON_DEBUG=noopt should fix the problem.

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.
#4 lore raw

[Bug 36753] Some textures now rendered as completely black after register allocator rewrite.

In reply to [email protected]

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

--- Comment #4 from Chris Rankin <[email protected]> 2011-05-05 13:14:55 PDT --- (In reply to comment #3)

Quoted 1 line

In the mean time, running with RADEON_DEBUG=noopt should fix the problem.

Indeed it does, thanks.

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.
#5 lore raw

[Bug 36753] Some textures now rendered as completely black after register allocator rewrite.

In reply to [email protected]

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

--- Comment #5 from Tom Stellard <[email protected]> 2011-05-15 22:01:41 PDT --- Created an attachment (id=46753)
View: https://bugs.freedesktop.org/attachment.cgi?id=46753
Review: https://bugs.freedesktop.org/review?bug=36753&attachment=46753

Verbose patch

The patch will give me some extra debug info. Can you apply it and post the output of RADEON_DEBUG=fp.

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.
#6 lore raw

[Bug 36753] Some textures now rendered as completely black after register allocator rewrite.

In reply to [email protected]

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

--- Comment #6 from Chris Rankin <[email protected]> 2011-05-16 16:33:46 PDT --- Created an attachment (id=46786)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46786)
Output of RADEON_DEBUG=nohiz,fp

(In reply to comment #5)

Quoted 2 lines

The patch will give me some extra debug info. Can you apply it and post the output of RADEON_DEBUG=fp.

As requested.

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.
#7 lore raw

[Bug 36753] Some textures now rendered as completely black after register allocator rewrite.

In reply to [email protected]

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

--- Comment #7 from Tom Stellard <[email protected]> 2011-05-17 00:59:25 PDT --- Created an attachment (id=46792)
View: https://bugs.freedesktop.org/attachment.cgi?id=46792
Review: https://bugs.freedesktop.org/review?bug=36753&attachment=46792

Possible Fix

Can you try this patch. If it doesn't fix the issue, can you post the output of RADEON_DEBUG=fp again.

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.
#8 lore raw

[Bug 36753] Some textures now rendered as completely black after register allocator rewrite.

In reply to [email protected]

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

--- Comment #8 from Chris Rankin <[email protected]> 2011-05-17 10:14:40 PDT --- Created an attachment (id=46833)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46833)
Output of RADEON_DEBUG=nohiz,fp

(In reply to comment #7)

Quoted 1 line

Can you try this patch?

That seems to have fixed it, thanks. I've attached the RADEON_DEBUG output anyway, so that you can check that it did what you were expecting.

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.
#9 lore raw

[Bug 36753] Some textures now rendered as completely black after register allocator rewrite.

In reply to [email protected]

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

Tom Stellard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #9 from Tom Stellard <[email protected]> 2011-05-17 19:18:57 PDT --- Fixed in git by commit 217cd216eac65983004ca77a9e49dbfad1b720b6.

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.