53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
/*
|
|
* 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
|