P4 to Git Change 1409664 by skudchad@skudchad_test_win_opencl2 on 2017/05/15 13:43:01

SWDEV-121337 - [Gfx10][SW Emulation] - Support for SW emulation path for Compute
	- Makefile changes for passing DTIF build flag
	- Disable SVM support when emulating.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/12755/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/build/Makefile.pal#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#46 edit
This commit is contained in:
foreman
2017-05-15 13:48:39 -04:00
parent 7a2a73f05a
commit 1d5baa6862
+2
View File
@@ -1019,11 +1019,13 @@ bool Device::init() {
platformObj = new char[size];
Pal::PlatformCreateInfo info = {};
info.flags.disableGpuTimeout = true;
#if !defined(PAL_BUILD_DTIF)
#ifdef ATI_BITS_32
info.flags.force32BitVaSpace = true;
info.flags.enableSvmMode = false;
#else
info.flags.enableSvmMode = true;
#endif
#endif
info.pSettingsPath = "OCL";
info.maxSvmSize = static_cast<Pal::gpusize>(OCL_SET_SVM_SIZE * Mi);