Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions icd_shim/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2833,6 +2833,22 @@ unsafe fn gn_acquire_common(
VK_TIMEOUT
};
}
// The slot is ours, but the panel may still be scanning its buffer out: the
// compositor hands a buffer back at the flip event, which leaves when its
// replacement is published, before that replacement is on screen. Wait for
// the release the daemon forwards for it (none from an older daemon: no
// wait) before the guest may render into it. A non-blocking acquire is not
// made to block.
if timeout != 0 {
let budget = deadline.map_or(crate::scanout::RELEASE_WAIT, |dl| {
dl.saturating_duration_since(Instant::now())
.min(crate::scanout::RELEASE_WAIT)
});
crate::scanout::wait_release(
unsafe { (*(*sc).slots.as_ptr().add(idx as usize)).ino },
budget,
);
}
if sem != 0 || fence != 0 {
let gq = unsafe { (*gd).queues };
if gq.is_null() {
Expand Down
Loading