pvr: really free memory in subpass render init
Fixes: 10b6a0d567 ("pvr: Add support for generating render pass hw setup data.")
Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31679>
This commit is contained in:
committed by
Marge Bot
parent
b8e0c15531
commit
9651d73671
@@ -602,9 +602,7 @@ pvr_subpass_setup_render_init(struct pvr_renderpass_context *ctx)
|
||||
hw_subpass->color_initops[j],
|
||||
&use_render_init);
|
||||
if (result != VK_SUCCESS) {
|
||||
if (!first_use.tile_buffers)
|
||||
free(first_use.tile_buffers);
|
||||
|
||||
vk_free(ctx->allocator, first_use.tile_buffers);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -622,8 +620,7 @@ pvr_subpass_setup_render_init(struct pvr_renderpass_context *ctx)
|
||||
}
|
||||
}
|
||||
|
||||
if (!first_use.tile_buffers)
|
||||
free(first_use.tile_buffers);
|
||||
vk_free(ctx->allocator, first_use.tile_buffers);
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user