ttn: Set shader_info::samplers_used

Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16435>
This commit is contained in:
Jason Ekstrand 2022-05-10 11:14:37 -05:00 committed by Marge Bot
parent 9be50237d5
commit cdeb55fc36

View file

@ -1263,6 +1263,7 @@ get_sampler_var(struct ttn_compile *c, int binding,
BITSET_SET(c->build.shader->info.textures_used, binding);
if (op == nir_texop_txf || op == nir_texop_txf_ms)
BITSET_SET(c->build.shader->info.textures_used_by_txf, binding);
BITSET_SET(c->build.shader->info.samplers_used, binding);
}
return var;