[Nouveau] [Bug 51962] Raz's eyes flicker in Psychonauts on nv50
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jul 18 04:59:50 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=51962
--- Comment #2 from Bryan Cain <bryancain3+fdo at gmail.com> 2012-07-18 04:59:50 PDT ---
I did some more investigation into this bug and produced a fix:
http://lists.freedesktop.org/archives/mesa-dev/2012-July/024196.html
The problem was that in lowering the POW instruction, the lg2/mul/preex2
instructions that go before the ex2 instruction were not being emitted
properly, which as a side effect made each of the four ex2 instructions in the
shader read from an undefined source register. This in turn made the SSA
generator produce 4 of the 5 nop instructions mentioned in the original
description.
The first of the five nop instructions is not the nv50 shader compiler's fault,
but is the result of the GLSL compiler's pass to lower output registers
emitting reads to undefined components of gl_TexCoord. It's an unrelated issue
that happened to show up in the same shader, and doesn't affect the shader at
the driver level post-optimization. I will file a separate bug report about it
against glsl-compiler.
--
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 Nouveau
mailing list