mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Reuse GraphicsAllocation mechanism for shared resources
Change-Id: I4bfd2d3387ae0fc10d461ebc1ada94614ab7f6b5
This commit is contained in:
committed by
sys_ocldev
parent
7b30a7c2b8
commit
e579578bc8
@@ -67,7 +67,10 @@ MemObj::~MemObj() {
|
||||
}
|
||||
|
||||
if (memoryManager) {
|
||||
if (graphicsAllocation && !associatedMemObject && !isObjectRedescribed && !isHostPtrSVM) {
|
||||
if (peekSharingHandler()) {
|
||||
peekSharingHandler()->releaseReusedGraphicsAllocation();
|
||||
}
|
||||
if (graphicsAllocation && !associatedMemObject && !isObjectRedescribed && !isHostPtrSVM && graphicsAllocation->reuseCount == 0) {
|
||||
bool doAsyncDestrucions = DebugManager.flags.EnableAsyncDestroyAllocations.get();
|
||||
if (!doAsyncDestrucions) {
|
||||
needWait = true;
|
||||
|
||||
Reference in New Issue
Block a user