Mesa (master): panfrost: Add writes_stencil to the EARLY_Z disable list
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 10 14:28:48 UTC 2020
Module: Mesa
Branch: master
Commit: 3a1a40b4431d505fa6487cd012ddb4b64387aee5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a1a40b4431d505fa6487cd012ddb4b64387aee5
Author: Icecream95 <ixn at keemail.me>
Date: Sat Jun 6 22:32:04 2020 +1200
panfrost: Add writes_stencil to the EARLY_Z disable list
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5065>
---
src/gallium/drivers/panfrost/pan_cmdstream.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c
index 608d1799f97..1533494c7f0 100644
--- a/src/gallium/drivers/panfrost/pan_cmdstream.c
+++ b/src/gallium/drivers/panfrost/pan_cmdstream.c
@@ -844,7 +844,8 @@ panfrost_frag_shader_meta_init(struct panfrost_context *ctx,
* enable early-z testing. TODO: respect e-z force */
SET_BIT(fragmeta->midgard1.flags_lo, MALI_EARLY_Z,
- !fs->can_discard && !fs->writes_depth && !fs->writes_global);
+ !fs->can_discard && !fs->writes_global &&
+ !fs->writes_depth && !fs->writes_stencil);
/* Add the writes Z/S flags if needed. */
SET_BIT(fragmeta->midgard1.flags_lo, MALI_WRITES_Z, fs->writes_depth);
More information about the mesa-commit
mailing list