pan/bi: Preload sample ID for sample shading
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 16 Feb 2021 23:45:46 +0000 (18:45 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Feb 2021 21:48:22 +0000 (21:48 +0000)
Used in the LD_VAR_IMM. Wondering if preload requirements shouldn't
instead be pushed from the compiler based on actual usage instead of
guessing from the NIR...

Fixes dEQP-GLES31.functional.shaders.multisample_interpolation.sample_qualifier.*

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9105>

src/panfrost/lib/pan_shader.h

index f02c2f3..cda399d 100644 (file)
@@ -139,7 +139,8 @@ pan_shader_prepare_bifrost_rsd(const struct pan_shader_info *info,
                         info->fs.reads_sample_id |
                         info->fs.reads_sample_pos |
                         info->fs.reads_sample_mask_in |
-                        info->fs.reads_helper_invocation;
+                        info->fs.reads_helper_invocation |
+                        info->fs.sample_shading;
                 break;
 
         case MESA_SHADER_COMPUTE: