hk: fix ZLS across split CRs
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
This commit is contained in:
committed by
Marge Bot
parent
e092e1c5bb
commit
d56bfdc54c
@@ -483,9 +483,14 @@ hk_pack_zls_control(struct agx_zls_control_packed *packed,
|
||||
{
|
||||
agx_pack(packed, ZLS_CONTROL, zls_control) {
|
||||
if (z_layout) {
|
||||
/* XXX: Dropping Z stores is wrong if the render pass gets split into
|
||||
* multiple control streams (can that ever happen?) We need more ZLS
|
||||
* variants. Force || true for now.
|
||||
*/
|
||||
zls_control.z_store_enable =
|
||||
attach_z->storeOp == VK_ATTACHMENT_STORE_OP_STORE ||
|
||||
attach_z->resolveMode != VK_RESOLVE_MODE_NONE || partial_render;
|
||||
attach_z->resolveMode != VK_RESOLVE_MODE_NONE || partial_render ||
|
||||
true;
|
||||
|
||||
zls_control.z_load_enable =
|
||||
attach_z->loadOp == VK_ATTACHMENT_LOAD_OP_LOAD || partial_render ||
|
||||
|
||||
Reference in New Issue
Block a user