Skip to content

d3d12: Do not destroy injected sw_winsys object in d3d12_screen

What does this MR do and why?

Revert 325fb6e26b62326c86514d263ffedd241fd36865 d3d12: Only destroy the winsys during screen destruction, not reset since destroys the sw_winsys before the d3d12_screen is successfully initialized, producing future screen creations by loaders with the same injected winsys object to fail the next screen creation on their list (causes #10371 (closed))

Revert 81c8e89ff8e846839fffc1d103b2080bef5c1b5c d3d12: Fix screen->winsys leak in d3d12_screen since it wrongly destroys the sw_winsys on screen reset (deinit destroys the winsys and the subsequent init uses an invalid/destroyed winsys). The original leak bug will be addressed again later on a separate MR.

Cc: mesa-stable

Merge request reports