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

Vulkan: Avoid race in compile thread exit #16689

Merged
merged 1 commit into from Jan 1, 2023

Conversation

unknownbrackets
Copy link
Collaborator

Without the lock, we could enter the wait at just the wrong moment, potentially causing a shutdown hang (see #16601.)

I also wonder if we should just remove vkDeviceWaitIdle...

-[Unknown]

@unknownbrackets unknownbrackets added this to the v1.14.3 milestone Jan 1, 2023
@unknownbrackets unknownbrackets marked this pull request as draft January 1, 2023 14:40
@hrydgard
Copy link
Owner

hrydgard commented Jan 1, 2023

Ah good catch, this should do it!

@hrydgard
Copy link
Owner

hrydgard commented Jan 1, 2023

As for vkDeviceWaitIdle, yeah, we could possibly remove it. Though, it's never going to get stuck in it, at least...

@hrydgard hrydgard merged commit 1353817 into hrydgard:master Jan 1, 2023
@unknownbrackets unknownbrackets deleted the vk-shutdown branch January 1, 2023 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants