KhronosGroup / KhronosGroup/Vulkan-Samples
Validation error in swapchain recreation example if VK_EXT_present_mode_fifo_latest_ready is supported but not enabled
Open
bug
validation
- Dominant language
- C++
- Stars
- 5.4k
- Forks
- 835
- Avg merge
- 2h 16m
- Merged PRs (30d)
- 1
Description
OS: Arch Linux Stable
GPU: NVIDIA GTX 1080
Driver: 575.57.08-2
If the VK_EXT_present_mode_fifo_latest_ready device extension is supported but not enabled, vkCreateSwapchainKHR fails with
```
vkCreateSwapchainKHR(): pCreateInfo->pNext.pPresentModes[2] (VK_PRESENT_MODE_FIFO_LATEST_READY_EXT) requires the extensions VK_EXT_present_mode_fifo_latest_ready.
```
The reason for the error is that present modes provided by supported but disabled extensions are not filtered out [here](https://github.com/KhronosGroup/Vulkan-Samples/blob/main/samples/api/swapchain_recreation/swapchain_recreation.cpp#L89).
Contributor guide
Assessment
This issue has not been assessed yet.