P4 to Git Change 1586165 by gandryey@gera-w8 on 2018/07/26 18:11:39

SWDEV-79445 - OCL generic changes and code clean-up
	- Make sure RAVEN2 uses PAL path for offline devices

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#597 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#167 edit
Этот коммит содержится в:
foreman
2018-07-26 18:27:12 -04:00
родитель 9ddfeef105
Коммит 2544968e15
2 изменённых файлов: 11 добавлений и 11 удалений
+4 -8
Просмотреть файл
@@ -135,12 +135,10 @@ bool NullDevice::create(CALtarget target) {
assert((target >= CAL_TARGET_TAHITI) && (target != CAL_TARGET_SCRAPPER) &&
(target != CAL_TARGET_DEVASTATOR));
if ((GPU_ENABLE_PAL == 2) &&
(calTarget_ == CAL_TARGET_GREENLAND || calTarget_ == CAL_TARGET_RAVEN ||
calTarget_ >= CAL_TARGET_VEGA12)) {
return false;
if ((GPU_ENABLE_PAL == 2) && usePal()) {
return false;
}
// Force double if it could be supported
switch (target) {
case CAL_TARGET_PITCAIRN:
@@ -862,9 +860,7 @@ bool Device::create(CALuint ordinal, CALuint numOfDevices) {
calTarget_ = getAttribs().target;
hwInfo_ = &DeviceInfo[calTarget_];
if ((GPU_ENABLE_PAL == 2) &&
(calTarget_ == CAL_TARGET_GREENLAND || calTarget_ == CAL_TARGET_RAVEN ||
calTarget_ == CAL_TARGET_RAVEN2 || calTarget_ >= CAL_TARGET_VEGA12)) {
if ((GPU_ENABLE_PAL == 2) && usePal()) {
return false;
}