2018-05-08 19:51:31 +08:00
|
|
|
/*
|
2020-02-05 00:58:41 +08:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2018-05-08 19:51:31 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-05-08 19:51:31 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2018-05-08 19:51:31 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
2018-08-21 19:58:37 +08:00
|
|
|
bool UnitTestHelper<GfxFamily>::isL3ConfigProgrammable() {
|
2018-05-08 19:51:31 +08:00
|
|
|
return true;
|
|
|
|
};
|
2018-08-22 01:55:20 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
bool UnitTestHelper<GfxFamily>::evaluateDshUsage(size_t sizeBeforeEnqueue, size_t sizeAfterEnqueue, Kernel *kernel) {
|
|
|
|
if (sizeBeforeEnqueue != sizeAfterEnqueue) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
2018-10-03 01:10:29 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
bool UnitTestHelper<GfxFamily>::isPageTableManagerSupported(const HardwareInfo &hwInfo) {
|
|
|
|
return false;
|
|
|
|
}
|
2018-10-18 19:40:53 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
2018-11-14 22:29:10 +08:00
|
|
|
bool UnitTestHelper<GfxFamily>::isTimestampPacketWriteSupported() {
|
2018-10-18 19:40:53 +08:00
|
|
|
return false;
|
|
|
|
}
|
2018-11-28 22:32:13 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
bool UnitTestHelper<GfxFamily>::isExpectMemoryNotEqualSupported() {
|
|
|
|
return false;
|
|
|
|
}
|
2019-01-04 00:52:08 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
uint32_t UnitTestHelper<GfxFamily>::getDefaultSshUsage() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-11-12 20:59:37 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
inline uint32_t UnitTestHelper<GfxFamily>::getAppropriateThreadArbitrationPolicy(uint32_t policy) {
|
|
|
|
return policy;
|
|
|
|
}
|
|
|
|
|
2019-01-04 00:52:08 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
bool UnitTestHelper<GfxFamily>::evaluateGshAddressForScratchSpace(uint64_t usedScratchGpuAddress, uint64_t retrievedGshAddress) {
|
|
|
|
return usedScratchGpuAddress == retrievedGshAddress;
|
|
|
|
}
|
2019-08-14 15:33:51 +08:00
|
|
|
|
2020-02-11 01:14:52 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
bool UnitTestHelper<GfxFamily>::isSynchronizationWArequired(const HardwareInfo &hwInfo) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-08-14 15:33:51 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
bool UnitTestHelper<GfxFamily>::isPipeControlWArequired(const HardwareInfo &hwInfo) {
|
|
|
|
return false;
|
|
|
|
}
|
2019-08-29 16:42:17 +08:00
|
|
|
|
2020-02-05 03:26:04 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
bool UnitTestHelper<GfxFamily>::isAdditionalMiSemaphoreWaitRequired(const HardwareInfo &hwInfo) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
bool UnitTestHelper<GfxFamily>::isAdditionalMiSemaphoreWait(const typename GfxFamily::MI_SEMAPHORE_WAIT &semaphoreWait) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-08-29 16:42:17 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
inline uint64_t UnitTestHelper<GfxFamily>::getMemoryAddress(const typename GfxFamily::MI_ATOMIC &atomic) {
|
|
|
|
return atomic.getMemoryAddress() | ((static_cast<uint64_t>(atomic.getMemoryAddressHigh())) << 32);
|
|
|
|
}
|
2019-09-06 16:25:14 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
const bool UnitTestHelper<GfxFamily>::tiledImagesSupported = true;
|
|
|
|
|
2019-10-01 14:35:02 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
const uint32_t UnitTestHelper<GfxFamily>::smallestTestableSimdSize = 8;
|
|
|
|
|
2019-11-22 16:50:10 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
const AuxTranslationMode UnitTestHelper<GfxFamily>::requiredAuxTranslationMode = AuxTranslationMode::Builtin;
|
|
|
|
|
2020-02-05 00:58:41 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
const bool UnitTestHelper<GfxFamily>::useFullRowForLocalIdsGeneration = false;
|
|
|
|
|
2020-03-12 17:49:20 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
const bool UnitTestHelper<GfxFamily>::additionalMiFlushDwRequired = false;
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|