diff options
| author | Tyrannys <80750971+Tyrannys@users.noreply.github.com> | 2026-11-27 13:15:10 -0600 |
|---|---|---|
| committer | Tyrannys <80750971+Tyrannys@users.noreply.github.com> | 2026-11-27 13:15:10 -0600 |
| commit | 15566d2a863bf03c0201dd2518436d72f1d1ded3 (patch) | |
| tree | 8443cff02af1a64b37e02fb4f1f0ef4706117bd7 /docs/coder.md | |
| parent | 43a9d562d355e7c5c428e486071b456353de8b05 (diff) | |
dxgi_swapchain: retired swapchain, stale buffer count, unsupported surface, blit filter and composite alpha
Four VulkanSwapchain bugs from a mock-driver review (kevincommits, #1608):
- A failed vkCreateSwapchainKHR still retires its oldSwapchain
(VUID-VkSwapchainCreateInfoKHR-oldSwapchain-01933). The retired
swapchain was kept, acquired from, and passed as oldSwapchain again.
It is now destroyed with its buffers, as the host's swap chain has no
buffers after a failed ResizeBuffers.
- When the off-screen back buffers could not be made, exposed_count_
kept the old BufferCount while there was no ring, so image() and
resource_binding() indexed the native images out of bounds. Nothing
is exposed until the new buffers exist. ResizeBuffers with count 0
still keeps the last built BufferCount.
- A surface the queue family cannot present to was kept, and the next
create() skipped the support check. It is destroyed.
- The present blit always used VK_FILTER_LINEAR. It is NEAREST for a
1:1 blit, and LINEAR only when the format allows linear filtering
(VUID-vkCmdBlitImage-filter-02001). The composite alpha is the first
one the surface offers, opaque first.
dxgi_swapchain_count_test gains one case per finding, following the
repros.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/coder.md')
0 files changed, 0 insertions, 0 deletions