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
This commit is contained in:
1 parent
1130565901
commit
aa7316a8eb
3 files changed
+3
No files matched your search
@@ -128,6 +128,7 @@ void VirtualGPU::MemoryDependency::clear(bool all) {
|
||||
}
|
||||
maxMemObjectsInQueue_ <<= 1;
|
||||
memcpy(ptr, memObjectsInQueue_, sizeof(MemoryState) * numMemObjectsInQueue_);
|
||||
delete[] memObjectsInQueue_;
|
||||
memObjectsInQueue_= ptr;
|
||||
}
|
||||
numMemObjectsInQueue_ -= endMemObjectsInQueue_;
|
||||
|
||||
Reference in new issue
Block a user