Refactor memory object control state methods in generated commands

remove setters/getters for Index To Mocs Tables fields
all information contained in MOCS from gmm client context is now handled
by dedicated method set/get MemoryObjectControlState

Related-To: NEO-6466


Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2021-12-13 12:34:09 +00:00
committed by Compute-Runtime-Automation
parent 601271c92e
commit 03e617d14f
35 changed files with 582 additions and 327 deletions

View File

@@ -3639,16 +3639,6 @@ typedef struct tagSTATE_BASE_ADDRESS {
inline uint32_t getInstructionBufferSize() const {
return (TheStructure.Common.InstructionBufferSize);
}
inline void setStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(const uint32_t value) {
if (value == 0) {
TheStructure.RawData[3] = 0x00710000;
} else {
TheStructure.RawData[3] = 0x00790000;
}
}
inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables() const {
return (uint32_t)(((TheStructure.RawData[3] & 0x007f0000u) == 0x00710000u) ? 0 : 2);
}
inline void setInstructionMemoryObjectControlState(const uint32_t value) {
TheStructure.Common.InstructionMemoryObjectControlState_AgeForQuadlru = value;
TheStructure.Common.InstructionMemoryObjectControlState_Reserved = (value >> 2);