Unify StreamProperties structs

Introduce functions allowing to copy values from one struct to another,
while correctly setting values of isDirty field.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2021-05-26 13:51:11 +00:00
committed by Compute-Runtime-Automation
parent 899af98240
commit 7eb81e9d85
12 changed files with 117 additions and 53 deletions

View File

@@ -12,11 +12,18 @@ namespace NEO {
struct StateComputeModeProperties {
StreamProperty isCoherencyRequired{};
void setProperties(bool requiresCoherency, uint32_t numGrfRequired, bool isMultiOsContextCapable,
bool useGlobalAtomics, bool areMultipleSubDevicesInContext);
void setProperties(const StateComputeModeProperties &properties);
bool isDirty();
void clearIsDirty();
};
struct FrontEndProperties {
void setProperties(bool isCooperativeKernel, const HardwareInfo &hwInfo);
void setProperties(const FrontEndProperties &properties);
bool isDirty();
void clearIsDirty();
};
} // namespace NEO