diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-07-03 13:17:35 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-15 22:19:37 +0000 |
commit | 528e132d4f7fb86dbee4d5d5d88fceeed0fa236f (patch) | |
tree | 58031fec90d27f4497c2da22565ad8b3835379e3 /src/gallium/drivers | |
parent | da2eed36f3ccdd8ada2dc701d722f475dcf3dbea (diff) |
panfrost: Force Z/S writeback
This is unfortunately necessary for conformance at this stage.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5929>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_mfbd.c | 4 |
1 files 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; |