llvmpipe: fix sprite texcoord setup for non-projective texturing
authorBrian Paul <brianp@vmware.com>
Wed, 22 Sep 2010 17:20:48 +0000 (11:20 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 22 Sep 2010 17:25:18 +0000 (11:25 -0600)
commit516ac2bd50ad1e71bd2a359d247532d9f18bcf99
treef267f8969edd0bf08c72ed38965a0fe09f57e2f0
parentbd6b8107ad551d8c7439102b8e9027abf901b139
llvmpipe: fix sprite texcoord setup for non-projective texturing

Normally the Mesa state tracker uses TXP instructions for texturing.
But if a fragment shader uses texture2D() that's a TEX instruction.
In that case we were incorrectly computing the texcoord coefficients
in the point sprite setup code.  Some new comments in the code explain
things.
src/gallium/drivers/llvmpipe/lp_setup_point.c