Repository navigation
D3d 725 vk suboptimal fix - #7432
VoidxNullx wants to merge 4 commits into
Conversation
…oss-check The parse_scarab_* functions could raise OSError (file access), UnicodeDecodeError (invalid UTF-8), and ValueError (malformed hex in int(x, 16)) which propagated uncaught and crashed the tool. Wrap each parse call in check_scarab() with try/except and convert exceptions to proper error messages in the returned errors list. Fixes BUILD-1628.
…ebuild VK_SUBOPTIMAL_KHR means the swapchain is still usable but not optimal (e.g., after a resize that hasn't been processed yet). It does NOT require a rebuild — only VK_ERROR_OUT_OF_DATE_KHR does. Previously, stale_ was set to true on VK_SUBOPTIMAL_KHR, causing an unnecessary swapchain recreate (with queue idle) on every subsequent frame. The finder's test showed 12 rebuilds and 12 queue-idle calls for 12 advisories; this fix brings both to zero. Fixes D3D-725.
|
I ran this against the test added in #7391 ( With this PR's Likely reason: the change drops Also: the PR template is not filled in (no claim link, no "Tested" section, no AI-assisted line), and the AI-assisted (Claude Code). |
…nges unrelated to D3D-725)
The acquire side fix (commit ed01b02) was incomplete - the present side also set stale_ = true on VK_SUBOPTIMAL_KHR at line 607, causing the swapchain to still be rebuilt every frame. Now both paths correctly treat VK_SUBOPTIMAL_KHR as usable (no rebuild). Only VK_ERROR_OUT_OF_DATE_KHR triggers a rebuild. AI-assisted (Claude Code).
Claimed in the coordination issue as:
Depends on:
What and why
Tested
AI-assisted:
Checklist
docs/design.md, with how it was confirmed.