The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

st/oxr: fix vulkan validation error

Fixes validation about using 1.1 core spec
fn/types in a 1.0 instance where they are exts
for 1.0

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2443>

+5 -5
+5 -5
src/xrt/state_trackers/oxr/oxr_vulkan.c
··· 358 358 VkInstance instance, 359 359 PFN_vkGetInstanceProcAddr GetInstanceProcAddr, 360 360 VkPhysicalDevice physical_device, 361 - VkPhysicalDeviceFeatures2 *physical_device_features) 361 + VkPhysicalDeviceFeatures2KHR *physical_device_features) 362 362 { 363 - PFN_vkGetPhysicalDeviceFeatures2 GetPhysicalDeviceFeatures2 = 364 - (PFN_vkGetPhysicalDeviceFeatures2)GetInstanceProcAddr(instance, "vkGetPhysicalDeviceFeatures2"); 363 + PFN_vkGetPhysicalDeviceFeatures2KHR GetPhysicalDeviceFeatures2 = 364 + (PFN_vkGetPhysicalDeviceFeatures2KHR)GetInstanceProcAddr(instance, "vkGetPhysicalDeviceFeatures2KHR"); 365 365 366 366 if (!GetPhysicalDeviceFeatures2) { 367 367 oxr_error(log, XR_ERROR_RUNTIME_FAILURE, "Failed to get vkGetPhysicalDeviceFeatures2 fp"); ··· 457 457 free(props); 458 458 459 459 460 - VkPhysicalDeviceFeatures2 physical_device_features = { 461 - .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, 460 + VkPhysicalDeviceFeatures2KHR physical_device_features = { 461 + .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHR, 462 462 .pNext = NULL, 463 463 }; 464 464