Wait for resource not being used in freeGraphicsMemory

Change-Id: I201d914569fc0cf6f9eb616d456a670b0b8741ab
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2019-03-04 14:50:26 +01:00
parent 04c2064382
commit 79d0878e64
18 changed files with 167 additions and 39 deletions

View File

@@ -573,10 +573,13 @@ void DrmMemoryManager::freeGraphicsMemoryImpl(GraphicsAllocation *gfxAllocation)
delete gfxAllocation;
search->wait(-1);
unreference(search);
}
void DrmMemoryManager::handleFenceCompletion(GraphicsAllocation *allocation) {
static_cast<DrmAllocation *>(allocation)->getBO()->wait(-1);
}
uint64_t DrmMemoryManager::getSystemSharedMemory() {
uint64_t hostMemorySize = MemoryConstants::pageSize * (uint64_t)(sysconf(_SC_PHYS_PAGES));