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

Check command buffer callback queue before VkDevice is destroyed #3435

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

cmannett85-arm
Copy link
Collaborator

We only check for signaled events on each queue submit, so the last submission before exit will never be checked. This change makes sure we check for completed submissions just before the device is destroyed (typically target application exit).

Without this change you will get VVL warnings due to the VkEvent not being destroyed before the VkDevice - plus anything else that the callbacks were intended to destroy.

Copy link
Owner

@baldurk baldurk left a comment

Choose a reason for hiding this comment

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

I think since this is happening during shutdown we should just destroy these events and close without calling the callbacks, as it seems safer to not call callbacks that may want to do work that's invalid while shutting down - rather than callbacks which must be called.

We only check for signaled events on each queue submit, so the last submission before exit will never be checked.  This change makes sure we release for completed submissions just before the device is destroyed (typically target application exit).  In this case the callbacks are not called.
@baldurk baldurk merged commit 031c495 into baldurk:v1.x Sep 18, 2024
16 checks passed
@cmannett85-arm cmannett85-arm deleted the flush_submit_completion_q branch September 18, 2024 10:08
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.

2 participants