svga: fix swizzling for texture gather
authorCharmaine Lee <charmainel@vmware.com>
Tue, 10 Oct 2017 22:30:21 +0000 (15:30 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 10 Sep 2018 19:07:30 +0000 (13:07 -0600)
commitccd895db7606cdb35b200506ea8d218d01541a7e
tree4e583d86ac8c867744ee47341c3cebe3c8ae64b3
parentbe1993d6eddcb6314b71037ca40af62923aa0174
svga: fix swizzling for texture gather

Texture swizzling for texture gather needs to be done to the selected texels
rather than to the returned vector. This patch has specical cases
for the different swizzles in emit_tg4().

Fixes a lot of piglit texture gather tests.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_tgsi_vgpu10.c