P4 to Git Change 2006447 by gandryey@gera-win10 on 2019/09/30 13:32:36

SWDEV-79445 - OCL generic changes and code clean-up
	- Allow to disable GPUOpen build

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/build/Makefile.pal#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbedefs#52 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#167 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palgpuopen.cpp#18 edit


[ROCm/clr commit: 4794298058]
此提交包含在:
foreman
2019-09-30 13:41:27 -04:00
父節點 4f57b92261
當前提交 bf32fd5aa8
共有 2 個檔案被更改,包括 5 行新增1 行删除
+2
查看文件
@@ -1105,6 +1105,7 @@ bool Device::create(Pal::IDevice* device) {
// Master function that handles developer callbacks from PAL.
void PAL_STDCALL Device::PalDeveloperCallback(void* pPrivateData, const Pal::uint32 deviceIndex,
Pal::Developer::CallbackType type, void* pCbData) {
#ifdef PAL_GPUOPEN_OCL
VirtualGPU* gpu = nullptr;
Device* device = static_cast<Device*>(pPrivateData);
const auto& barrier = *static_cast<const Pal::Developer::BarrierData*>(pCbData);
@@ -1143,6 +1144,7 @@ void PAL_STDCALL Device::PalDeveloperCallback(void* pPrivateData, const Pal::uin
default:
break;
}
#endif // PAL_GPUOPEN_OCL
}
bool Device::initializeHeapResources() {