panfrost: Respect info.fs.uses_sample_shading
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 29 Jan 2021 17:13:47 +0000 (12:13 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 12 Feb 2021 21:44:29 +0000 (16:44 -0500)
Now that this is a link-time property.

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

src/gallium/drivers/panfrost/pan_assemble.c

index f67e4b7..3f63387 100644 (file)
@@ -351,7 +351,8 @@ panfrost_shader_compile(struct panfrost_context *ctx,
                 state->outputs_read = outputs_read >> FRAG_RESULT_DATA0;
 
                 /* EXT_shader_framebuffer_fetch requires per-sample */
-                state->sample_shading = outputs_read;
+                state->sample_shading = s->info.fs.uses_sample_shading ||
+                        outputs_read;
 
                 /* List of reasons we need to execute frag shaders when things
                  * are masked off */