panfrost: Add writes_stencil to the EARLY_Z disable list

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5065>
This commit is contained in:
Icecream95
2020-06-06 22:32:04 +12:00
committed by Marge Bot
parent deaef1df15
commit 3a1a40b443
+2 -1
View File
@@ -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);