panfrost: Fix MALI_READS_TILEBUFFER
authorIcecream95 <ixn@keemail.me>
Sun, 5 Jul 2020 12:19:55 +0000 (00:19 +1200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jul 2020 13:35:10 +0000 (13:35 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5755>

src/gallium/drivers/panfrost/pan_cmdstream.c
src/panfrost/include/panfrost-job.h

index 58eb3f2a0b6287c1132c24349a60490b83d56474..abc0621782bf8ad3a3a6037fb16a8d9c26cf364a 100644 (file)
@@ -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);
         }
 
index a12df31467bc2e1f4ac504e0766e90bc21dc0e3b..178455ca8f78122313b1987f68de7a237c28d956 100644 (file)
@@ -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 */