mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 10:20:22 +01:00
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:
parent
97d2dff491
commit
33cdc6043d
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue