summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIcecream95 <ixn@keemail.me>2020-07-06 00:19:55 +1200
committerMarge Bot <eric+marge@anholt.net>2020-07-13 13:35:10 +0000
commit4141d26ee160f934dd51f2e35a46491f96603902 (patch)
tree800e5f062b25ef2c0d2156145d7058ba69731a35
parent2e3a589e6c82c4baae279af61ec06940a2335c42 (diff)
panfrost: Fix MALI_READS_TILEBUFFER
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5755>
-rw-r--r--src/gallium/drivers/panfrost/pan_cmdstream.c2
-rw-r--r--src/panfrost/include/panfrost-job.h2
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 */