1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
/*
* Copyright (C) 2021-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <array>
#include <cstdint>
#include <limits>
namespace NEO {
struct RootDeviceEnvironment;
struct EncodeDummyBlitWaArgs {
bool isWaRequired = false;
RootDeviceEnvironment *rootDeviceEnvironment = nullptr;
};
struct MiFlushArgs {
bool timeStampOperation = false;
bool commandWithPostSync = false;
bool notifyEnable = false;
bool tlbFlush = false;
EncodeDummyBlitWaArgs &waArgs;
MiFlushArgs(EncodeDummyBlitWaArgs &args) : waArgs(args) {}
};
enum class RequiredPartitionDim : uint32_t {
none = 0,
x,
y,
z
};
enum class RequiredDispatchWalkOrder : uint32_t {
none = 0,
x,
y,
};
static constexpr uint32_t localRegionSizeParamNotSet = 0;
namespace EncodeParamsApiMappings {
static constexpr std::array<NEO::RequiredPartitionDim, 3> partitionDim = {{RequiredPartitionDim::x, NEO::RequiredPartitionDim::y, NEO::RequiredPartitionDim::z}};
static constexpr std::array<NEO::RequiredDispatchWalkOrder, 2> dispatchWalkOrder = {{NEO::RequiredDispatchWalkOrder::x, NEO::RequiredDispatchWalkOrder::y}};
} // namespace EncodeParamsApiMappings
} // namespace NEO
|