venus: fix a cmd builder render_pass state leak across reset

Cc: mesa-stable
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24103>
(cherry picked from commit a9f058d614)
This commit is contained in:
Yiwei Zhang 2023-07-06 15:55:46 -07:00 committed by Dylan Baker
parent 97d2dff491
commit 33cdc6043d
2 changed files with 3 additions and 1 deletions

View file

@ -14834,7 +14834,7 @@
"description": "venus: fix a cmd builder render_pass state leak across reset",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -752,6 +752,8 @@ static void
vn_cmd_reset(struct vn_command_buffer *cmd)
{
vn_cs_encoder_reset(&cmd->cs);
cmd->builder.render_pass = NULL;
if (cmd->builder.present_src_images) {
vk_free(&cmd->pool->allocator, cmd->builder.present_src_images);
cmd->builder.present_src_images = NULL;