mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 18:10:17 +01:00
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:
parent
f3be0836b7
commit
864ea81dcf
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue