1
0
Fork 0
forked from wry/wry

surface: don't access shm buffers if there are buffer blockers

This commit is contained in:
Julian Orth 2026-02-11 11:05:51 +01:00
parent d90ddba50a
commit 34bc7d55c5

View file

@ -471,16 +471,15 @@ impl NodeRef<Entry> {
match &self.kind {
EntryKind::Commit(c) => {
let mut has_unmet_dependencies = false;
if c.sync_obj.get() > 0 {
has_unmet_dependencies = true;
}
if c.pending_uploads.get() > 0 {
check_shm_uploads(c)?;
let may_access_buffer = c.sync_obj.get() == 0 && c.num_pending_polls.get() == 0;
if may_access_buffer {
if c.pending_uploads.get() > 0 {
has_unmet_dependencies = true;
check_shm_uploads(c)?;
if c.pending_uploads.get() > 0 {
has_unmet_dependencies = true;
}
}
}
if c.num_pending_polls.get() > 0 {
} else {
has_unmet_dependencies = true;
}
let tl = &c.surface.commit_timeline;