Skip to content

Create shared swapchains fixes#1908

Merged
charles-lunarg merged 2 commits into
KhronosGroup:mainfrom
cubanismo:create_shared_swapchains_fixes
May 31, 2026
Merged

Create shared swapchains fixes#1908
charles-lunarg merged 2 commits into
KhronosGroup:mainfrom
cubanismo:create_shared_swapchains_fixes

Conversation

@cubanismo
Copy link
Copy Markdown
Contributor

There was a backwards check for ICD surfaces in vkCreateSharedSwapchainsKHR, causing it to always fail if it was called with surface handles that had been used before. The correct version of this check now lives in the helper function wsi_unwrap_icd_surface(), so remove this broken and redundant one.

While I was there, I noticed an overflow in vkCreateSharedSwapchainsKHR. The test was creating two swapchains and storing the result in a non-array result variable.

cubanismo added 2 commits May 31, 2026 02:19
There was a backwards check for ICD surfaces in
vkCreateSharedSwapchainsKHR, causing it to always
fail if it was called with surface handles that
had been used before. The correct version of this
check now lives in the helper function
wsi_unwrap_icd_surface(), so remove this broken
and redundant one.
The test was creating two swapchains and storing
the result in a non-array result variable.
@ci-tester-lunarg
Copy link
Copy Markdown

Author cubanismo not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg
Copy link
Copy Markdown

Author cubanismo not on autobuild list. Waiting for curator authorization before starting CI build.

Copy link
Copy Markdown
Collaborator

@charles-lunarg charles-lunarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fixes!

@ci-tester-lunarg
Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 751578.

@ci-tester-lunarg
Copy link
Copy Markdown

CI Vulkan-Loader build # 3493 running.

@ci-tester-lunarg
Copy link
Copy Markdown

CI Vulkan-Loader build # 3493 passed.

@charles-lunarg charles-lunarg merged commit 121cfd0 into KhronosGroup:main May 31, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants