From 5b5d7a2ecf6083a74aaab69088d00fe80f26b44c Mon Sep 17 00:00:00 2001 From: agalin89 Date: Mon, 14 Dec 2020 19:02:45 +0000 Subject: qsv: update Comet Lake, Ice Lake and Tiger Lake cpu ids --- libhb/handbrake/ports.h | 1 + libhb/ports.c | 8 ++++++++ libhb/qsv_common.c | 1 + 3 files changed, 10 insertions(+) diff --git a/libhb/handbrake/ports.h b/libhb/handbrake/ports.h index fac8d0eee..d597b2208 100644 --- a/libhb/handbrake/ports.h +++ b/libhb/handbrake/ports.h @@ -73,6 +73,7 @@ enum hb_cpu_platform HB_CPU_PLATFORM_INTEL_CHT, HB_CPU_PLATFORM_INTEL_SKL, HB_CPU_PLATFORM_INTEL_KBL, + HB_CPU_PLATFORM_INTEL_CML, HB_CPU_PLATFORM_INTEL_ICL, HB_CPU_PLATFORM_INTEL_TGL, }; diff --git a/libhb/ports.c b/libhb/ports.c index e16c4a272..3a173e5df 100644 --- a/libhb/ports.c +++ b/libhb/ports.c @@ -283,6 +283,8 @@ const char* hb_get_cpu_platform_name() return "Intel microarchitecture Airmont"; case HB_CPU_PLATFORM_INTEL_KBL: return "Intel microarchitecture Kaby Lake"; + case HB_CPU_PLATFORM_INTEL_CML: + return "Intel microarchitecture Comet Lake"; case HB_CPU_PLATFORM_INTEL_ICL: return "Intel microarchitecture Ice Lake"; case HB_CPU_PLATFORM_INTEL_TGL: @@ -377,10 +379,16 @@ static void init_cpu_info() case 0x9E: hb_cpu_info.platform = HB_CPU_PLATFORM_INTEL_KBL; break; + case 0xA5: + case 0xA6: + hb_cpu_info.platform = HB_CPU_PLATFORM_INTEL_CML; + break; + case 0x7D: case 0x7E: hb_cpu_info.platform = HB_CPU_PLATFORM_INTEL_ICL; break; case 0x8C: + case 0x8D: hb_cpu_info.platform = HB_CPU_PLATFORM_INTEL_TGL; break; default: diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index a07fe459c..4df65ad4c 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -130,6 +130,7 @@ int qsv_hardware_generation(int cpu_platform) case HB_CPU_PLATFORM_INTEL_SKL: return QSV_G5; case HB_CPU_PLATFORM_INTEL_KBL: + case HB_CPU_PLATFORM_INTEL_CML: return QSV_G6; case HB_CPU_PLATFORM_INTEL_ICL: return QSV_G7; -- cgit v1.2.3