zink: check for pending clears to determine write status of zs attachments
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 14 Jun 2022 17:14:56 +0000 (13:14 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Jun 2022 20:58:55 +0000 (20:58 +0000)
commitb240be28e3193e83632848bb32eb1013bddfc285
treed6d6f02501428a4520d6c85852942515bedc8030
parent901f5e6a31f65bfe03f2402ac11c0ae6a5140fd3
zink: check for pending clears to determine write status of zs attachments

as @Venemo discovered, zs layouts were being incorrectly set to readonly
in the case where the attachment was only used for an explicit clear,
so ensure that gets taken into account

cc: mesa-stable

fixes (radv):
dEQP-GLES31.functional.stencil_texturing.render.depth24_stencil8_clear
dEQP-GLES31.functional.stencil_texturing.render.depth32f_stencil8_clear

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17033>
src/gallium/drivers/zink/ci/zink-radv-fails.txt
src/gallium/drivers/zink/zink_render_pass.c