P4 to Git Change 1329979 by gandryey@gera-w8 on 2016/10/21 13:26:53
SWDEV-86035 - Add PAL backend to OpenCL
- Allow device memory usage for blit kernels
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#15 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#32 edit
[ROCm/clr commit: 43f8188d59]
Αυτή η υποβολή περιλαμβάνεται σε:
1 γονέας
2576f51460
υποβολή
25319dac4b
8 files changed
+80
-76
No files matched your search
@@ -63,7 +63,7 @@ VirtualGPU::Queue::Create(
|
||||
qCreateInfo.numReservedCu = rtCU;
|
||||
qCreateInfo.engineIndex = 0x0;
|
||||
cmdCreateInfo.engineType = qCreateInfo.engineType = Pal::EngineTypeExclusiveCompute;
|
||||
cmdCreateInfo.flags.rtCu = true;
|
||||
cmdCreateInfo.flags.realtimeComputeUnits = true;
|
||||
}
|
||||
*/
|
||||
// Find queue object size
|
||||
@@ -801,28 +801,6 @@ VirtualGPU::create(bool profiling, uint deviceQueueSize, uint rtCUs,
|
||||
return false;
|
||||
}
|
||||
|
||||
// Choose the appropriate class for blit engine
|
||||
switch (dev().settings().blitEngine_) {
|
||||
default:
|
||||
// Fall through ...
|
||||
case Settings::BlitEngineHost:
|
||||
blitSetup.disableAll();
|
||||
// Fall through ...
|
||||
case Settings::BlitEngineCAL:
|
||||
case Settings::BlitEngineKernel:
|
||||
// use host blit for HW debug
|
||||
if (dev().settings().enableHwDebug_) {
|
||||
blitSetup.disableCopyImageToBuffer_ = true;
|
||||
blitSetup.disableCopyBufferToImage_ = true;
|
||||
}
|
||||
blitMgr_ = new KernelBlitManager(*this, blitSetup);
|
||||
break;
|
||||
}
|
||||
if ((nullptr == blitMgr_) || !blitMgr_->create(gpuDevice_)) {
|
||||
LogError("Could not create BlitManager!");
|
||||
return false;
|
||||
}
|
||||
|
||||
tsCache_ = new TimeStampCache(*this);
|
||||
if (nullptr == tsCache_) {
|
||||
LogError("Could not create TimeStamp cache!");
|
||||
@@ -846,6 +824,28 @@ VirtualGPU::create(bool profiling, uint deviceQueueSize, uint rtCUs,
|
||||
return false;
|
||||
}
|
||||
|
||||
// Choose the appropriate class for blit engine
|
||||
switch (dev().settings().blitEngine_) {
|
||||
default:
|
||||
// Fall through ...
|
||||
case Settings::BlitEngineHost:
|
||||
blitSetup.disableAll();
|
||||
// Fall through ...
|
||||
case Settings::BlitEngineCAL:
|
||||
case Settings::BlitEngineKernel:
|
||||
// use host blit for HW debug
|
||||
if (dev().settings().enableHwDebug_) {
|
||||
blitSetup.disableCopyImageToBuffer_ = true;
|
||||
blitSetup.disableCopyBufferToImage_ = true;
|
||||
}
|
||||
blitMgr_ = new KernelBlitManager(*this, blitSetup);
|
||||
break;
|
||||
}
|
||||
if ((nullptr == blitMgr_) || !blitMgr_->create(gpuDevice_)) {
|
||||
LogError("Could not create BlitManager!");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user