mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 16:24:18 +08:00
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>
35 lines
896 B
C++
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
|