surface: don't access shm buffers if there are buffer blockers
This commit is contained in:
parent
d90ddba50a
commit
34bc7d55c5
1 changed files with 7 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue