mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix: add fallback in setting hw ip version for MTL
setup hw ip version based on device id and revision id Related-To: NEO-8231 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d7aea3e745
commit
c7c7ba7159
@@ -11,4 +11,49 @@ constexpr auto gfxProduct = IGFX_METEORLAKE;
|
||||
|
||||
#include "shared/source/xe_hpg_core/xe_lpg/compiler_product_helper_xe_lpg.inl"
|
||||
|
||||
namespace NEO {
|
||||
template <>
|
||||
uint32_t CompilerProductHelperHw<gfxProduct>::getProductConfigFromHwInfo(const HardwareInfo &hwInfo) const {
|
||||
if (hwInfo.ipVersion.value) {
|
||||
return hwInfo.ipVersion.value;
|
||||
}
|
||||
switch (hwInfo.platform.usDeviceID) {
|
||||
case 0x7D40:
|
||||
case 0x7D45: {
|
||||
switch (hwInfo.platform.usRevId) {
|
||||
case 0x0:
|
||||
case 0x2:
|
||||
return AOT::MTL_M_A0;
|
||||
case 0x3:
|
||||
case 0x8:
|
||||
return AOT::MTL_M_B0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 0x7D55:
|
||||
case 0X7DD5: {
|
||||
switch (hwInfo.platform.usRevId) {
|
||||
case 0x0:
|
||||
case 0x2:
|
||||
return AOT::MTL_P_A0;
|
||||
case 0x3:
|
||||
case 0x8:
|
||||
return AOT::MTL_P_B0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 0x7D60: {
|
||||
switch (hwInfo.platform.usRevId) {
|
||||
case 0x0:
|
||||
return AOT::MTL_M_A0;
|
||||
case 0x2:
|
||||
return AOT::MTL_M_B0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return getDefaultHwIpVersion();
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
static NEO::EnableCompilerProductHelper<gfxProduct> enableCompilerProductHelperMTL;
|
||||
|
||||
Reference in New Issue
Block a user