mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Add helper method to UnitTestHelper to query programmed grf values. Related-To: NEO-6659 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/command_stream/stream_property.h"
|
|
|
|
namespace NEO {
|
|
|
|
struct StateComputeModeProperties {
|
|
StreamProperty isCoherencyRequired{};
|
|
StreamProperty largeGrfMode{};
|
|
StreamProperty zPassAsyncComputeThreadLimit{};
|
|
StreamProperty pixelAsyncComputeThreadLimit{};
|
|
StreamProperty threadArbitrationPolicy{};
|
|
|
|
void setProperties(bool requiresCoherency, uint32_t numGrfRequired, int32_t threadArbitrationPolicy, const HardwareInfo &hwInfo);
|
|
void setProperties(const StateComputeModeProperties &properties);
|
|
bool isDirty() const;
|
|
|
|
protected:
|
|
void clearIsDirty();
|
|
|
|
bool isDirtyExtra() const;
|
|
void setPropertiesExtra(bool reportNumGrf);
|
|
void setPropertiesExtra(const StateComputeModeProperties &properties);
|
|
void clearIsDirtyExtra();
|
|
};
|
|
|
|
struct FrontEndProperties {
|
|
StreamProperty computeDispatchAllWalkerEnable{};
|
|
StreamProperty disableEUFusion{};
|
|
StreamProperty disableOverdispatch{};
|
|
StreamProperty singleSliceDispatchCcsMode{};
|
|
|
|
void setProperties(bool isCooperativeKernel, bool disableEUFusion, bool disableOverdispatch, int32_t engineInstancedDevice,
|
|
const HardwareInfo &hwInfo);
|
|
void setProperties(const FrontEndProperties &properties);
|
|
bool isDirty() const;
|
|
|
|
protected:
|
|
void clearIsDirty();
|
|
};
|
|
|
|
} // namespace NEO
|