1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
/*
* Copyright (C) 2019-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "igad.h"
#include "neo_igfxfmid.h"
inline iga_gen_t translateToIgaGenBase(PRODUCT_FAMILY productFamily) {
switch (productFamily) {
default:
return IGA_GEN_INVALID;
case IGFX_TIGERLAKE_LP:
case IGFX_ROCKETLAKE:
case IGFX_ALDERLAKE_S:
case IGFX_ALDERLAKE_P:
case IGFX_ALDERLAKE_N:
case IGFX_DG1:
return IGA_XE;
case IGFX_DG2:
return IGA_XE_HPG;
case IGFX_PVC:
return IGA_XE_HPC;
case IGFX_METEORLAKE:
case IGFX_ARROWLAKE:
return IGA_XE_HPG;
case IGFX_BMG:
case IGFX_LUNARLAKE:
return IGA_XE2;
case IGFX_PTL:
return IGA_XE3;
}
}
inline iga_gen_t translateToIgaGenBase(GFXCORE_FAMILY coreFamily) {
switch (coreFamily) {
default:
return IGA_GEN_INVALID;
case IGFX_GEN12LP_CORE:
return IGA_XE;
case IGFX_XE_HP_CORE:
return IGA_XE_HP;
case IGFX_XE_HPG_CORE:
return IGA_XE_HPG;
case IGFX_XE_HPC_CORE:
return IGA_XE_HPC;
case IGFX_XE2_HPG_CORE:
return IGA_XE2;
case IGFX_XE3_CORE:
return IGA_XE3;
}
}
iga_gen_t translateToIgaGen(PRODUCT_FAMILY productFamily);
iga_gen_t translateToIgaGen(GFXCORE_FAMILY coreFamily);
|