From 3cf103f23d87d9dda9e7f01ae37c712d5d2b593e Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 1 Dec 2021 16:12:21 -0600 Subject: [PATCH] nir/gather_info: Stop gathering uses_sample_shading Reviewed-by: Lionel Landwerlin Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir_gather_info.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index 21784b7c5b9..c19fe07a1bd 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -987,17 +987,6 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint) gather_func_info(entrypoint, shader, visited_funcs, dead_ctx); ralloc_free(dead_ctx); - if (shader->info.stage == MESA_SHADER_FRAGMENT && - (shader->info.fs.uses_sample_qualifier || - (BITSET_TEST(shader->info.system_values_read, SYSTEM_VALUE_SAMPLE_ID) || - BITSET_TEST(shader->info.system_values_read, SYSTEM_VALUE_SAMPLE_POS)))) { - /* This shouldn't be cleared because if optimizations remove all - * sample-qualified inputs and that pass is run again, the sample - * shading must stay enabled. - */ - shader->info.fs.uses_sample_shading = true; - } - shader->info.per_primitive_outputs = 0; if (shader->info.stage == MESA_SHADER_MESH) { nir_foreach_shader_out_variable(var, shader) {