From ef98c175c0180bebd3238ae77925a601c025cd24 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 16 Sep 2020 02:03:21 -0400 Subject: [PATCH] nir: gather fs.uses_sample_qualifier from lowered IO Reviewed-by: Jason Ekstrand Part-of: --- src/compiler/nir/nir_gather_info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index 1780d3e..ae209f4 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -502,6 +502,8 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader, shader->info.system_values_read |= BITFIELD64_BIT(SYSTEM_VALUE_BARYCENTRIC_LINEAR_SAMPLE); } + if (shader->info.stage == MESA_SHADER_FRAGMENT) + shader->info.fs.uses_sample_qualifier = true; break; case nir_intrinsic_quad_broadcast: -- 2.7.4