[Bug 28624] [r300g] too many texture indirections (was: fails to compile some fragment programs of Enemy Territory: Quake Wars)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jul 5 09:26:36 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=28624
--- Comment #2 from Marek Olšák <maraeo at gmail.com> 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.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the dri-devel
mailing list