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:09:54 +0000 (17:09 +0100)
commit9a26164f3525c31607e3e676e0d41e496dada4c2
treee164f711318a1d3fff9a84796dab10cee7ef21d6
parent5f3ab230ea3e971737b733b0c0358c0a85061f5c
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