svga: fix texture swizzle writemasking
authorBrian Paul <brianp@vmware.com>
Tue, 11 Jul 2017 20:56:00 +0000 (14:56 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 11 Jul 2017 21:43:36 +0000 (15:43 -0600)
commitf7e78abdf45b26f3991dc336120162ae01b208f1
tree644c680046d1fe7381ded57a8a98c3e3e26c794f
parentcead51a0c63df1613f9f6400657597679126024c
svga: fix texture swizzle writemasking

Commit bfe1e7737a76e3b046 changed how texture swizzles are set up.
This exposed a latent bug in the VMware driver: we were ignoring
the texture instruction's writemask when applying the 0 and 1
swizzle terms.

This wasn't caught by the Piglit texture swizzle test because it
only exercises fixed function (no write masking).

Fixes issues seen with ETQW apitrace.

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_tgsi_vgpu10.c