mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 10:50:16 +01:00
Revert "d3d12: Only destroy the winsys during screen destruction, not reset"
This reverts commit325fb6e26b. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10371 Fixes:325fb6e26b("d3d12: Only destroy the winsys during screen destruction, not reset") Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26872>
This commit is contained in:
parent
d6f0f46ae4
commit
97cc7ea5a5
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue