From 4141d26ee160f934dd51f2e35a46491f96603902 Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Mon, 6 Jul 2020 00:19:55 +1200 Subject: [PATCH] panfrost: Fix MALI_READS_TILEBUFFER Reviewed-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 2 +- src/panfrost/include/panfrost-job.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 58eb3f2a0b6..abc0621782b 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -878,7 +878,7 @@ panfrost_frag_shader_meta_init(struct panfrost_context *ctx, bool depth_enabled = fs->writes_depth || (zsa && zsa->depth.enabled && zsa->depth.func != PIPE_FUNC_ALWAYS); - SET_BIT(fragmeta->midgard1.flags_lo, 0x400, !depth_enabled && fs->can_discard); + SET_BIT(fragmeta->midgard1.flags_lo, MALI_READS_TILEBUFFER, !depth_enabled && fs->can_discard); SET_BIT(fragmeta->midgard1.flags_lo, MALI_READS_ZS, depth_enabled && fs->can_discard); } diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h index a12df31467b..178455ca8f7 100644 --- a/src/panfrost/include/panfrost-job.h +++ b/src/panfrost/include/panfrost-job.h @@ -413,7 +413,7 @@ enum mali_format { * are side effects, hence it interacts with early-z. */ #define MALI_WRITES_GLOBAL (1 << 9) -#define MALI_READS_TILEBUFFER (1 << 12) +#define MALI_READS_TILEBUFFER (1 << 10) /* Applies to midgard1.flags_hi */ -- 2.30.2