nv50: fix TXP
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 23 May 2009 14:14:06 +0000 (16:14 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 28 May 2009 06:06:24 +0000 (16:06 +1000)
commit3accd7ebe971624bed5624f73ed3522c9de4c193
treecbba5cb50da15af45f2ce3d125e630054755678a
parent94ba165dffa4d364a1335d3cd7c15558bf35fe3e
nv50: fix TXP

For TXP we need to divide texture coords by their w component, or
use the coords' 1/w in the perspective interpolation instruction.

This also tries to support 1D, 3D and CUBE textures, and lets the
instruction only load the components that are used.
src/gallium/drivers/nv50/nv50_program.c