Remove magic number from set/getBatchBufferStartAddressGraphicsaddress methods

rename methods to set/getBatchBufferStartAddress

Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2021-12-16 18:02:45 +00:00
committed by Compute-Runtime-Automation
parent ae31fec9a7
commit 66bf806018
32 changed files with 38 additions and 68 deletions

View File

@@ -6133,15 +6133,9 @@ typedef struct tagMI_BATCH_BUFFER_START {
inline void setBatchBufferStartAddress(const uint64_t value) {
TheStructure.Common.BatchBufferStartAddress = value >> BATCHBUFFERSTARTADDRESS_BIT_SHIFT;
}
inline void setBatchBufferStartAddressGraphicsaddress472(const uint64_t value) {
TheStructure.Common.BatchBufferStartAddress = value >> BATCHBUFFERSTARTADDRESS_BIT_SHIFT;
}
inline uint64_t getBatchBufferStartAddress() const {
return TheStructure.Common.BatchBufferStartAddress << BATCHBUFFERSTARTADDRESS_BIT_SHIFT;
}
inline uint64_t getBatchBufferStartAddressGraphicsaddress472() const {
return TheStructure.Common.BatchBufferStartAddress << BATCHBUFFERSTARTADDRESS_BIT_SHIFT;
}
inline void setNestedLevelBatchBuffer(const NESTED_LEVEL_BATCH_BUFFER value) {
TheStructure.Mi_Mode_Nestedbatchbufferenableis1.NestedLevelBatchBuffer = value;
}