Mesa (main): intel/fs: Use shader_info::fs::uses_sample_shading

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 13 21:04:28 UTC 2022


Module: Mesa
Branch: main
Commit: ca9f0f72db3c5dc32299d88043c3918c579413e5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca9f0f72db3c5dc32299d88043c3918c579413e5

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri Nov 19 15:06:55 2021 -0600

intel/fs: Use shader_info::fs::uses_sample_shading

NIR constructs this information for us as part of nir_gather_info these
days so we can simplify our logic a bit.  This will also let us be more
correct once we move uses_sample_shading scraping earlier.

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/intel/compiler/brw_fs.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp
index 27e3d5ab9fb..17cd14f87de 100644
--- a/src/intel/compiler/brw_fs.cpp
+++ b/src/intel/compiler/brw_fs.cpp
@@ -7288,9 +7288,7 @@ brw_nir_populate_wm_prog_data(const nir_shader *shader,
    prog_data->persample_dispatch =
       key->multisample_fbo &&
       (key->persample_interp ||
-       BITSET_TEST(shader->info.system_values_read, SYSTEM_VALUE_SAMPLE_ID) ||
-       BITSET_TEST(shader->info.system_values_read, SYSTEM_VALUE_SAMPLE_POS) ||
-       shader->info.fs.uses_sample_qualifier ||
+       shader->info.fs.uses_sample_shading ||
        shader->info.outputs_read);
 
    if (devinfo->ver >= 6) {



More information about the mesa-commit mailing list