The open source OpenXR runtime
0
fork

Configure Feed

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

c/util: Expand on swapchain import error codes

This allows the CTS in Direct3D12 to not fail when attempting to import sRGB swapchains with flags such as XR_SWAPCHAIN_USAGE_UNORDERED_ACCESS_BIT

+6
+6
src/xrt/compositor/util/comp_swapchain.c
··· 571 571 572 572 // Use the image helper to get the images. 573 573 ret = vk_ic_from_natives(vk, info, native_images, native_image_count, &sc->vkic); 574 + if (ret == VK_ERROR_FEATURE_NOT_PRESENT) { 575 + return XRT_ERROR_SWAPCHAIN_FLAG_VALID_BUT_UNSUPPORTED; 576 + } 577 + if (ret == VK_ERROR_FORMAT_NOT_SUPPORTED) { 578 + return XRT_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED; 579 + } 574 580 if (ret != VK_SUCCESS) { 575 581 return XRT_ERROR_VULKAN; 576 582 }