Skip to contentSkip to conversation

New: multitexturing is messed up in quake wars (regression)

Bug 36939 [email protected] 1 participant 16 messages May 7, 2011 – Sep 19, 2011

lore
Share & tools
lore
#0 lore raw

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

Summary: multitexturing is messed up in quake wars (regression)
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r300
AssignedTo: [email protected]
ReportedBy: [email protected]

With some detail levels only the base texture (diffuse) is drawn on the objects, but no light/bump/specular. With 'Shader Effects' set to low the strogg deployables are like this (from any distance), while setting it to high makes every object (except the ground) that are closer than ~10 meters appear like this.

This message is written to the console a couple of times:
Not a native swizzle: 00000e08

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 36939] multitexturing is messed up in quake wars (regression)

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

--- Comment #1 from Tom Stellard <[email protected]> 2011-05-07 11:05:34 PDT --- Can you run the program with the environment variable 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 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

--- Comment #2 from almos <[email protected]> 2011-05-07 12:24:15 PDT --- Created an attachment (id=46429)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46429)
etqw_console.txt.gz

(In reply to comment #1)

Quoted 2 lines

Can you run the program with the environment variable RADEON_DEBUG=fp and post the output.

Attached full log.

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 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

--- Comment #3 from Tom Stellard <[email protected]> 2011-05-09 22:11:23 PDT --- Created an attachment (id=46516)
View: https://bugs.freedesktop.org/attachment.cgi?id=46516
Review: https://bugs.freedesktop.org/review?bug=36939&attachment=46516

Verbose patch

This patch will give me some more verbose output, could you apply it to master and post the output with 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.
#4 lore raw

[Bug 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

--- Comment #4 from almos <[email protected]> 2011-05-10 02:46:15 PDT --- Created an attachment (id=46526)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46526)
etqw_log_verbose.txt.gz

As the previous one, this was also done with shader effects = high.

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 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

--- Comment #5 from Tom Stellard <[email protected]> 2011-05-10 03:22:00 PDT --- (In reply to comment #4)

Quoted 1 line

Created an attachment (id=46526)

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

Quoted 3 lines

etqw_log_verbose.txt.gz

As the previous one, this was also done with shader effects = high.

Thanks. Running with RADEON_DEBUG=noopt should make the problem go away while I'm working on a fix.

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 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

Tom Stellard <[email protected]> changed:

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

  Attachment #46516|0                           |1

is obsolete| |

--- Comment #6 from Tom Stellard <[email protected]> 2011-05-10 19:46:04 PDT --- Created an attachment (id=46577)
View: https://bugs.freedesktop.org/attachment.cgi?id=46577
Review: https://bugs.freedesktop.org/review?bug=36939&attachment=46577

Possible Fix

I think this patch might fix this. If it doesn't could 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.
#7 lore raw

[Bug 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

Tom Stellard <[email protected]> changed:

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

  Attachment #46526|0                           |1

is obsolete| |

--- Comment #7 from Tom Stellard <[email protected]> 2011-05-10 19:46:42 PDT --- Created an attachment (id=46579)
View: https://bugs.freedesktop.org/attachment.cgi?id=46579
Review: https://bugs.freedesktop.org/review?bug=36939&attachment=46579

Possible Fix

I think this patch might fix this. If it doesn't could 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 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

--- Comment #8 from almos <[email protected]> 2011-05-11 03:30:14 PDT --- Created an attachment (id=46595)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46595)
etqw_log.txt.gz

Unfortunately the fix makes things worse. Now everything is black except the sky, the trees and the weapon projectiles.

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 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

Tom Stellard <[email protected]> changed:

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

  Attachment #46577|0                           |1
        is obsolete|                            |
  Attachment #46579|0                           |1
        is obsolete|                            |

--- Comment #9 from Tom Stellard <[email protected]> 2011-05-11 09:10:56 PDT --- Created an attachment (id=46609)
View: https://bugs.freedesktop.org/attachment.cgi?id=46609
Review: https://bugs.freedesktop.org/review?bug=36939&attachment=46609

Fix v2

Can you try this patch. If it doesn't work please 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.
#10 lore raw

[Bug 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

--- Comment #10 from almos <[email protected]> 2011-05-11 11:04:43 PDT --- Fix v2 works perfectly. Thanks. I also tested some other games, and saw no regressions.

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

[Bug 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

Tom Stellard <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #11 from Tom Stellard <[email protected]> 2011-05-11 16:55:50 PDT --- Fix in git by commit 95c93651b4023cb070878aee7723d886de8ea19a

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

[Bug 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

almos <[email protected]> changed:

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

             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #12 from almos <[email protected]> 2011-08-13 10:33:30 PDT --- Now this problem appeared again. With medium shader detail all human deployables and the strogg AVT loose detail textures and lightmaps as approached. With high shader detail the wheels of some vehicles do this as well.

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

[Bug 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

--- Comment #13 from Tom Stellard <[email protected]> 2011-08-15 12:12:00 PDT --- (In reply to comment #12)

Quoted 4 lines

Now this problem appeared again. With medium shader detail all human deployables and the strogg AVT loose detail textures and lightmaps as approached. With high shader detail the wheels of some vehicles do this as well.

Can you bisect this?

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

[Bug 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

--- Comment #14 from almos <[email protected]> 2011-08-20 13:13:19 PDT --- (In reply to comment #13)

Quoted 7 lines

(In reply to comment #12)

Quoted 4 lines

Now this problem appeared again. With medium shader detail all human deployables and the strogg AVT loose detail textures and lightmaps as approached. With high shader detail the wheels of some vehicles do this as well.

Can you bisect this?

217cd216eac65983004ca77a9e49dbfad1b720b6 is the first bad commit commit 217cd216eac65983004ca77a9e49dbfad1b720b6

Author: Tom Stellard <[email protected]>
Date:   Tue May 17 18:51:20 2011 -0700

r300/compiler: Fix bug in rc_get_variables()

Variables that write to the same source select need to pe paired together otherwise the register allocator might fail.

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

:040000 040000 a1d3852986919d6ae3449a06a8b3dc43afe90689
2a8531a9541ae918d70bff7911025fed709e7b6b M src

I think #40062 is a duplicate of this one.

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

[Bug 36939] multitexturing is messed up in quake wars (regression)

In reply to [email protected]

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

Tom Stellard <[email protected]> changed:

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

             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #15 from Tom Stellard <[email protected]> 2011-09-18 18:03:19 PDT --- Fixed in git commit 2d1004d9aa719bb93a4f057b0eefe88f23b44e44

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.