svga: Apply texcoord scale factors only if there is sampler view
authorNeha Bhende <bhenden@vmware.com>
Thu, 30 Aug 2018 21:46:56 +0000 (14:46 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 20 Sep 2018 19:20:10 +0000 (13:20 -0600)
commitede805dd190fd3cd8e326e9b3191d2ed8ac14826
tree756717576ed499305eb3c69918c16fba9834abea
parent1dcf377a76cc4fa3e1c5312b0e10c4754532b512
svga: Apply texcoord scale factors only if there is sampler view

We need to convert unnormalized texcoords to normalized texcoords
when we are sampling from texture. We don't need this conversion
if there is no sampler view.

Tested with piglit, glretrace

Fixes vmware bug 2101970

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_tgsi_vgpu10.c