From 528e132d4f7fb86dbee4d5d5d88fceeed0fa236f Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 3 Jul 2020 13:17:35 -0400 Subject: [PATCH] panfrost: Force Z/S writeback This is unfortunately necessary for conformance at this stage. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_mfbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c index 8ac5491b8b6..aea990f2104 100644 --- a/src/gallium/drivers/panfrost/pan_mfbd.c +++ b/src/gallium/drivers/panfrost/pan_mfbd.c @@ -298,7 +298,7 @@ panfrost_mfbd_set_zsbuf( unsigned header_size = rsrc->slices[level].header_size; - fb->mfbd_flags |= MALI_MFBD_EXTRA; + fb->mfbd_flags |= MALI_MFBD_EXTRA | MALI_MFBD_DEPTH_WRITE; fbx->flags_hi |= MALI_EXTRA_PRESENT; fbx->flags_lo |= MALI_EXTRA_ZS | 0x1; /* unknown */ @@ -322,7 +322,7 @@ panfrost_mfbd_set_zsbuf( unsigned layer_stride = (nr_samples > 1) ? rsrc->slices[level].size0 : 0; - fb->mfbd_flags |= MALI_MFBD_EXTRA; + fb->mfbd_flags |= MALI_MFBD_EXTRA | MALI_MFBD_DEPTH_WRITE; fbx->flags_hi |= MALI_EXTRA_PRESENT; fbx->flags_lo |= MALI_EXTRA_ZS; -- 2.30.2