Files
compute-runtime/shared/source/command_stream/stream_properties.h
Zbigniew Zdanowicz e695059152 [perf] reduce host overhead in command list reset call
There is no need to reset all fields and load support flags every reset call.
Add dedicated calls that will reset values and dirty flags.
Call virtual methods only once at init time.

Related-To: NEO-7828

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2023-04-05 11:29:39 +02:00

35 lines
896 B
C++

/*
* Copyright (C) 2021-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "stream_properties.inl"
namespace NEO {
struct StreamProperties {
StateComputeModeProperties stateComputeMode{};
FrontEndProperties frontEndState{};
PipelineSelectProperties pipelineSelect{};
StateBaseAddressProperties stateBaseAddress{};
void initSupport(const RootDeviceEnvironment &rootDeviceEnvironment) {
stateComputeMode.initSupport(rootDeviceEnvironment);
frontEndState.initSupport(rootDeviceEnvironment);
pipelineSelect.initSupport(rootDeviceEnvironment);
stateBaseAddress.initSupport(rootDeviceEnvironment);
}
void resetState() {
stateComputeMode.resetState();
frontEndState.resetState();
pipelineSelect.resetState();
stateBaseAddress.resetState();
}
};
} // namespace NEO