- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As per Vulkan spec, vkGetPhysicalDeviceSurfaceFormatsKHR should fill pSurfaceFormatCount as follows:
Otherwise, pSurfaceFormatCount must point to a variable set by the user to the number of elements in the pSurfaceFormats array, and on return the variable is overwritten with the number of structures actually written to pSurfaceFormats.
However, this code:
VkSurfaceFormatKHR formats[16];
uint32_t formatCount = sizeof(formats) / sizeof(formats[0]);
VK_CHECK(vkGetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, &formatCount, formats));
Leaves formatCount as 16 after vkGetPhysicalDeviceSurfaceFormatsKHR successfully returns (and fills 2 values in the formats buffer).
This happens on Windows 10, 24.20.100.6286 graphics driver as reported by dxdiag
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This bug also occurs with vkGetSwapchainImagesKHR, and possibly other swapchain functions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We released a new graphics driver (25.20.100.6444) yesterday (11/28) and it has the fix for your issue. You can get details on the driver here: https://downloadcenter.intel.com/download/28139
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page