2021-12-14 23:37:23 +08:00
|
|
|
/*
|
2024-02-17 00:26:30 +08:00
|
|
|
* Copyright (C) 2021-2024 Intel Corporation
|
2021-12-14 23:37:23 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
using IsGen8 = IsGfxCore<IGFX_GEN8_CORE>;
|
|
|
|
using IsGen9 = IsGfxCore<IGFX_GEN9_CORE>;
|
|
|
|
using IsGen11HP = IsGfxCore<IGFX_GEN11_CORE>;
|
|
|
|
using IsGen11LP = IsGfxCore<IGFX_GEN11LP_CORE>;
|
|
|
|
using IsGen12LP = IsGfxCore<IGFX_GEN12LP_CORE>;
|
|
|
|
using IsXeHpgCore = IsGfxCore<IGFX_XE_HPG_CORE>;
|
|
|
|
using IsXeHpcCore = IsGfxCore<IGFX_XE_HPC_CORE>;
|
2022-01-12 03:41:57 +08:00
|
|
|
using IsNotXeHpcCore = IsNotGfxCore<IGFX_XE_HPC_CORE>;
|
2022-05-13 20:04:24 +08:00
|
|
|
using IsNotXeHpgCore = IsNotGfxCore<IGFX_XE_HPG_CORE>;
|
2024-07-09 17:29:17 +08:00
|
|
|
using IsXe2HpgCore = IsGfxCore<IGFX_XE2_HPG_CORE>;
|
|
|
|
using IsNotXe2HpgCore = IsNotGfxCore<IGFX_XE2_HPG_CORE>;
|
2021-12-14 23:37:23 +08:00
|
|
|
|
2023-03-14 18:30:15 +08:00
|
|
|
using IsAtMostGen9 = IsAtMostGfxCore<IGFX_GEN9_CORE>;
|
2023-02-20 18:27:13 +08:00
|
|
|
using IsAtLeastGen9 = IsAtLeastGfxCore<IGFX_GEN9_CORE>;
|
|
|
|
|
2021-12-14 23:37:23 +08:00
|
|
|
using IsAtMostGen11 = IsAtMostGfxCore<IGFX_GEN11LP_CORE>;
|
2023-03-14 18:30:15 +08:00
|
|
|
using IsAtLeastGen11 = IsAtLeastGfxCore<IGFX_GEN11LP_CORE>;
|
2021-12-14 23:37:23 +08:00
|
|
|
|
|
|
|
using IsAtMostGen12lp = IsAtMostGfxCore<IGFX_GEN12LP_CORE>;
|
|
|
|
|
|
|
|
using IsAtLeastGen12lp = IsAtLeastGfxCore<IGFX_GEN12LP_CORE>;
|
|
|
|
|
|
|
|
using IsWithinXeGfxFamily = IsWithinGfxCore<IGFX_XE_HP_CORE, IGFX_XE_HPC_CORE>;
|
2023-03-14 21:18:34 +08:00
|
|
|
using IsNotWithinXeGfxFamily = IsNotAnyGfxCores<IGFX_XE_HP_CORE, IGFX_XE_HPG_CORE, IGFX_XE_HPC_CORE>;
|
2021-12-14 23:37:23 +08:00
|
|
|
|
|
|
|
using IsAtLeastXeHpCore = IsAtLeastGfxCore<IGFX_XE_HP_CORE>;
|
|
|
|
using IsAtMostXeHpCore = IsAtMostGfxCore<IGFX_XE_HP_CORE>;
|
2023-03-13 18:34:05 +08:00
|
|
|
using IsBeforeXeHpCore = IsBeforeGfxCore<IGFX_XE_HP_CORE>;
|
2021-12-14 23:37:23 +08:00
|
|
|
|
|
|
|
using IsAtLeastXeHpgCore = IsAtLeastGfxCore<IGFX_XE_HPG_CORE>;
|
|
|
|
using IsAtMostXeHpgCore = IsAtMostGfxCore<IGFX_XE_HPG_CORE>;
|
2024-02-17 00:26:30 +08:00
|
|
|
using IsBeforeXeHpgCore = IsBeforeGfxCore<IGFX_XE_HPG_CORE>;
|
2021-12-14 23:37:23 +08:00
|
|
|
|
|
|
|
using IsAtLeastXeHpcCore = IsAtLeastGfxCore<IGFX_XE_HPC_CORE>;
|
2022-04-14 01:20:59 +08:00
|
|
|
using IsAtMostXeHpcCore = IsAtMostGfxCore<IGFX_XE_HPC_CORE>;
|
2024-04-16 01:02:54 +08:00
|
|
|
using IsBeforeXeHpcCore = IsBeforeGfxCore<IGFX_XE_HPC_CORE>;
|
2021-12-14 23:37:23 +08:00
|
|
|
|
2024-07-09 17:29:17 +08:00
|
|
|
using IsAtLeastXe2HpgCore = IsAtLeastGfxCore<IGFX_XE2_HPG_CORE>;
|
|
|
|
|
2022-08-09 18:15:08 +08:00
|
|
|
using IsXeHpOrXeHpgCore = IsAnyGfxCores<IGFX_XE_HP_CORE, IGFX_XE_HPG_CORE>;
|
|
|
|
using IsXeHpOrXeHpcCore = IsAnyGfxCores<IGFX_XE_HP_CORE, IGFX_XE_HPC_CORE>;
|
|
|
|
using IsXeHpcOrXeHpgCore = IsAnyGfxCores<IGFX_XE_HPC_CORE, IGFX_XE_HPG_CORE>;
|
2023-08-23 01:53:27 +08:00
|
|
|
using IsXeHpOrXeHpcOrXeHpgCore = IsAnyGfxCores<IGFX_XE_HP_CORE, IGFX_XE_HPC_CORE, IGFX_XE_HPG_CORE>;
|
2022-01-17 23:00:06 +08:00
|
|
|
|
2022-08-09 18:15:08 +08:00
|
|
|
using IsNotXeHpOrXeHpgCore = IsNotAnyGfxCores<IGFX_XE_HP_CORE, IGFX_XE_HPG_CORE>;
|
|
|
|
using IsNotXeHpOrXeHpcCore = IsNotAnyGfxCores<IGFX_XE_HP_CORE, IGFX_XE_HPC_CORE>;
|
2022-11-09 21:01:21 +08:00
|
|
|
using IsNotXeHpgOrXeHpcCore = IsNotAnyGfxCores<IGFX_XE_HPG_CORE, IGFX_XE_HPC_CORE>;
|
2022-04-21 00:50:37 +08:00
|
|
|
|
2021-12-14 23:37:23 +08:00
|
|
|
using IsSKL = IsProduct<IGFX_SKYLAKE>;
|
|
|
|
using IsKBL = IsProduct<IGFX_KABYLAKE>;
|
|
|
|
using IsCFL = IsProduct<IGFX_COFFEELAKE>;
|
|
|
|
|
|
|
|
using IsBXT = IsProduct<IGFX_BROXTON>;
|
|
|
|
using IsGLK = IsProduct<IGFX_GEMINILAKE>;
|
|
|
|
|
|
|
|
using IsICLLP = IsProduct<IGFX_ICELAKE_LP>;
|
|
|
|
using IsEHL = IsProduct<IGFX_ELKHARTLAKE>;
|
|
|
|
using IsLKF = IsProduct<IGFX_LAKEFIELD>;
|
|
|
|
|
|
|
|
using IsTGLLP = IsProduct<IGFX_TIGERLAKE_LP>;
|
|
|
|
using IsDG1 = IsProduct<IGFX_DG1>;
|
|
|
|
using IsADLS = IsProduct<IGFX_ALDERLAKE_S>;
|
|
|
|
using IsADLP = IsProduct<IGFX_ALDERLAKE_P>;
|
|
|
|
using IsRKL = IsProduct<IGFX_ROCKETLAKE>;
|
|
|
|
|
2022-12-01 20:50:08 +08:00
|
|
|
using IsMTL = IsProduct<IGFX_METEORLAKE>;
|
2023-10-11 01:12:45 +08:00
|
|
|
using IsARL = IsProduct<IGFX_ARROWLAKE>;
|
2021-12-14 23:37:23 +08:00
|
|
|
using IsDG2 = IsProduct<IGFX_DG2>;
|
|
|
|
|
|
|
|
using IsPVC = IsProduct<IGFX_PVC>;
|
2021-12-16 01:45:30 +08:00
|
|
|
|
2024-07-09 17:29:17 +08:00
|
|
|
using IsBMG = IsProduct<IGFX_BMG>;
|
|
|
|
using IsLNL = IsProduct<IGFX_LUNARLAKE>;
|
|
|
|
|
2021-12-16 01:45:30 +08:00
|
|
|
using IsAtLeastSkl = IsAtLeastProduct<IGFX_SKYLAKE>;
|
2022-05-10 17:07:18 +08:00
|
|
|
|
2022-12-01 20:50:08 +08:00
|
|
|
using IsAtLeastMtl = IsAtLeastProduct<IGFX_METEORLAKE>;
|
2022-07-08 19:29:59 +08:00
|
|
|
using IsAtMostDg2 = IsAtMostProduct<IGFX_DG2>;
|
|
|
|
|
2024-05-22 21:31:31 +08:00
|
|
|
using IsAtMostPVC = IsAtMostProduct<IGFX_PVC>;
|
2022-05-10 17:07:18 +08:00
|
|
|
using IsNotPVC = IsNotWithinProducts<IGFX_PVC, IGFX_PVC>;
|
2023-04-24 22:08:59 +08:00
|
|
|
using IsNotPvcOrDg2 = IsNotWithinProducts<IGFX_DG2, IGFX_PVC>;
|
2022-08-22 22:53:48 +08:00
|
|
|
|
|
|
|
using HasStatefulSupport = IsNotAnyGfxCores<IGFX_XE_HPC_CORE>;
|
|
|
|
|
|
|
|
using HasNoStatefulSupport = IsAnyGfxCores<IGFX_XE_HPC_CORE>;
|
2023-08-31 22:46:02 +08:00
|
|
|
|
2023-09-07 21:31:57 +08:00
|
|
|
using HasOclocZebinFormatEnforced = IsAnyProducts<IGFX_ICELAKE_LP,
|
|
|
|
IGFX_TIGERLAKE_LP,
|
|
|
|
IGFX_ROCKETLAKE,
|
|
|
|
IGFX_ALDERLAKE_S,
|
|
|
|
IGFX_ALDERLAKE_P,
|
|
|
|
IGFX_ALDERLAKE_N>;
|
|
|
|
|
2023-08-31 22:46:02 +08:00
|
|
|
struct IsXeLpg {
|
|
|
|
template <PRODUCT_FAMILY productFamily>
|
|
|
|
static constexpr bool isMatched() {
|
|
|
|
return IsXeHpgCore::isMatched<productFamily>() && !IsDG2::isMatched<productFamily>();
|
|
|
|
}
|
|
|
|
};
|