71 lines
2.2 KiB
C++
71 lines
2.2 KiB
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "core/memory_manager/memory_constants.h"
|
|
#include "runtime/helpers/csr_deps.h"
|
|
#include "runtime/helpers/hw_info.h"
|
|
#include "runtime/helpers/properties_helper.h"
|
|
#include "runtime/kernel/grf_config.h"
|
|
|
|
#include <limits>
|
|
|
|
namespace NEO {
|
|
struct FlushStampTrackingObj;
|
|
|
|
namespace CSRequirements {
|
|
//cleanup section usually contains 1-2 pipeControls BB end and place for BB start
|
|
//that makes 16 * 2 + 4 + 8 = 40 bytes
|
|
//then command buffer is aligned to cacheline that can take up to 63 bytes
|
|
//to be sure everything fits minimal size is at 2 x cacheline.
|
|
|
|
constexpr auto minCommandQueueCommandStreamSize = 2 * MemoryConstants::cacheLineSize;
|
|
constexpr auto csOverfetchSize = MemoryConstants::pageSize;
|
|
} // namespace CSRequirements
|
|
|
|
namespace TimeoutControls {
|
|
constexpr int64_t maxTimeout = std::numeric_limits<int64_t>::max();
|
|
}
|
|
namespace L3CachingSettings {
|
|
constexpr uint32_t l3CacheOn = 0u;
|
|
constexpr uint32_t l3CacheOff = 1u;
|
|
constexpr uint32_t l3AndL1On = 2u;
|
|
} // namespace L3CachingSettings
|
|
|
|
struct DispatchFlags {
|
|
CsrDependencies csrDependencies;
|
|
FlushStampTrackingObj *flushStampReference = nullptr;
|
|
QueueThrottle throttle = QueueThrottle::MEDIUM;
|
|
PreemptionMode preemptionMode = PreemptionMode::Disabled;
|
|
uint32_t numGrfRequired = GrfConfig::DefaultGrfNumber;
|
|
uint32_t l3CacheSettings = L3CachingSettings::l3CacheOn;
|
|
bool blocking = false;
|
|
bool dcFlush = false;
|
|
bool useSLM = false;
|
|
bool guardCommandBufferWithPipeControl = false;
|
|
bool GSBA32BitRequired = false;
|
|
bool mediaSamplerRequired = false;
|
|
bool requiresCoherency = false;
|
|
bool lowPriority = false;
|
|
bool implicitFlush = false;
|
|
bool outOfOrderExecutionAllowed = false;
|
|
bool specialPipelineSelectMode = false;
|
|
bool multiEngineQueue = false;
|
|
bool epilogueRequired = false;
|
|
};
|
|
|
|
struct CsrSizeRequestFlags {
|
|
bool l3ConfigChanged = false;
|
|
bool coherencyRequestChanged = false;
|
|
bool preemptionRequestChanged = false;
|
|
bool mediaSamplerConfigChanged = false;
|
|
bool hasSharedHandles = false;
|
|
bool numGrfRequiredChanged = false;
|
|
bool specialPipelineSelectModeChanged = false;
|
|
};
|
|
} // namespace NEO
|