mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
refactor: extract methods to setup SCM state per context
per context properties are now set explicitly Related-To: NEO-12803, NEO-13632 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f762516900
commit
165c294590
@@ -35,8 +35,8 @@ struct StateComputeModeProperties {
|
||||
void resetState();
|
||||
|
||||
void setPropertiesAll(bool requiresCoherency, uint32_t numGrfRequired, int32_t threadArbitrationPolicy, PreemptionMode devicePreemptionMode);
|
||||
void setPropertiesPerContext(bool requiresCoherency, PreemptionMode devicePreemptionMode, bool clearDirtyState);
|
||||
void setPropertiesGrfNumberThreadArbitration(uint32_t numGrfRequired, int32_t threadArbitrationPolicy);
|
||||
void setPropertiesCoherencyDevicePreemption(bool requiresCoherency, PreemptionMode devicePreemptionMode, bool clearDirtyState);
|
||||
|
||||
void copyPropertiesAll(const StateComputeModeProperties &properties);
|
||||
void copyPropertiesGrfNumberThreadArbitration(const StateComputeModeProperties &properties);
|
||||
@@ -45,6 +45,7 @@ struct StateComputeModeProperties {
|
||||
void clearIsDirty();
|
||||
|
||||
protected:
|
||||
void clearIsDirtyPerContext();
|
||||
void clearIsDirtyExtraPerContext();
|
||||
bool isDirtyExtra() const;
|
||||
void resetStateExtra();
|
||||
|
||||
Reference in New Issue
Block a user