intel/fs: Use shader_info::fs::uses_sample_shading
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 19 Nov 2021 21:06:55 +0000 (15:06 -0600)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Jul 2022 20:28:42 +0000 (20:28 +0000)
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@intel.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14020>

src/intel/compiler/brw_fs.cpp

index 27e3d5a..17cd14f 100644 (file)
@@ -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) {