https://bugs.freedesktop.org/show_bug.cgi?id=31013
--- Comment #14 from Tom Stellard tstellar@gmail.com 2010-10-26 21:08:20 PDT --- (In reply to comment #13)
(In reply to comment #12)
I though you could have up to 4 indirections in addition to the input, but it's been a while since I looked at 3xx. If the shader works on the same hw using the proprietary driver, it would seem to indicate that was the case (barring some other bug).
I looked at through the docs again, and I'm pretty sure you are right about this. I think we need to start using the {ALU,TEXT}_OFFSET fields of US_CODE_OFFSET, to give us the input + 4 indirections. I'll write a patch for this.
Ok, so it looks like I was wrong about this. I input a shader with 4 indirections to the AMD Shader Analyzer and it crashed, so I'm pretty sure r300 is limited to 3 indirections. I'm guessing that the reason this works on Windows with r300 hardware is because that driver has some sort of software fall-back, which r300g doesn't have.