P4 to Git Change 1786426 by gandryey@gera-win10 on 2019/05/22 16:54:24

SWDEV-79445 - OCL generic changes and code clean-up
	- Fix a crash when SDMA is disabled

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#137 edit


[ROCm/clr commit: bee817ba6c]
This commit is contained in:
foreman
2019-05-22 17:36:57 -04:00
parent 5b3ddde1ce
commit ff5bad89bd
@@ -927,6 +927,11 @@ bool Device::create(Pal::IDevice* device) {
palSettings->disableResourceProcessingManager = true;
palSettings->numScratchWavesPerCu = settings().numScratchWavesPerCu_;
if (PAL_DISABLE_SDMA) {
// Make sure CP DMA is used only, since compute path won't work in PAL with OCL
palSettings->cpDmaCmdCopyMemoryMaxBytes = 0xFFFFFFFF;
}
// Commit the new settings for the device
result = iDev()->CommitSettingsAndInit();