SWDEV-336024 - Clear device heap to 0
This reverts commit 04bfd93569.
Reason for revert: Fix regressions
Change-Id: I7d883e1c3cbd27bb64b581ec800243ad7dfe24fd
This commit is contained in:
@@ -883,8 +883,7 @@ bool Buffer::create(bool alloc_local) {
|
||||
const_cast<Device&>(dev()).updateFreeMemory(size(), false);
|
||||
}
|
||||
}
|
||||
// Hide private allocations from memory tracking
|
||||
else if (owner()->getContext() != dev().context()) {
|
||||
else {
|
||||
const_cast<Device&>(dev()).updateFreeMemory(size(), false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user