From: Icecream95 Date: Sun, 5 Jul 2020 12:19:55 +0000 (+1200) Subject: panfrost: Fix MALI_READS_TILEBUFFER X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4141d26ee160f934dd51f2e35a46491f96603902;p=mesa.git panfrost: Fix MALI_READS_TILEBUFFER Reviewed-by: Alyssa Rosenzweig Part-of: --- 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 */