panvk/csf: Set invalidate_inherited_ctx only if the render pass is inherited

Secondary command buffers don't necessarily inherit their render
context. If we flush draws, we should only set invalidate_inherited_ctx
when the render context is inherited, otherwise is messes up with the
primary command buffer state.

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/32540>
This commit is contained in:
Boris Brezillon 2025-03-04 14:42:49 +01:00 committed by Marge Bot
parent f3be0836b7
commit 864ea81dcf

View file

@ -2578,7 +2578,8 @@ panvk_per_arch(cmd_flush_draws)(struct panvk_cmd_buffer *cmdbuf)
/* We inherited the render context, and need to let the primary command
* buffer know that it's changed. */
cmdbuf->state.gfx.render.invalidate_inherited_ctx = true;
cmdbuf->state.gfx.render.invalidate_inherited_ctx =
inherits_render_ctx(cmdbuf);
/* Re-emit the FB/Tiler descs if we inherited them. */
if (inherits_render_ctx(cmdbuf))