test: unify product specific L0 cmdlist tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
parent
a0ed1ab846
commit
fce659d8c8
|
@ -731,7 +731,12 @@ HWTEST_F(PauseOnGpuWithImmediateCommandListTests, givenPauseModeSetToBeforeAndAf
|
|||
|
||||
using CmdListPipelineSelectStateTest = Test<CmdListPipelineSelectStateFixture>;
|
||||
|
||||
using SystolicSupport = IsAnyProducts<IGFX_ALDERLAKE_P, IGFX_DG2, IGFX_PVC>;
|
||||
struct SystolicSupport {
|
||||
template <PRODUCT_FAMILY productFamily>
|
||||
static constexpr bool isMatched() {
|
||||
return IsAnyProducts<IGFX_ALDERLAKE_P, IGFX_PVC>::isMatched<productFamily>() || IsXeHpgCore::isMatched<productFamily>();
|
||||
}
|
||||
};
|
||||
|
||||
HWTEST2_F(CmdListPipelineSelectStateTest,
|
||||
givenAppendSystolicKernelToCommandListWhenExecutingCommandListThenPipelineSelectStateIsTrackedCorrectly, SystolicSupport) {
|
||||
|
@ -763,7 +768,13 @@ HWTEST2_F(CmdListThreadArbitrationTest,
|
|||
|
||||
using CmdListLargeGrfTest = Test<CmdListLargeGrfFixture>;
|
||||
|
||||
using LargeGrfSupport = IsAnyProducts<IGFX_DG2, IGFX_PVC>;
|
||||
struct LargeGrfSupport {
|
||||
template <PRODUCT_FAMILY productFamily>
|
||||
static constexpr bool isMatched() {
|
||||
return IsXeHpgCore::isMatched<productFamily>() || IsPVC::isMatched<productFamily>();
|
||||
}
|
||||
};
|
||||
|
||||
HWTEST2_F(CmdListLargeGrfTest,
|
||||
givenAppendLargeGrfKernelToCommandListWhenExecutingCommandListThenStateComputeModeStateIsTrackedCorrectly, LargeGrfSupport) {
|
||||
testBody<FamilyType>();
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2022-2023 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
if(TESTS_MTL)
|
||||
target_sources(${TARGET_NAME} PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_cmdlist_mtl.cpp
|
||||
)
|
||||
endif()
|
|
@ -1,40 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/test/common/test_macros/hw_test.h"
|
||||
|
||||
#include "level_zero/core/test/unit_tests/fixtures/cmdlist_fixture.inl"
|
||||
|
||||
namespace L0 {
|
||||
namespace ult {
|
||||
|
||||
using CmdListPipelineSelectStateTestMtl = Test<CmdListPipelineSelectStateFixture>;
|
||||
|
||||
HWTEST2_F(CmdListPipelineSelectStateTestMtl,
|
||||
givenAppendSystolicKernelToCommandListWhenExecutingCommandListThenPipelineSelectStateIsTrackedCorrectly, IsMTL) {
|
||||
testBody<FamilyType>();
|
||||
}
|
||||
|
||||
HWTEST2_F(CmdListPipelineSelectStateTestMtl,
|
||||
givenCmdQueueAndImmediateCmdListUseSameCsrWhenAppendingSystolicKernelOnBothRegularFirstThenPipelineSelectStateIsNotChanged, IsMTL) {
|
||||
testBodyShareStateRegularImmediate<FamilyType>();
|
||||
}
|
||||
|
||||
HWTEST2_F(CmdListPipelineSelectStateTestMtl,
|
||||
givenCmdQueueAndImmediateCmdListUseSameCsrWhenAppendingSystolicKernelOnBothImmediateFirstThenPipelineSelectStateIsNotChanged, IsMTL) {
|
||||
testBodyShareStateImmediateRegular<FamilyType>();
|
||||
}
|
||||
|
||||
using CmdListLargeGrfTestMtl = Test<CmdListLargeGrfFixture>;
|
||||
|
||||
HWTEST2_F(CmdListLargeGrfTestMtl,
|
||||
givenAppendLargeGrfKernelToCommandListWhenExecutingCommandListThenStateComputeModeStateIsTrackedCorrectly, IsMTL) {
|
||||
testBody<FamilyType>();
|
||||
}
|
||||
|
||||
} // namespace ult
|
||||
} // namespace L0
|
Loading…
Reference in New Issue