mesa/src/microsoft
David Headrick 29f5be58e9
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
dozen: Resolve Seg Fault in dzn_physical_device_create
dzn_physical_device_create runs dzn_wsi_init which allocates and initilizes wsi_interfaces.
If the wsi initlizalization fails, the wsi_interfaces are cleaned up and freed (wsi_common.c:330-> wsi_device_finish).
Once the failure propogates up, dzn_physical_device_create runs dzn_physical_device_destroy.
Then, dzn_wsi_finish frees the wsi_interfaces again.

Above path led to a Segmentation Fault on my system when running:
dEQP-VK.api.device_init.create_instance_device_intentional_alloc_fail.basic

This change removes dzn_wsi_finish call if dzn_wsi_init fails, avoiding
a "double free"

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39928>
2026-02-17 15:19:37 +00:00
..
ci ci: Drop hardware-job prerequisite check jobs 2025-12-08 16:59:45 +00:00
clc spirv: Assume variable workgroup size unless it's set 2025-11-20 00:02:42 +00:00
compiler microsoft/compiler: switch to a backend specific unpack half opcode 2026-02-06 06:12:36 +00:00
spirv_to_dxil spirv2dxil: Move clip/cull merging from common passes to just spirv2dxil passes 2025-12-10 05:16:34 +00:00
vulkan dozen: Resolve Seg Fault in dzn_physical_device_create 2026-02-17 15:19:37 +00:00
meson.build d3d12: Do not build microsoft/compiler when graphics, gl or vk disabled 2025-05-08 14:17:22 +00:00