mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 17:00:59 +08:00
- change additional size into local region size - change walk order into dispatch walk order to distinguish for local id walk Related-To: NEO-13350 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
54 lines
1.3 KiB
C++
54 lines
1.3 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,
|
|
additional
|
|
};
|
|
|
|
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, 3> dispatchWalkOrder = {{NEO::RequiredDispatchWalkOrder::x, NEO::RequiredDispatchWalkOrder::y, NEO::RequiredDispatchWalkOrder::additional}};
|
|
} // namespace EncodeParamsApiMappings
|
|
|
|
} // namespace NEO
|