mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Separate unit test helper definitions bdw_and_later / xe_hp_and_later Related-To: NEO-6466 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
39 lines
841 B
C++
39 lines
841 B
C++
/*
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/gen11/hw_info.h"
|
|
#include "shared/test/common/helpers/unit_test_helper.h"
|
|
#include "shared/test/common/helpers/unit_test_helper.inl"
|
|
#include "shared/test/common/helpers/unit_test_helper_bdw_and_later.inl"
|
|
|
|
namespace NEO {
|
|
|
|
using Family = ICLFamily;
|
|
|
|
template <>
|
|
uint32_t UnitTestHelper<Family>::getDebugModeRegisterOffset() {
|
|
return 0x20d8;
|
|
}
|
|
|
|
template <>
|
|
uint32_t UnitTestHelper<Family>::getDebugModeRegisterValue() {
|
|
return (1u << 5) | (1u << 21);
|
|
}
|
|
|
|
template <>
|
|
uint32_t UnitTestHelper<Family>::getTdCtlRegisterOffset() {
|
|
return 0xe400;
|
|
}
|
|
|
|
template <>
|
|
uint32_t UnitTestHelper<Family>::getTdCtlRegisterValue() {
|
|
return (1u << 7) | (1u << 4);
|
|
}
|
|
|
|
template struct UnitTestHelper<ICLFamily>;
|
|
} // namespace NEO
|