mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user