2021-12-14 15:37:23 +00:00
|
|
|
/*
|
2025-01-03 12:50:18 +00:00
|
|
|
* Copyright (C) 2021-2025 Intel Corporation
|
2021-12-14 15:37:23 +00:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
using IsGen12LP = IsGfxCore<IGFX_GEN12LP_CORE>;
|
2025-03-18 00:28:35 +00:00
|
|
|
using IsAtLeastGen12LP = IsAtLeastGfxCore<IGFX_GEN12LP_CORE>;
|
2021-12-14 15:37:23 +00:00
|
|
|
using IsXeHpgCore = IsGfxCore<IGFX_XE_HPG_CORE>;
|
|
|
|
|
using IsXeHpcCore = IsGfxCore<IGFX_XE_HPC_CORE>;
|
2022-01-11 19:41:57 +00:00
|
|
|
using IsNotXeHpcCore = IsNotGfxCore<IGFX_XE_HPC_CORE>;
|
2022-05-13 12:04:24 +00:00
|
|
|
using IsNotXeHpgCore = IsNotGfxCore<IGFX_XE_HPG_CORE>;
|
2024-07-09 09:29:17 +00:00
|
|
|
using IsXe2HpgCore = IsGfxCore<IGFX_XE2_HPG_CORE>;
|
|
|
|
|
using IsNotXe2HpgCore = IsNotGfxCore<IGFX_XE2_HPG_CORE>;
|
2021-12-14 15:37:23 +00:00
|
|
|
|
|
|
|
|
using IsWithinXeGfxFamily = IsWithinGfxCore<IGFX_XE_HP_CORE, IGFX_XE_HPC_CORE>;
|
2023-03-14 13:18:34 +00:00
|
|
|
using IsNotWithinXeGfxFamily = IsNotAnyGfxCores<IGFX_XE_HP_CORE, IGFX_XE_HPG_CORE, IGFX_XE_HPC_CORE>;
|
2021-12-14 15:37:23 +00:00
|
|
|
|
|
|
|
|
using IsAtLeastXeHpCore = IsAtLeastGfxCore<IGFX_XE_HP_CORE>;
|
|
|
|
|
using IsAtMostXeHpCore = IsAtMostGfxCore<IGFX_XE_HP_CORE>;
|
2023-03-13 10:34:05 +00:00
|
|
|
using IsBeforeXeHpCore = IsBeforeGfxCore<IGFX_XE_HP_CORE>;
|
2021-12-14 15:37:23 +00:00
|
|
|
|
|
|
|
|
using IsAtLeastXeHpgCore = IsAtLeastGfxCore<IGFX_XE_HPG_CORE>;
|
|
|
|
|
using IsAtMostXeHpgCore = IsAtMostGfxCore<IGFX_XE_HPG_CORE>;
|
2024-02-16 16:26:30 +00:00
|
|
|
using IsBeforeXeHpgCore = IsBeforeGfxCore<IGFX_XE_HPG_CORE>;
|
2021-12-14 15:37:23 +00:00
|
|
|
|
|
|
|
|
using IsAtLeastXeHpcCore = IsAtLeastGfxCore<IGFX_XE_HPC_CORE>;
|
2022-04-13 17:20:59 +00:00
|
|
|
using IsAtMostXeHpcCore = IsAtMostGfxCore<IGFX_XE_HPC_CORE>;
|
2024-04-15 17:02:54 +00:00
|
|
|
using IsBeforeXeHpcCore = IsBeforeGfxCore<IGFX_XE_HPC_CORE>;
|
2021-12-14 15:37:23 +00:00
|
|
|
|
2024-07-09 09:29:17 +00:00
|
|
|
using IsAtLeastXe2HpgCore = IsAtLeastGfxCore<IGFX_XE2_HPG_CORE>;
|
2024-10-07 13:44:54 +00:00
|
|
|
using IsAtMostXe2HpgCore = IsAtMostGfxCore<IGFX_XE2_HPG_CORE>;
|
2025-04-03 13:20:54 +00:00
|
|
|
using IsBeforeXe2HpgCore = IsBeforeGfxCore<IGFX_XE2_HPG_CORE>;
|
2024-12-18 14:42:14 +00:00
|
|
|
using IsWithinXeHpCoreAndXe2HpgCore = IsWithinGfxCore<IGFX_XE_HP_CORE, IGFX_XE2_HPG_CORE>;
|
2025-01-21 21:06:09 +00:00
|
|
|
using IsXeHpcCoreOrXe2HpgCore = IsAnyGfxCores<IGFX_XE_HPC_CORE, IGFX_XE2_HPG_CORE>;
|
2025-01-10 10:59:46 +00:00
|
|
|
using IsWithinXeHpCoreAndXe3Core = IsWithinGfxCore<IGFX_XE_HP_CORE, IGFX_XE3_CORE>;
|
2024-07-09 09:29:17 +00:00
|
|
|
|
2022-08-09 10:15:08 +00: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-22 17:53:27 +00:00
|
|
|
using IsXeHpOrXeHpcOrXeHpgCore = IsAnyGfxCores<IGFX_XE_HP_CORE, IGFX_XE_HPC_CORE, IGFX_XE_HPG_CORE>;
|
2022-01-17 15:00:06 +00:00
|
|
|
|
2022-08-09 10:15:08 +00: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 13:01:21 +00:00
|
|
|
using IsNotXeHpgOrXeHpcCore = IsNotAnyGfxCores<IGFX_XE_HPG_CORE, IGFX_XE_HPC_CORE>;
|
2022-04-20 16:50:37 +00:00
|
|
|
|
2025-01-03 12:50:18 +00:00
|
|
|
using IsXe2HpgCoreOrXe3Core = IsAnyGfxCores<IGFX_XE2_HPG_CORE, IGFX_XE3_CORE>;
|
|
|
|
|
|
|
|
|
|
using IsXe3Core = IsGfxCore<IGFX_XE3_CORE>;
|
|
|
|
|
using IsAtLeastXe3Core = IsAtLeastGfxCore<IGFX_XE3_CORE>;
|
2025-02-06 13:02:04 +00:00
|
|
|
using IsAtMostXe3Core = IsAtMostGfxCore<IGFX_XE3_CORE>;
|
2025-01-03 12:50:18 +00:00
|
|
|
|
2021-12-14 15:37:23 +00:00
|
|
|
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 12:50:08 +00:00
|
|
|
using IsMTL = IsProduct<IGFX_METEORLAKE>;
|
2023-10-10 17:12:45 +00:00
|
|
|
using IsARL = IsProduct<IGFX_ARROWLAKE>;
|
2021-12-14 15:37:23 +00:00
|
|
|
using IsDG2 = IsProduct<IGFX_DG2>;
|
|
|
|
|
|
|
|
|
|
using IsPVC = IsProduct<IGFX_PVC>;
|
2021-12-15 17:45:30 +00:00
|
|
|
|
2024-07-09 09:29:17 +00:00
|
|
|
using IsBMG = IsProduct<IGFX_BMG>;
|
2024-08-22 12:09:17 +00:00
|
|
|
using IsNotBMG = IsNotWithinProducts<IGFX_BMG, IGFX_BMG>;
|
|
|
|
|
|
2024-07-09 09:29:17 +00:00
|
|
|
using IsLNL = IsProduct<IGFX_LUNARLAKE>;
|
|
|
|
|
|
2025-01-03 12:50:18 +00:00
|
|
|
using IsPTL = IsProduct<IGFX_PTL>;
|
|
|
|
|
|
2022-12-01 12:50:08 +00:00
|
|
|
using IsAtLeastMtl = IsAtLeastProduct<IGFX_METEORLAKE>;
|
2022-07-08 11:29:59 +00:00
|
|
|
using IsAtMostDg2 = IsAtMostProduct<IGFX_DG2>;
|
|
|
|
|
|
2024-11-21 14:45:37 +00:00
|
|
|
using IsNotDG1 = IsNotWithinProducts<IGFX_DG1, IGFX_DG1>;
|
2024-08-02 23:29:15 +00:00
|
|
|
using IsAtLeastPVC = IsAtLeastProduct<IGFX_PVC>;
|
2024-05-22 13:31:31 +00:00
|
|
|
using IsAtMostPVC = IsAtMostProduct<IGFX_PVC>;
|
2022-05-10 09:07:18 +00:00
|
|
|
using IsNotPVC = IsNotWithinProducts<IGFX_PVC, IGFX_PVC>;
|
2025-01-28 20:58:22 +00:00
|
|
|
using IsNotDG2 = IsNotWithinProducts<IGFX_DG2, IGFX_DG2>;
|
2025-04-01 23:47:02 +00:00
|
|
|
using IsNotMTL = IsNotWithinProducts<IGFX_METEORLAKE, IGFX_METEORLAKE>;
|
2023-04-24 14:08:59 +00:00
|
|
|
using IsNotPvcOrDg2 = IsNotWithinProducts<IGFX_DG2, IGFX_PVC>;
|
2022-08-22 14:53:48 +00:00
|
|
|
|
2024-07-24 11:27:35 +00:00
|
|
|
using IsAtMostArl = IsAtMostProduct<IGFX_ARROWLAKE>;
|
2024-07-18 11:32:45 +00:00
|
|
|
using IsAtLeastBmg = IsAtLeastProduct<IGFX_BMG>;
|
|
|
|
|
|
2022-08-22 14:53:48 +00:00
|
|
|
using HasStatefulSupport = IsNotAnyGfxCores<IGFX_XE_HPC_CORE>;
|
|
|
|
|
|
|
|
|
|
using HasNoStatefulSupport = IsAnyGfxCores<IGFX_XE_HPC_CORE>;
|
2023-08-31 14:46:02 +00:00
|
|
|
|
2024-09-17 08:33:56 +00:00
|
|
|
using HasOclocZebinFormatEnforced = IsAnyProducts<IGFX_TIGERLAKE_LP,
|
2023-09-07 13:31:57 +00:00
|
|
|
IGFX_ROCKETLAKE,
|
|
|
|
|
IGFX_ALDERLAKE_S,
|
|
|
|
|
IGFX_ALDERLAKE_P,
|
|
|
|
|
IGFX_ALDERLAKE_N>;
|
|
|
|
|
|
2025-04-15 13:51:31 +00:00
|
|
|
struct HasDispatchAllSupport {
|
|
|
|
|
template <PRODUCT_FAMILY productFamily>
|
|
|
|
|
static constexpr bool isMatched() {
|
|
|
|
|
return IsPVC::isMatched<productFamily>() || IsAtLeastBmg::isMatched<productFamily>();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct DoesNotHaveDispatchAllSupport {
|
|
|
|
|
template <PRODUCT_FAMILY productFamily>
|
|
|
|
|
static constexpr bool isMatched() {
|
|
|
|
|
return !IsPVC::isMatched<productFamily>() && IsAtMostArl::isMatched<productFamily>();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-08-31 14:46:02 +00:00
|
|
|
struct IsXeLpg {
|
|
|
|
|
template <PRODUCT_FAMILY productFamily>
|
|
|
|
|
static constexpr bool isMatched() {
|
|
|
|
|
return IsXeHpgCore::isMatched<productFamily>() && !IsDG2::isMatched<productFamily>();
|
|
|
|
|
}
|
|
|
|
|
};
|
2024-09-23 15:12:25 +00:00
|
|
|
|
|
|
|
|
struct IsStatefulBufferPreferredForProduct {
|
|
|
|
|
template <PRODUCT_FAMILY productFamily>
|
|
|
|
|
static constexpr bool isMatched() {
|
|
|
|
|
return IsGen12LP::isMatched<productFamily>() ||
|
|
|
|
|
IsXeHpgCore::isMatched<productFamily>();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct IsStatelessBufferPreferredForProduct {
|
|
|
|
|
template <PRODUCT_FAMILY productFamily>
|
|
|
|
|
static constexpr bool isMatched() {
|
|
|
|
|
return !IsStatefulBufferPreferredForProduct::isMatched<productFamily>();
|
|
|
|
|
}
|
|
|
|
|
};
|