P4 to Git Change 1545895 by gandryey@gera-w8 on 2018/04/24 18:25:56

SWDEV-79445 - OCL generic changes and code clean-up
	- Replace dynamic memory object allocation for the managed buffer with a preallocated object

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#298 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.hpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#64 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#94 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#50 edit
This commit is contained in:
foreman
2018-04-24 18:35:32 -04:00
parent 03b72c3007
commit 2f41f41977
8 changed files with 61 additions and 39 deletions
+1 -1
View File
@@ -688,7 +688,7 @@ VirtualGPU::VirtualGPU(Device& device)
tsCache_(nullptr),
dmaFlushMgmt_(device),
managedBuffer_(*this, device.settings().stagedXferSize_ + 32 * Ki),
writeBuffer_(managedBuffer_, device.settings().stagedXferSize_),
writeBuffer_(device, managedBuffer_, device.settings().stagedXferSize_),
hwRing_(0),
readjustTimeGPU_(0),
lastTS_(nullptr),