mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
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:
parent
e092e1c5bb
commit
d56bfdc54c
1 changed files with 6 additions and 1 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue