Mesa (main): nir/gather_info: Stop gathering uses_sample_shading
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 13 21:04:29 UTC 2022
Module: Mesa
Branch: main
Commit: 3cf103f23d87d9dda9e7f01ae37c712d5d2b593e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3cf103f23d87d9dda9e7f01ae37c712d5d2b593e
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Wed Dec 1 16:12:21 2021 -0600
nir/gather_info: Stop gathering uses_sample_shading
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14020>
---
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) {
More information about the mesa-commit
mailing list