tgsi: use X component of the second operand in exec_scalar_binary()
authorBrian Paul <brianp@vmware.com>
Tue, 9 Jul 2013 19:30:15 +0000 (13:30 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 12 Jul 2013 14:32:51 +0000 (08:32 -0600)
commitf3fad24b622d2fa51508e9a4066d393ef3260ddc
tree1668273648e2e12c6de5bac2ca970361c81a7bcd
parentcb2de08f27311166a44c379532a502c0b1b862d0
tgsi: use X component of the second operand in exec_scalar_binary()

The code happened to work in the past since the (scalar) src args
effectively always have a swizzle of .xxxx, .yyyy, .zzzz, or .wwww so
whether you grab the X or Y component doesn't really matter.  Just
fixing the code to make it look right.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c