softpipe: Fix swizzled texture gather of int textures.
authorEric Anholt <eric@anholt.net>
Wed, 9 Dec 2020 19:33:16 +0000 (11:33 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Dec 2020 22:08:34 +0000 (22:08 +0000)
commit4ba884b8140fc64d433959cbe9ef46fa12f4fd07
treea7a493178b40ee7f4d14496722de5fb2704ad220
parent2b09bde1f5450152ce121a5f58943e01223ff783
softpipe: Fix swizzled texture gather of int textures.

We need to pick 1u vs 1.0f based on the type of the texture, just like for
normal samples.  Move the decision up to the create_sampler_view, and use
that value from both sampler paths.

Cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8012>
.gitlab-ci/deqp-softpipe-fails.txt
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_tex_sample.h