Skip to contentSkip to conversation

New: fails to compile some fragment programs of Enemy Territory: Quake Wars

Bug 28624 [email protected] 1 participant 7 messages Jun 20, 2010 – Jul 9, 2010

lore
Share & tools
lore
#0 lore raw

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

Summary: fails to compile some fragment programs of Enemy
Territory: Quake Wars
Product: Mesa
Version: git
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/r300
AssignedTo: [email protected]
ReportedBy: [email protected]

Created an attachment (id=36379)
--> (https://bugs.freedesktop.org/attachment.cgi?id=36379)
stderr with RADEON_DEBUG=fp

The driver prints the following:

r300compiler error: r300_fragprog_emit.c::begin_tex(): Too many texture indirections
r300 FP: Compiler Error:
r300_fragprog_emit.c::begin_tex(): Too many texture indirections Using a dummy shader instead.

The attached log is done with RADEON_DEBUG=fp. It is stderr only, because et:qw fails to start (stops at 'loading UI') if stdout is redirected 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.
#1 lore raw

[Bug 28624] [r300g] too many texture indirections (was: fails to compile some fragment programs of Enemy Territory: Quake Wars)

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

Marek Olšák <[email protected]> changed:

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

            Summary|fails to compile some       |[r300g] too many texture
                   |fragment programs of Enemy  |indirections (was: fails to
                   |Territory: Quake Wars       |compile some fragment
                   |                            |programs of Enemy
                   |                            |Territory: Quake Wars)
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
#2 lore raw

[Bug 28624] [r300g] too many texture indirections (was: fails to compile some fragment programs of Enemy Territory: Quake Wars)

In reply to [email protected]

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

--- Comment #1 from Álmos <[email protected]> 2010-06-20 10:31:20 PDT --- my gpu is an rv350 (radeon 9600xt)

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

[Bug 28624] [r300g] too many texture indirections (was: fails to compile some fragment programs of Enemy Territory: Quake Wars)

In reply to [email protected]

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

--- Comment #2 from Marek Olšák <[email protected]> 2010-07-05 09:26:36 PDT --- The failing shader:

FRAG
DCL IN[0], GENERIC[0], PERSPECTIVE
DCL IN[1], GENERIC[1], PERSPECTIVE
DCL IN[2], GENERIC[2], PERSPECTIVE
DCL IN[3], GENERIC[3], PERSPECTIVE
DCL IN[4], GENERIC[4], PERSPECTIVE
DCL IN[5], GENERIC[5], PERSPECTIVE
DCL IN[6], GENERIC[6], PERSPECTIVE
DCL IN[7], GENERIC[7], PERSPECTIVE
DCL OUT[0], COLOR
DCL SAMP[0]
DCL TEMP[0..1]
IMM FLT32 { 0.0714, 0.1071, 0.1429, 0.1786}
0: TEX TEMP[0], IN[1], SAMP[0], RECT
1: MUL TEMP[1], TEMP[0], IMM[0].yyyy
2: TEX TEMP[0], IN[0], SAMP[0], RECT
3: MAD TEMP[1], TEMP[0], IMM[0].xxxx, TEMP[1]
4: TEX TEMP[0], IN[2], SAMP[0], RECT
5: MAD TEMP[1], TEMP[0], IMM[0].zzzz, TEMP[1]
6: TEX TEMP[0], IN[3], SAMP[0], RECT
7: MAD TEMP[1], TEMP[0], IMM[0].wwww, TEMP[1]
8: TEX TEMP[0], IN[4], SAMP[0], RECT
9: MAD TEMP[1], TEMP[0], IMM[0].wwww, TEMP[1]
10: TEX TEMP[0], IN[5], SAMP[0], RECT
11: MAD TEMP[1], TEMP[0], IMM[0].zzzz, TEMP[1]
12: TEX TEMP[0], IN[6], SAMP[0], RECT
13: MAD TEMP[1], TEMP[0], IMM[0].yyyy, TEMP[1]
14: TEX TEMP[0], IN[7], SAMP[0], RECT
15: MAD OUT[0], TEMP[0], IMM[0].xxxx, TEMP[1]
16: END

If we reorder all the instructions, rename a few registers etc. we will end up with 1 TEX block. This seems to be the third TEX scheduling bug in the compiler we know about.

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

[Bug 28624] [r300g] too many texture indirections (was: fails to compile some fragment programs of Enemy Territory: Quake Wars)

In reply to [email protected]

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

--- Comment #3 from Tom Stellard <[email protected]> 2010-07-08 22:05:13 PDT --- This should be fixed by commit 8a8e311d8c3c60982d101826a4aa013672730e6c. Can you try again with the latest git code?

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 28624] [r300g] too many texture indirections (was: fails to compile some fragment programs of Enemy Territory: Quake Wars)

In reply to [email protected]

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

--- Comment #4 from Álmos <[email protected]> 2010-07-09 11:53:12 PDT --- Fix confirmed. It doesn't print error messages, and the trees are not black anymore.

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

[Bug 28624] [r300g] too many texture indirections (was: fails to compile some fragment programs of Enemy Territory: Quake Wars)

In reply to [email protected]

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

Marek Olšák <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Marek Olšák <[email protected]> 2010-07-09 12:00:53 PDT --- OK, closing..

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