From 062a35b5540e1c03ef44c407ec6aa3c095736965 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Mon, 28 Jul 2025 17:01:54 -0700 Subject: [PATCH] nir/lower_sample_shading: Set the sample qualifier on in vars. This is another step in setting things up, that zink would like to have. Part-of: --- src/compiler/nir/nir_lower_sample_shading.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/nir/nir_lower_sample_shading.c b/src/compiler/nir/nir_lower_sample_shading.c index 7983a664b15..88251086810 100644 --- a/src/compiler/nir/nir_lower_sample_shading.c +++ b/src/compiler/nir/nir_lower_sample_shading.c @@ -44,6 +44,11 @@ nir_lower_sample_shading(nir_shader *nir) assert(nir->info.stage == MESA_SHADER_FRAGMENT); assert(nir->info.fs.uses_sample_shading); + nir_foreach_shader_in_variable(var, nir) { + nir->info.fs.uses_sample_qualifier = true; + var->data.sample = true; + } + return nir_shader_intrinsics_pass(nir, force_persample_shading, nir_metadata_all, NULL); }