2021-05-18 10:46:21 +08:00
|
|
|
/*
|
2022-02-11 07:33:40 +08:00
|
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
2021-05-18 10:46:21 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "shared/source/command_stream/stream_property.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
struct StateComputeModeProperties {
|
|
|
|
StreamProperty isCoherencyRequired{};
|
2021-07-07 21:34:46 +08:00
|
|
|
StreamProperty largeGrfMode{};
|
2021-11-19 21:38:23 +08:00
|
|
|
StreamProperty zPassAsyncComputeThreadLimit{};
|
|
|
|
StreamProperty pixelAsyncComputeThreadLimit{};
|
2021-12-07 19:46:24 +08:00
|
|
|
StreamProperty threadArbitrationPolicy{};
|
2022-06-23 23:25:10 +08:00
|
|
|
StreamProperty devicePreemptionMode{};
|
2021-05-18 10:46:21 +08:00
|
|
|
|
2022-06-23 23:25:10 +08:00
|
|
|
void setProperties(bool requiresCoherency, uint32_t numGrfRequired, int32_t threadArbitrationPolicy, PreemptionMode devicePreemptionMode, const HardwareInfo &hwInfo);
|
2021-05-26 21:51:11 +08:00
|
|
|
void setProperties(const StateComputeModeProperties &properties);
|
2021-12-09 19:01:40 +08:00
|
|
|
bool isDirty() const;
|
2022-03-08 21:46:04 +08:00
|
|
|
|
|
|
|
protected:
|
2021-05-18 10:46:21 +08:00
|
|
|
void clearIsDirty();
|
2022-03-08 21:46:04 +08:00
|
|
|
|
|
|
|
bool isDirtyExtra() const;
|
2022-05-17 04:34:53 +08:00
|
|
|
void setPropertiesExtra(bool reportNumGrf, bool reportThreadArbitrationPolicy);
|
2022-03-08 21:46:04 +08:00
|
|
|
void setPropertiesExtra(const StateComputeModeProperties &properties);
|
|
|
|
void clearIsDirtyExtra();
|
2021-05-18 10:46:21 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct FrontEndProperties {
|
2022-02-11 07:33:40 +08:00
|
|
|
StreamProperty computeDispatchAllWalkerEnable{};
|
|
|
|
StreamProperty disableEUFusion{};
|
2021-07-29 01:17:51 +08:00
|
|
|
StreamProperty disableOverdispatch{};
|
2021-08-13 22:48:13 +08:00
|
|
|
StreamProperty singleSliceDispatchCcsMode{};
|
2021-07-29 01:17:51 +08:00
|
|
|
|
2022-03-08 21:46:04 +08:00
|
|
|
void setProperties(bool isCooperativeKernel, bool disableEUFusion, bool disableOverdispatch, int32_t engineInstancedDevice,
|
|
|
|
const HardwareInfo &hwInfo);
|
2021-05-26 21:51:11 +08:00
|
|
|
void setProperties(const FrontEndProperties &properties);
|
2021-12-09 19:01:40 +08:00
|
|
|
bool isDirty() const;
|
2022-03-08 21:46:04 +08:00
|
|
|
|
|
|
|
protected:
|
2021-05-26 21:51:11 +08:00
|
|
|
void clearIsDirty();
|
2021-05-18 10:46:21 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace NEO
|