Mesa (master): panfrost: Fix MALI_READS_TILEBUFFER
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 13 14:04:06 UTC 2020
Module: Mesa
Branch: master
Commit: 4141d26ee160f934dd51f2e35a46491f96603902
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4141d26ee160f934dd51f2e35a46491f96603902
Author: Icecream95 <ixn at keemail.me>
Date: Mon Jul 6 00:19:55 2020 +1200
panfrost: Fix MALI_READS_TILEBUFFER
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5755>
---
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 */
More information about the mesa-commit
mailing list