KhronosGroup / KhronosGroup/Vulkan-Samples

Validation error in swapchain recreation example if VK_EXT_present_mode_fifo_latest_ready is supported but not enabled

Open
#1,360 0 comments 0 reactions 1 assignee Claimed by @SaschaWillems View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.