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
[ROCm/clr commit: e0f15c2613]
Tento commit je obsažen v:
@@ -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_);
|
||||
|
||||
@@ -160,12 +160,15 @@ NullDevice::create(Pal::AsicRevision asicRevision, Pal::GfxIpLevel ipLevel)
|
||||
properties.gfxLevel = ipLevel;
|
||||
|
||||
// Update HW info for the device
|
||||
if (ipLevel == Pal::GfxIpLevel::_None) {
|
||||
if ((GPU_ENABLE_PAL == 1) && (ipLevel == Pal::GfxIpLevel::_None)) {
|
||||
hwInfo_ = &DeviceInfo[static_cast<uint>(asicRevision)];
|
||||
}
|
||||
else {
|
||||
else if (ipLevel >= Pal::GfxIpLevel::GfxIp9) {
|
||||
hwInfo_ = &GfxIpDeviceInfo[static_cast<uint>(ipLevel)];
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
|
||||
settings_ = new pal::Settings();
|
||||
pal::Settings* palSettings = reinterpret_cast<pal::Settings*>(settings_);
|
||||
@@ -686,11 +689,14 @@ Device::create(Pal::IDevice* device)
|
||||
asicRevision_ = properties().revision;
|
||||
|
||||
// Update HW info for the device
|
||||
if (properties().revision == Pal::AsicRevision::Unknown) {
|
||||
hwInfo_ = &GfxIpDeviceInfo[static_cast<uint>(properties().gfxLevel)];
|
||||
if ((GPU_ENABLE_PAL == 1) && (properties().revision != Pal::AsicRevision::Unknown)) {
|
||||
hwInfo_ = &DeviceInfo[static_cast<uint>(properties().revision)];
|
||||
}
|
||||
else if (ipLevel_ >= Pal::GfxIpLevel::GfxIp9) {
|
||||
hwInfo_ = &GfxIpDeviceInfo[static_cast<uint>(ipLevel_)];
|
||||
}
|
||||
else {
|
||||
hwInfo_ = &DeviceInfo[static_cast<uint>(properties().revision)];
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@ release(bool, GPU_IFH_MODE, false, \
|
||||
"1 = Enable GPU IFH (infinitely fast hardware) mode. Any other value keeps setting disabled.") \
|
||||
release(bool, GPU_MIPMAP, true, \
|
||||
"Enables GPU mipmap extension") \
|
||||
release(uint, GPU_ENABLE_PAL, 0, \
|
||||
release(uint, GPU_ENABLE_PAL, 2, \
|
||||
"Enables PAL backend. 0 - GSL(default), 1 - PAL, 2 - GSL and PAL") \
|
||||
release(bool, DISABLE_DEFERRED_ALLOC, false, \
|
||||
"Disables deferred memory allocation on device") \
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele