109 lines
3.3 KiB
C++
109 lines
3.3 KiB
C++
/*
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
namespace NEO {
|
|
|
|
template <typename GfxFamily>
|
|
bool UnitTestHelper<GfxFamily>::isL3ConfigProgrammable() {
|
|
return true;
|
|
};
|
|
|
|
template <typename GfxFamily>
|
|
bool UnitTestHelper<GfxFamily>::evaluateDshUsage(size_t sizeBeforeEnqueue, size_t sizeAfterEnqueue, const KernelDescriptor *kernelDescriptor, uint32_t rootDeviceIndex) {
|
|
if (sizeBeforeEnqueue != sizeAfterEnqueue) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
bool UnitTestHelper<GfxFamily>::isPageTableManagerSupported(const HardwareInfo &hwInfo) {
|
|
return false;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
bool UnitTestHelper<GfxFamily>::isTimestampPacketWriteSupported() {
|
|
return false;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
bool UnitTestHelper<GfxFamily>::isExpectMemoryNotEqualSupported() {
|
|
return false;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
uint32_t UnitTestHelper<GfxFamily>::getDefaultSshUsage() {
|
|
return sizeof(typename GfxFamily::RENDER_SURFACE_STATE);
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
inline uint32_t UnitTestHelper<GfxFamily>::getAppropriateThreadArbitrationPolicy(uint32_t policy) {
|
|
return policy;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
bool UnitTestHelper<GfxFamily>::evaluateGshAddressForScratchSpace(uint64_t usedScratchGpuAddress, uint64_t retrievedGshAddress) {
|
|
return usedScratchGpuAddress == retrievedGshAddress;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
bool UnitTestHelper<GfxFamily>::isPipeControlWArequired(const HardwareInfo &hwInfo) {
|
|
return false;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
bool UnitTestHelper<GfxFamily>::isAdditionalSynchronizationRequired() {
|
|
return false;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
inline uint64_t UnitTestHelper<GfxFamily>::getAtomicMemoryAddress(const typename GfxFamily::MI_ATOMIC &atomic) {
|
|
return atomic.getMemoryAddress() | ((static_cast<uint64_t>(atomic.getMemoryAddressHigh())) << 32);
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
inline bool UnitTestHelper<GfxFamily>::requiresTimestampPacketsInSystemMemory() {
|
|
return true;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
void UnitTestHelper<GfxFamily>::setExtraMidThreadPreemptionFlag(HardwareInfo &hwInfo, bool value) {
|
|
hwInfo.featureTable.ftrGpGpuMidThreadLevelPreempt = value;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
auto UnitTestHelper<GfxFamily>::getCoherencyTypeSupported(COHERENCY_TYPE coherencyType) -> decltype(coherencyType) {
|
|
return coherencyType;
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
const bool UnitTestHelper<GfxFamily>::tiledImagesSupported = true;
|
|
|
|
template <typename GfxFamily>
|
|
const uint32_t UnitTestHelper<GfxFamily>::smallestTestableSimdSize = 8;
|
|
|
|
template <typename GfxFamily>
|
|
const AuxTranslationMode UnitTestHelper<GfxFamily>::requiredAuxTranslationMode = AuxTranslationMode::Builtin;
|
|
|
|
template <typename GfxFamily>
|
|
const bool UnitTestHelper<GfxFamily>::useFullRowForLocalIdsGeneration = false;
|
|
|
|
template <typename GfxFamily>
|
|
const bool UnitTestHelper<GfxFamily>::additionalMiFlushDwRequired = false;
|
|
|
|
} // namespace NEO
|