mesa/st: Set samplers_used in lower_tex_src_plane

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:27:49 -05:00 committed by Marge Bot
parent cdeb55fc36
commit 68f6b6cbdc
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ lower_tex_src_plane_block(nir_builder *b, lower_tex_src_state *state, nir_block
unsigned u_v_samp = state->sampler_map[y_samp][plane[0].i32 - 1];
BITSET_SET(state->shader->info.textures_used, u_v_samp);
BITSET_SET(state->shader->info.samplers_used, u_v_samp);
/* For drivers using PIPE_CAP_NIR_SAMPLERS_AS_DEREF, we need
* to reference the correct sampler nir variable.