P4 to Git Change 1564341 by gandryey@gera-w8 on 2018/06/05 16:37:09

SWDEV-79445 - OCL generic changes and code clean-up
	- Follwoing CL#1564298. Delete the old array

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#421 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#106 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#55 edit


[ROCm/clr commit: aa7316a8eb]
This commit is contained in:
foreman
2018-06-05 16:44:03 -04:00
parent 03910f3663
commit aef9e15df9
3 changed files with 3 additions and 0 deletions
@@ -128,6 +128,7 @@ void VirtualGPU::MemoryDependency::clear(bool all) {
}
maxMemObjectsInQueue_ <<= 1;
memcpy(ptr, memObjectsInQueue_, sizeof(MemoryState) * numMemObjectsInQueue_);
delete[] memObjectsInQueue_;
memObjectsInQueue_= ptr;
}
numMemObjectsInQueue_ -= endMemObjectsInQueue_;
@@ -504,6 +504,7 @@ void VirtualGPU::MemoryDependency::clear(bool all) {
}
maxMemObjectsInQueue_ <<= 1;
memcpy(ptr, memObjectsInQueue_, sizeof(MemoryState) * numMemObjectsInQueue_);
delete[] memObjectsInQueue_;
memObjectsInQueue_= ptr;
}
@@ -176,6 +176,7 @@ void VirtualGPU::MemoryDependency::clear(bool all) {
}
maxMemObjectsInQueue_ <<= 1;
memcpy(ptr, memObjectsInQueue_, sizeof(MemoryState) * numMemObjectsInQueue_);
delete[] memObjectsInQueue_;
memObjectsInQueue_= ptr;
}