2018-05-08 13:51:31 +02:00
|
|
|
/*
|
2020-01-27 13:06:03 +01:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2018-05-08 13:51:31 +02:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-05-08 13:51:31 +02:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2020-01-27 13:06:03 +01:00
|
|
|
#include "core/helpers/aux_translation.h"
|
2019-11-29 15:41:47 +01:00
|
|
|
#include "core/helpers/hw_cmds.h"
|
2020-02-22 09:28:27 +01:00
|
|
|
|
|
|
|
|
#include "helpers/properties_helper.h"
|
2019-08-29 10:42:17 +02:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-05-08 13:51:31 +02:00
|
|
|
|
2018-08-21 19:55:20 +02:00
|
|
|
class Kernel;
|
2018-10-02 10:10:29 -07:00
|
|
|
struct HardwareInfo;
|
2018-08-21 19:55:20 +02:00
|
|
|
|
2018-05-08 13:51:31 +02:00
|
|
|
template <typename GfxFamily>
|
2018-08-21 13:58:37 +02:00
|
|
|
struct UnitTestHelper {
|
2018-05-08 13:51:31 +02:00
|
|
|
static bool isL3ConfigProgrammable();
|
2018-08-21 19:55:20 +02:00
|
|
|
|
|
|
|
|
static bool evaluateDshUsage(size_t sizeBeforeEnqueue, size_t sizeAfterEnqueue, Kernel *kernel);
|
2018-10-02 10:10:29 -07:00
|
|
|
|
|
|
|
|
static bool isPageTableManagerSupported(const HardwareInfo &hwInfo);
|
2018-10-18 13:40:53 +02:00
|
|
|
|
2018-11-14 15:29:10 +01:00
|
|
|
static bool isTimestampPacketWriteSupported();
|
2018-11-28 15:32:13 +01:00
|
|
|
|
|
|
|
|
static bool isExpectMemoryNotEqualSupported();
|
2019-01-03 17:52:08 +01:00
|
|
|
|
|
|
|
|
static uint32_t getDefaultSshUsage();
|
|
|
|
|
|
2019-11-12 13:59:37 +01:00
|
|
|
static uint32_t getAppropriateThreadArbitrationPolicy(uint32_t policy);
|
|
|
|
|
|
2019-01-03 17:52:08 +01:00
|
|
|
static bool evaluateGshAddressForScratchSpace(uint64_t usedScratchGpuAddress, uint64_t retrievedGshAddress);
|
2019-08-14 09:33:51 +02:00
|
|
|
|
2020-02-10 18:14:52 +01:00
|
|
|
static bool isSynchronizationWArequired(const HardwareInfo &hwInfo);
|
|
|
|
|
|
2019-08-14 09:33:51 +02:00
|
|
|
static bool isPipeControlWArequired(const HardwareInfo &hwInfo);
|
2019-08-29 10:42:17 +02:00
|
|
|
|
2020-02-04 20:26:04 +01:00
|
|
|
static bool isAdditionalMiSemaphoreWaitRequired(const HardwareInfo &hwInfo);
|
|
|
|
|
|
|
|
|
|
static bool isAdditionalMiSemaphoreWait(const typename GfxFamily::MI_SEMAPHORE_WAIT &semaphoreWait);
|
|
|
|
|
|
2019-08-29 10:42:17 +02:00
|
|
|
static uint64_t getMemoryAddress(const typename GfxFamily::MI_ATOMIC &atomic);
|
2019-09-06 10:25:14 +02:00
|
|
|
|
|
|
|
|
static const bool tiledImagesSupported;
|
2019-10-01 08:35:02 +02:00
|
|
|
|
|
|
|
|
static const uint32_t smallestTestableSimdSize;
|
2019-11-22 09:50:10 +01:00
|
|
|
|
|
|
|
|
static const AuxTranslationMode requiredAuxTranslationMode;
|
2020-02-04 17:58:41 +01:00
|
|
|
|
|
|
|
|
static const bool useFullRowForLocalIdsGeneration;
|
2018-05-08 13:51:31 +02:00
|
|
|
};
|
2020-02-04 20:26:04 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|