mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
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:
committed by
Compute-Runtime-Automation
parent
601271c92e
commit
03e617d14f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user