P4 to Git Change 1917655 by vsytchen@vsytchen-remote-ocl-win10 on 2019/06/28 10:05:26
SWDEV-193973 - [OpenCL][NV21] Add support for Navi21 1. Recognize gfx10.3 in OpenCL. 2. Don't report nv12/nv12_lite/nv21 for mainline OpenCL. 3. Disable nv10_lite/nv21_lite for OpenCL (gfx1000/1020 are not supported by LC). ReviewBoardURL = http://ocltc.amd.com/reviews/r/17603/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbedefs#42 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcounters.cpp#23 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#56 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#147 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#87 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/macros.hpp#13 edit
This commit is contained in:
@@ -180,7 +180,6 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
|
||||
case Pal::AsicRevision::Unknown:
|
||||
switch (palProp.gfxLevel) {
|
||||
case Pal::GfxIpLevel::GfxIp10_1:
|
||||
case Pal::GfxIpLevel::GfxIp10:
|
||||
gfx10Plus_ = true;
|
||||
case Pal::GfxIpLevel::GfxIp9:
|
||||
aiPlus_ = true;
|
||||
@@ -189,12 +188,9 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
|
||||
assert(0 && "Unknown GfxIP type!");
|
||||
return false;
|
||||
}
|
||||
case Pal::AsicRevision::Navi12Lite:
|
||||
case Pal::AsicRevision::Navi12:
|
||||
case Pal::AsicRevision::Navi14:
|
||||
case Pal::AsicRevision::Navi10:
|
||||
case Pal::AsicRevision::Navi10_A0:
|
||||
case Pal::AsicRevision::Navi10Lite:
|
||||
gfx10Plus_ = true;
|
||||
useLightning_ = GPU_ENABLE_LC;
|
||||
hsailExplicitXnack_ =
|
||||
@@ -204,9 +200,6 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
|
||||
if (useLightning_) {
|
||||
enableWave32Mode_ = true;
|
||||
}
|
||||
if (palProp.revision == Pal::AsicRevision::Navi10Lite && useLightning_) {
|
||||
enableWave32Mode_ = false;
|
||||
}
|
||||
if (!flagIsDefault(GPU_ENABLE_WAVE32_MODE)) {
|
||||
enableWave32Mode_ = GPU_ENABLE_WAVE32_MODE;
|
||||
}
|
||||
@@ -478,9 +471,8 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
|
||||
}
|
||||
|
||||
if (useLightning_) {
|
||||
switch (palProp.gfxLevel) {
|
||||
switch (palProp.gfxLevel) {:
|
||||
case Pal::GfxIpLevel::GfxIp10_1:
|
||||
case Pal::GfxIpLevel::GfxIp10:
|
||||
case Pal::GfxIpLevel::GfxIp9:
|
||||
singleFpDenorm_ = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user