From 1f265ef6c15f2aeb557863f61b20871b92dfd2af Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 16 Feb 2021 18:45:46 -0500 Subject: [PATCH] pan/bi: Preload sample ID for sample shading 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 Part-of: --- src/panfrost/lib/pan_shader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panfrost/lib/pan_shader.h b/src/panfrost/lib/pan_shader.h index f02c2f3e77d..cda399d73af 100644 --- a/src/panfrost/lib/pan_shader.h +++ b/src/panfrost/lib/pan_shader.h @@ -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: