mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
d3d12: Only destroy the winsys during screen destruction, not reset
Fixes:81c8e89f("d3d12: Fix screen->winsys leak in d3d12_screen") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26744> (cherry picked from commit325fb6e26b)
This commit is contained in:
parent
0bbbc9e710
commit
684d11421c
2 changed files with 5 additions and 5 deletions
|
|
@ -414,7 +414,7 @@
|
|||
"description": "d3d12: Only destroy the winsys during screen destruction, not reset",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "81c8e89ff8e846839fffc1d103b2080bef5c1b5c",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -735,15 +735,15 @@ d3d12_deinit_screen(struct d3d12_screen *screen)
|
|||
screen->dev->Release();
|
||||
screen->dev = nullptr;
|
||||
}
|
||||
if (screen->winsys) {
|
||||
screen->winsys->destroy(screen->winsys);
|
||||
screen->winsys = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
d3d12_destroy_screen(struct d3d12_screen *screen)
|
||||
{
|
||||
if (screen->winsys) {
|
||||
screen->winsys->destroy(screen->winsys);
|
||||
screen->winsys = nullptr;
|
||||
}
|
||||
slab_destroy_parent(&screen->transfer_pool);
|
||||
mtx_destroy(&screen->submit_mutex);
|
||||
mtx_destroy(&screen->descriptor_pool_mutex);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue