Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove retired swapchain images immediately #1966

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

mikes-lunarg
Copy link
Contributor

The implementation is allowed to destroy and reuse handles for non-acquired swapchain images as soon as the parent swapchain is retired. Update the handle tracking logic to treat these handles as destroyed, so that if they are reused, we don't get collisions in the handle tables.

Android is particularly sensitive to this as it will often immediately reuse image handles from retired swapchains, even before the retired swapchain is destroyed.

The implementation is allowed to destroy and reuse handles for non-acquired
swapchain images as soon as the parent swapchain is retired. Update the handle
tracking logic to treat these handles as destroyed, so that if they are reused,
we don't get collisions in the handle tables.

Android is particularly sensitive to this as it will often immediately reuse
image handles from retired swapchains, even before the retired swapchain is
destroyed.
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 349703.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5860 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5860 passed.

@mikes-lunarg mikes-lunarg merged commit e4b939e into LunarG:dev Jan 23, 2025
9 checks passed
@mikes-lunarg mikes-lunarg deleted the swapchain_try_4 branch January 23, 2025 00:47
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.

5 participants