mesa/program: fix shadow property for samplers
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 20 Jul 2020 16:06:47 +0000 (18:06 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jul 2020 12:51:51 +0000 (12:51 +0000)
commitc33e8d7d522c250443d903b5732224988855b9a9
treec0a32005b0b91f254f8c4039526fc98e007d9f41
parent4b04800efaeadabf77a729e80d956d91e6637507
mesa/program: fix shadow property for samplers

When creating a sampler-type, we need to pass the correct vaclue for
the "is_shadow"-parameter to glsl_sampler_type(), otherwise the compiler
backend will have no clue about this being a shadow-sampler.

Fixes: 1c0f92d8a8c ("nir: Create sampler variables in prog_to_nir.")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5986>
src/mesa/program/prog_to_nir.c