File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ ResidencySet::ResidencySet(MTL::Device* d) {
22
22
}
23
23
throw std::runtime_error (msg.str ());
24
24
}
25
+ wired_set_->requestResidency ();
25
26
}
26
27
}
27
28
@@ -32,7 +33,6 @@ void ResidencySet::insert(MTL::Allocation* buf) {
32
33
if (wired_set_->allocatedSize () + buf->allocatedSize () <= capacity_) {
33
34
wired_set_->addAllocation (buf);
34
35
wired_set_->commit ();
35
- wired_set_->requestResidency ();
36
36
} else {
37
37
unwired_set_.insert (buf);
38
38
}
@@ -76,7 +76,6 @@ void ResidencySet::resize(size_t size) {
76
76
}
77
77
}
78
78
wired_set_->commit ();
79
- wired_set_->requestResidency ();
80
79
} else if (current_size > size) {
81
80
auto pool = new_scoped_memory_pool ();
82
81
// Remove wired allocations until under capacity
You can’t perform that action at this time.
0 commit comments