mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
Fix typo in variable name
Change-Id: Ic9c4e0af7c886223cfc7dda53aaf49512ecd59f2 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
74a02adabe
commit
6d2e92cf20
@@ -64,14 +64,14 @@ MemObj::~MemObj() {
|
|||||||
}
|
}
|
||||||
if (graphicsAllocation && !associatedMemObject && !isHostPtrSVM && graphicsAllocation->peekReuseCount() == 0) {
|
if (graphicsAllocation && !associatedMemObject && !isHostPtrSVM && graphicsAllocation->peekReuseCount() == 0) {
|
||||||
memoryManager->removeAllocationFromHostPtrManager(graphicsAllocation);
|
memoryManager->removeAllocationFromHostPtrManager(graphicsAllocation);
|
||||||
bool doAsyncDestrucions = DebugManager.flags.EnableAsyncDestroyAllocations.get();
|
bool doAsyncDestructions = DebugManager.flags.EnableAsyncDestroyAllocations.get();
|
||||||
if (!doAsyncDestrucions) {
|
if (!doAsyncDestructions) {
|
||||||
needWait = true;
|
needWait = true;
|
||||||
}
|
}
|
||||||
if (needWait && graphicsAllocation->isUsed()) {
|
if (needWait && graphicsAllocation->isUsed()) {
|
||||||
memoryManager->waitForEnginesCompletion(*graphicsAllocation);
|
memoryManager->waitForEnginesCompletion(*graphicsAllocation);
|
||||||
}
|
}
|
||||||
destroyGraphicsAllocation(graphicsAllocation, doAsyncDestrucions);
|
destroyGraphicsAllocation(graphicsAllocation, doAsyncDestructions);
|
||||||
graphicsAllocation = nullptr;
|
graphicsAllocation = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user