gallium/util: use uint sampler for stencil-reads
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 31 Aug 2020 08:14:02 +0000 (10:14 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 10:06:50 +0000 (10:06 +0000)
commit2c5c55e72aca297263452535e41222477b012065
tree7d7724775ac35d051b8186d8d1c665f07f300f8d
parent98e866c66953875a170cfff79a3c2f3c79460ed2
gallium/util: use uint sampler for stencil-reads

Some drivers can't use float-samplers to read integer textures, so let's
make sure the stenicil-sampler has the right type.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6512>
src/gallium/auxiliary/util/u_simple_shaders.c