panfrost: Fix MALI_READS_TILEBUFFER

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5755>
This commit is contained in:
Icecream95 2020-07-06 00:19:55 +12:00 committed by Marge Bot
parent 2e3a589e6c
commit 4141d26ee1
2 changed files with 2 additions and 2 deletions

View 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);
}

View 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 */