P4 to Git Change 1308933 by gandryey@gera-w8 on 2016/08/30 18:42:21

SWDEV-86035 - Enable PAL for GFX9 by default
	- GPU_ENABLE_PAL=0 will force GSL backend for GFX9

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#550 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#256 edit
This commit is contained in:
foreman
2016-08-30 19:13:14 -04:00
orang tua bac3dbc7a8
melakukan e0f15c2613
3 mengubah file dengan 16 tambahan dan 6 penghapusan
@@ -851,6 +851,10 @@ Device::create(CALuint ordinal, CALuint numOfDevices)
calTarget_ = getAttribs().target;
hwInfo_ = &DeviceInfo[calTarget_];
if ((GPU_ENABLE_PAL == 2) && (calTarget_ > CAL_TARGET_STONEY)) {
return false;
}
// Creates device settings
settings_ = new gpu::Settings();
gpu::Settings* gpuSettings = reinterpret_cast<gpu::Settings*>(settings_);