mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Add xe_hpg test macros
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d3aecdc73a
commit
6ece3534e8
@@ -52,6 +52,13 @@ extern GFXCORE_FAMILY renderCoreFamily;
|
||||
#define XEHP_TYPED_TEST(method)
|
||||
#define XEHP_SUPPORTED_TEST(cmdSetBase) false
|
||||
#endif
|
||||
#ifdef TESTS_XE_HPG_CORE
|
||||
#define XEHPG_TYPED_TEST(method) method<typename NEO::GfxFamilyMapper<IGFX_XE_HPG_CORE>::GfxFamily>();
|
||||
#define XEHPG_SUPPORTED_TEST(cmdSetBase) NEO::GfxFamilyMapper<IGFX_XE_HPG_CORE>::GfxFamily::supportsCmdSet(cmdSetBase)
|
||||
#else
|
||||
#define XEHPG_TYPED_TEST(method)
|
||||
#define XEHPG_SUPPORTED_TEST(cmdSetBase) false
|
||||
#endif
|
||||
|
||||
#define FAMILY_SELECTOR(family, methodName) \
|
||||
switch (family) { \
|
||||
@@ -70,6 +77,9 @@ extern GFXCORE_FAMILY renderCoreFamily;
|
||||
case IGFX_XE_HP_CORE: \
|
||||
XEHP_TYPED_TEST(methodName) \
|
||||
break; \
|
||||
case IGFX_XE_HPG_CORE: \
|
||||
XEHPG_TYPED_TEST(methodName) \
|
||||
break; \
|
||||
default: \
|
||||
ASSERT_TRUE((false && "Unknown hardware family")); \
|
||||
break; \
|
||||
@@ -359,6 +369,9 @@ extern GFXCORE_FAMILY renderCoreFamily;
|
||||
case IGFX_XE_HP_CORE: \
|
||||
supported = XEHP_SUPPORTED_TEST(cmdSetBase); \
|
||||
break; \
|
||||
case IGFX_XE_HPG_CORE: \
|
||||
supported = XEHPG_SUPPORTED_TEST(cmdSetBase); \
|
||||
break; \
|
||||
default: \
|
||||
ASSERT_TRUE((false && "Unknown hardware family")); \
|
||||
break; \
|
||||
@@ -796,6 +809,10 @@ extern GFXCORE_FAMILY renderCoreFamily;
|
||||
#define XE_HP_CORE_TEST_F(test_fixture, test_name) GENTEST_F(IGFX_XE_HP_CORE, test_fixture, test_name)
|
||||
#define XE_HP_CORE_TEST_P(test_fixture, test_name) GENTEST_P(IGFX_XE_HP_CORE, test_fixture, test_name)
|
||||
#endif
|
||||
#ifdef TESTS_XE_HPG_CORE
|
||||
#define XE_HPG_CORETEST_F(test_fixture, test_name) GENTEST_F(IGFX_XE_HPG_CORE, test_fixture, test_name)
|
||||
#define XE_HPG_CORETEST_P(test_fixture, test_name) GENTEST_P(IGFX_XE_HPG_CORE, test_fixture, test_name)
|
||||
#endif
|
||||
#ifdef TESTS_GEN8
|
||||
#define BDWTEST_F(test_fixture, test_name) \
|
||||
FAMILYTEST_TEST_(test_fixture, test_name, test_fixture, \
|
||||
@@ -946,6 +963,16 @@ extern GFXCORE_FAMILY renderCoreFamily;
|
||||
IGFX_XE_HP_CORE, \
|
||||
IGFX_XE_HP_SDV)
|
||||
#endif
|
||||
#ifdef TESTS_DG2
|
||||
#define DG2TEST_F(test_fixture, test_name) \
|
||||
FAMILYTEST_TEST_(test_fixture, test_name, test_fixture, \
|
||||
::testing::internal::GetTypeId<test_fixture>(), \
|
||||
IGFX_XE_HPG_CORE, IGFX_DG2)
|
||||
#define DG2TEST_P(test_suite_name, test_name) \
|
||||
FAMILYTEST_TEST_P(test_suite_name, test_name, \
|
||||
IGFX_XE_HPG_CORE, \
|
||||
IGFX_DG2)
|
||||
#endif
|
||||
#define HWTEST_TYPED_TEST(CaseName, TestName) \
|
||||
CHECK_TEST_NAME_LENGTH(CaseName, TestName) \
|
||||
template <typename gtest_TypeParam_> \
|
||||
@@ -1106,6 +1133,7 @@ using IsGen11HP = IsGfxCore<IGFX_GEN11_CORE>;
|
||||
using IsGen11LP = IsGfxCore<IGFX_GEN11LP_CORE>;
|
||||
using IsGen12LP = IsGfxCore<IGFX_GEN12LP_CORE>;
|
||||
using IsXeHpCore = IsGfxCore<IGFX_XE_HP_CORE>;
|
||||
using IsXeHpgCore = IsGfxCore<IGFX_XE_HPG_CORE>;
|
||||
|
||||
using IsAtMostGen11 = IsAtMostGfxCore<IGFX_GEN11LP_CORE>;
|
||||
|
||||
@@ -1116,6 +1144,9 @@ using IsAtLeastGen12lp = IsAtLeastGfxCore<IGFX_GEN12LP_CORE>;
|
||||
using IsAtLeastXeHpCore = IsAtLeastGfxCore<IGFX_XE_HP_CORE>;
|
||||
using IsAtMostXeHpCore = IsAtMostGfxCore<IGFX_XE_HP_CORE>;
|
||||
|
||||
using IsAtLeastXeHpgCore = IsAtLeastGfxCore<IGFX_XE_HPG_CORE>;
|
||||
using IsAtMostXeHpgCore = IsAtMostGfxCore<IGFX_XE_HPG_CORE>;
|
||||
|
||||
using IsWithinXeGfxFamily = IsWithinGfxCore<IGFX_XE_HP_CORE, IGFX_XE_HP_CORE>;
|
||||
|
||||
using IsADLS = IsProduct<IGFX_ALDERLAKE_S>;
|
||||
@@ -1132,3 +1163,4 @@ using IsTGLLP = IsProduct<IGFX_TIGERLAKE_LP>;
|
||||
using IsRKL = IsProduct<IGFX_ROCKETLAKE>;
|
||||
using IsXEHP = IsProduct<IGFX_XE_HP_SDV>;
|
||||
using IsADLP = IsProduct<IGFX_ALDERLAKE_P>;
|
||||
using IsDG2 = IsProduct<IGFX_DG2>;
|
||||
|
||||
Reference in New Issue
Block a user