panvk/csf: Fix cmd_emit_dcd() in the FB preload logic
We need to mask the bound_attachments value with
MESA_VK_RP_ATTACHMENT_ANY_COLOR_BITS otherwise we're passing
depth/stencil attachments masks too.
Fixes: 0bc3502ca3 ("panvk: Implement a custom FB preload logic")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31625>
This commit is contained in:
committed by
Marge Bot
parent
4199212ebe
commit
195fd67910
@@ -621,7 +621,8 @@ cmd_emit_dcd(struct panvk_cmd_buffer *cmdbuf,
|
||||
|
||||
cfg.blend = bds.gpu;
|
||||
cfg.blend_count = bd_count;
|
||||
cfg.render_target_mask = cmdbuf->state.gfx.render.bound_attachments;
|
||||
cfg.render_target_mask = cmdbuf->state.gfx.render.bound_attachments &
|
||||
MESA_VK_RP_ATTACHMENT_ANY_COLOR_BITS;
|
||||
} else {
|
||||
/* ZS_EMIT requires late update/kill */
|
||||
cfg.zs_update_operation = MALI_PIXEL_KILL_FORCE_LATE;
|
||||
|
||||
Reference in New Issue
Block a user