glsl: Don't look at sampler uniform storage for internal vars
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Feb 2019 10:05:01 +0000 (02:05 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Feb 2019 05:34:28 +0000 (21:34 -0800)
commit529a0711c1d07c109f83286583ed359a890f5a75
tree6399fae14d4fe409a04866b057163cfa6ff74118
parentd34e434989ec8e8ca780421f6909cfd796573520
glsl: Don't look at sampler uniform storage for internal vars

Passes like nir_lower_drawpixels add additional sampler variables,
and set an explicit binding which never changes.  These extra samplers
don't have proper uniform storage associated with them, and there is no
way to update bindings via the API.  So, for any 'hidden' variables,
just trust that there's an explicit binding set.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/gl_nir_lower_samplers_as_deref.c