Commit bcf860b
committed
Fix bug in wrap/unwrap physical device object
The Vulkan loader wraps VKPhysicalDevice into a loader_physical_device_tramp
structure and returns it to the application. This is done by the function
setup_loader_tramp_phys_devs.
When the application passes a VKPhysicalDevice to the Vulkan loader, it is
internally treated as a pointer of loader_physical_device_tramp. The loader
then extracts the actual VKPhysicalDevice and forwards it to the ICD driver.
However, there is an issue in the function terminator_CreateDevice. Instead of
converting the VKPhysicalDevice back into a loader_physical_device_tramp,
it incorrectly converts it to a loader_physical_device_term.
This mismatch causes a crash in Vulkan CTS during the test case
'dEQP-VK.api.object_management.single.device_group'.1 parent 0508dee commit bcf860b
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5915 | 5915 | | |
5916 | 5916 | | |
5917 | 5917 | | |
5918 | | - | |
| 5918 | + | |
5919 | 5919 | | |
5920 | | - | |
5921 | | - | |
| 5920 | + | |
| 5921 | + | |
5922 | 5922 | | |
5923 | 5923 | | |
5924 | 5924 | | |
| |||
0 commit comments