Module: Mesa
Branch: main
Commit: 68f6b6cbdca42050da4b0d84e45f69a1854a582e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=68f6b6cbdca42050da4b0d84e45f69a1854a582e

Author: Jason Ekstrand <[email protected]>
Date:   Tue May 10 11:27:49 2022 -0500

mesa/st: Set samplers_used in lower_tex_src_plane

Reviewed-by: Emma Anholt <[email protected]>
Reviewed-by: Karol Herbst <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16435>

---

 src/mesa/state_tracker/st_nir_lower_tex_src_plane.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/state_tracker/st_nir_lower_tex_src_plane.c 
b/src/mesa/state_tracker/st_nir_lower_tex_src_plane.c
index 8daf19bdcf5..b2715005259 100644
--- a/src/mesa/state_tracker/st_nir_lower_tex_src_plane.c
+++ b/src/mesa/state_tracker/st_nir_lower_tex_src_plane.c
@@ -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.

Reply via email to