nir/lower_tex: skip lower_tex_packing for the texture samples query
[mesa.git] / src / compiler / nir / nir_lower_tex.c
index 2e68f2b164eb6de20806a55fe25d73e287943f9e..0d23cde0c288c17d099968416de9acbc56a19adc 100644 (file)
@@ -1086,7 +1086,8 @@ nir_lower_tex_block(nir_block *block, nir_builder *b,
       if (options->lower_tex_packing[tex->sampler_index] !=
           nir_lower_tex_packing_none &&
           tex->op != nir_texop_txs &&
-          tex->op != nir_texop_query_levels) {
+          tex->op != nir_texop_query_levels &&
+          tex->op != nir_texop_texture_samples) {
          lower_tex_packing(b, tex, options);
          progress = true;
       }