panfrost: Force ->s_writeback_base to ->zs_writeback_base for Z24S8 buffers

Apparently this field is used even if the stencil is part of the ZS
buffer. Fixes a bunch of page faults on Bifrost.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7922>
This commit is contained in:
Boris Brezillon 2020-11-22 11:37:54 +01:00 committed by Marge Bot
parent 27d622cffe
commit 94009cbebc
1 changed files with 1 additions and 0 deletions

View File

@ -335,6 +335,7 @@ panfrost_mfbd_zs_crc_ext_set_bufs(struct panfrost_batch *batch,
break;
case PIPE_FORMAT_Z24_UNORM_S8_UINT:
ext->zs_write_format = MALI_ZS_FORMAT_D24S8;
ext->s_writeback_base = ext->zs_writeback_base;
break;
case PIPE_FORMAT_Z24X8_UNORM:
ext->zs_write_format = MALI_ZS_FORMAT_D24X8;