[r300] Fix KIL instruction and swizzling of texture coordinates
authorNicolai Haehnle <nhaehnle@gmail.com>
Sun, 1 Jun 2008 11:13:32 +0000 (13:13 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sun, 1 Jun 2008 11:23:53 +0000 (13:23 +0200)
commitd9c7c5f071f5bf2a7516d877c9ab84b2b2b91779
tree6f99847b32e38c99ecc3ec021286fb7a09f38312
parent3225e2cdb60868ace70db16407ec5cf5fc64be3c
[r300] Fix KIL instruction and swizzling of texture coordinates

The KIL instruction only works if at least one texture unit is enabled
in hardware.

Texture instructions do not support swizzles, negations etc. natively,
so we now emit an explicit swizzling etc. operation when the texture coordinate
requires it.

This fixes the Piglit fp-kil test.
src/mesa/drivers/dri/r300/r300_fragprog.c
src/mesa/drivers/dri/r300/r300_state.c