r300: Redirect constant TEX coordinates
authorNicolai Haehnle <nhaehnle@gmail.com>
Sat, 14 Feb 2009 16:06:06 +0000 (17:06 +0100)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sat, 14 Feb 2009 16:36:04 +0000 (17:36 +0100)
commit8520b15018ca10e2bc47c1db4f7378df6d3c2e99
tree3c0f90e277796b2f1acf740e2560705df010f91d
parent76142d2b8bdb0d5b32ad4e71264f7e0341d312b4
r300: Redirect constant TEX coordinates

R3xx/R5xx fragment program texture constants must come from a hardware
register instead of the constant file, so we redirect if necessary during
the native rewrite phase.

The symptoms of this bug started appearing when the Mesa fixed function
texenvprogram code started using STATE_CURRENT_ATTRIB constants for
texture coordinates when the corresponding attributes were constant across
all vertices.

Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/r300/r300_fragprog.c
src/mesa/drivers/dri/r300/r500_fragprog.c