mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Improve GraphicsAllocation reuse management
Change-Id: Iee14b4641712231c801676b758546be76deef636
This commit is contained in:
@@ -70,7 +70,7 @@ MemObj::~MemObj() {
|
||||
if (peekSharingHandler()) {
|
||||
peekSharingHandler()->releaseReusedGraphicsAllocation();
|
||||
}
|
||||
if (graphicsAllocation && !associatedMemObject && !isObjectRedescribed && !isHostPtrSVM && graphicsAllocation->reuseCount == 0) {
|
||||
if (graphicsAllocation && !associatedMemObject && !isObjectRedescribed && !isHostPtrSVM && graphicsAllocation->peekReuseCount() == 0) {
|
||||
bool doAsyncDestrucions = DebugManager.flags.EnableAsyncDestroyAllocations.get();
|
||||
if (!doAsyncDestrucions) {
|
||||
needWait = true;
|
||||
|
||||
Reference in New Issue
Block a user