2021-05-18 02:46:21 +00:00
|
|
|
/*
|
2022-02-10 23:33:40 +00:00
|
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
2021-05-18 02:46:21 +00:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "shared/source/command_stream/stream_properties.h"
|
2021-07-28 17:17:51 +00:00
|
|
|
#include "shared/test/common/helpers/default_hw_info.h"
|
2021-12-14 17:40:08 +00:00
|
|
|
#include "shared/test/common/test_macros/test.h"
|
2021-05-18 02:46:21 +00:00
|
|
|
#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);
|
2021-07-07 13:34:46 +00:00
|
|
|
allProperties.push_back(&properties.largeGrfMode);
|
2021-11-19 13:38:23 +00:00
|
|
|
allProperties.push_back(&properties.zPassAsyncComputeThreadLimit);
|
|
|
|
|
allProperties.push_back(&properties.pixelAsyncComputeThreadLimit);
|
2021-12-07 11:46:24 +00:00
|
|
|
allProperties.push_back(&properties.threadArbitrationPolicy);
|
2021-05-18 02:46:21 +00:00
|
|
|
return allProperties;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-26 13:51:11 +00:00
|
|
|
std::vector<StreamProperty *> getAllFrontEndProperties(FrontEndProperties &properties) {
|
2021-07-28 17:17:51 +00:00
|
|
|
std::vector<StreamProperty *> allProperties;
|
2022-02-10 23:33:40 +00:00
|
|
|
allProperties.push_back(&properties.disableEUFusion);
|
2021-07-28 17:17:51 +00:00
|
|
|
allProperties.push_back(&properties.disableOverdispatch);
|
2021-08-13 14:48:13 +00:00
|
|
|
allProperties.push_back(&properties.singleSliceDispatchCcsMode);
|
2021-12-07 11:46:24 +00:00
|
|
|
allProperties.push_back(&properties.computeDispatchAllWalkerEnable);
|
2021-07-28 17:17:51 +00:00
|
|
|
return allProperties;
|
2021-05-26 13:51:11 +00:00
|
|
|
}
|
|
|
|
|
|
2021-05-18 02:46:21 +00:00
|
|
|
} // namespace NEO
|