mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 10:50:16 +01:00
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> (cherry picked from commit9651d73671)
This commit is contained in:
parent
5284b3fcf3
commit
09f096c8df
2 changed files with 3 additions and 6 deletions
|
|
@ -1744,7 +1744,7 @@
|
|||
"description": "pvr: really free memory in subpass render init",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "10b6a0d567e9782ae5217f4303bdc6fd2f0610ec",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -590,9 +590,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;
|
||||
}
|
||||
|
||||
|
|
@ -610,8 +608,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue