Files
compute-runtime/shared/test/unit_test/command_stream/stream_properties_tests.cpp
Zbigniew Zdanowicz 24db09e3e9 fix: make pipeline thread arbitration one-time switch property
- detect switch happens by making "is dirty" property
- make sure to call the property setter
- setting to always true will make "is dirty" true only once

Related-To: NEO-16330

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2025-10-07 11:27:22 +02:00

45 lines
1.8 KiB
C++

/*
* Copyright (C) 2021-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_stream/stream_properties.h"
#include "shared/test/common/helpers/default_hw_info.h"
#include "shared/test/common/test_macros/test.h"
#include "shared/test/unit_test/command_stream/stream_properties_tests_common.h"
namespace NEO {
std::vector<StreamProperty *> getAllStateComputeModeProperties(StateComputeModeProperties &properties) {
std::vector<StreamProperty *> allProperties;
allProperties.push_back(&properties.isCoherencyRequired);
allProperties.push_back(&properties.largeGrfMode);
allProperties.push_back(&properties.zPassAsyncComputeThreadLimit);
allProperties.push_back(&properties.pixelAsyncComputeThreadLimit);
allProperties.push_back(&properties.threadArbitrationPolicy);
allProperties.push_back(&properties.pipelinedEuThreadArbitration);
allProperties.push_back(&properties.memoryAllocationForScratchAndMidthreadPreemptionBuffers);
allProperties.push_back(&properties.enableVariableRegisterSizeAllocation);
return allProperties;
}
std::vector<StreamProperty *> getAllFrontEndProperties(FrontEndProperties &properties) {
std::vector<StreamProperty *> allProperties;
allProperties.push_back(&properties.disableEUFusion);
allProperties.push_back(&properties.disableOverdispatch);
allProperties.push_back(&properties.singleSliceDispatchCcsMode);
allProperties.push_back(&properties.computeDispatchAllWalkerEnable);
return allProperties;
}
std::vector<StreamProperty *> getAllPipelineSelectProperties(PipelineSelectProperties &properties) {
std::vector<StreamProperty *> allProperties;
allProperties.push_back(&properties.modeSelected);
allProperties.push_back(&properties.systolicMode);
return allProperties;
}
} // namespace NEO