mesa: set Q=1 for OPCODE_TEX execution
authorBrian Paul <brianp@vmware.com>
Thu, 18 Aug 2011 21:54:53 +0000 (15:54 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 19 Aug 2011 19:31:10 +0000 (13:31 -0600)
commit0eb18ee55719377ebd90456bde605384ce4ec14a
tree3d638fd6add50cd98e5539cd4cfd65e81c3483b2
parent352cab498a6210e1fdd57d6be2a30d33024ef37f
mesa: set Q=1 for OPCODE_TEX execution

Q should not be significant for OPCODE_TEX, but it winds up getting
passed to the compute_lambda() function.  Make sure it's 1.0 to
prevent garbage values, which is effectively what we get when the
swizzle is coord.xyzz (which is what GLSL gives us).

Part of the fix for piglit's fbo-generatemipmap-array test.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/program/prog_execute.c