fix: only log Device::maintain waits if they happen (#6303)

This commit is contained in:
Erich Gubler 2024-09-21 12:47:35 -04:00 committed by GitHub
parent 9977edc51f
commit 841e7c8857
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -457,13 +457,13 @@ impl Device {
// If necessary, wait for that submission to complete. // If necessary, wait for that submission to complete.
if maintain.is_wait() { if maintain.is_wait() {
log::trace!("Device::maintain: waiting for submission index {submission_index}");
unsafe { unsafe {
self.raw() self.raw()
.wait(fence.as_ref(), submission_index, CLEANUP_WAIT_MS) .wait(fence.as_ref(), submission_index, CLEANUP_WAIT_MS)
} }
.map_err(|e| self.handle_hal_error(e))?; .map_err(|e| self.handle_hal_error(e))?;
} }
log::trace!("Device::maintain: waiting for submission index {submission_index}");
let mut life_tracker = self.lock_life(); let mut life_tracker = self.lock_life();
let submission_closures = let submission_closures =