Correct xe_hpc tests

Related-To: NEO-6631


Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2022-03-04 09:42:37 +00:00
committed by Compute-Runtime-Automation
parent 43ed1acc63
commit 038d1d54fa
32 changed files with 187 additions and 63 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -30,7 +30,7 @@
XEHPG_TYPED_TEST(methodName) \
break; \
case IGFX_XE_HPC_CORE: \
PVC_TYPED_TEST(methodName) \
XEHPC_TYPED_TEST(methodName) \
break; \
default: \
ASSERT_TRUE((false && "Unknown hardware family")); \
@@ -60,7 +60,7 @@
supported = XEHPG_SUPPORTED_TEST(cmdSetBase); \
break; \
case IGFX_XE_HPC_CORE: \
supported = PVC_SUPPORTED_TEST(cmdSetBase); \
supported = XEHPC_SUPPORTED_TEST(cmdSetBase); \
break; \
default: \
ASSERT_TRUE((false && "Unknown hardware family")); \

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -50,9 +50,9 @@
#define XEHPG_SUPPORTED_TEST(cmdSetBase) false
#endif
#ifdef TESTS_XE_HPC_CORE
#define PVC_TYPED_TEST(method) method<typename NEO::GfxFamilyMapper<IGFX_XE_HPC_CORE>::GfxFamily>();
#define PVC_SUPPORTED_TEST(cmdSetBase) NEO::GfxFamilyMapper<IGFX_XE_HPC_CORE>::GfxFamily::supportsCmdSet(cmdSetBase)
#define XEHPC_TYPED_TEST(method) method<typename NEO::GfxFamilyMapper<IGFX_XE_HPC_CORE>::GfxFamily>();
#define XEHPC_SUPPORTED_TEST(cmdSetBase) NEO::GfxFamilyMapper<IGFX_XE_HPC_CORE>::GfxFamily::supportsCmdSet(cmdSetBase)
#else
#define PVC_TYPED_TEST(method)
#define PVC_SUPPORTED_TEST(cmdSetBase) false
#define XEHPC_TYPED_TEST(method)
#define XEHPC_SUPPORTED_TEST(cmdSetBase) false
#endif