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>
This commit is contained in:
@@ -766,15 +766,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);
|
||||
|
Reference in New Issue
Block a user