mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-15 10:14:56 +08:00
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:
committed by
Compute-Runtime-Automation
parent
ae31fec9a7
commit
66bf806018
@@ -4666,18 +4666,12 @@ typedef struct tagMI_BATCH_BUFFER_START {
|
||||
BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS39_2_BIT_SHIFT = 0x2,
|
||||
BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS39_2_ALIGN_SIZE = 0x4,
|
||||
} BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS39_2;
|
||||
inline void setBatchBufferStartAddressGraphicsaddress392(const uint64_t value) {
|
||||
inline void setBatchBufferStartAddress(const uint64_t value) {
|
||||
TheStructure.Common.BatchBufferStartAddress_Graphicsaddress39_2 = value >> BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS39_2_BIT_SHIFT;
|
||||
}
|
||||
inline uint64_t getBatchBufferStartAddressGraphicsaddress392() const {
|
||||
inline uint64_t getBatchBufferStartAddress() const {
|
||||
return (TheStructure.Common.BatchBufferStartAddress_Graphicsaddress39_2 << BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS39_2_BIT_SHIFT);
|
||||
}
|
||||
inline void setBatchBufferStartAddressGraphicsaddress472(const uint64_t value) {
|
||||
setBatchBufferStartAddressGraphicsaddress392(value);
|
||||
}
|
||||
inline uint64_t getBatchBufferStartAddressGraphicsaddress472() const {
|
||||
return getBatchBufferStartAddressGraphicsaddress392();
|
||||
}
|
||||
typedef enum tagBATCHBUFFERSTARTADDRESS_RESERVED {
|
||||
BATCHBUFFERSTARTADDRESS_RESERVED_BIT_SHIFT = 0x2,
|
||||
BATCHBUFFERSTARTADDRESS_RESERVED_ALIGN_SIZE = 0x4,
|
||||
|
||||
@@ -1203,12 +1203,6 @@ typedef struct tagMI_BATCH_BUFFER_START {
|
||||
inline uint64_t getBatchBufferStartAddress() const {
|
||||
return TheStructure.Common.BatchBufferStartAddress << BATCHBUFFERSTARTADDRESS_BIT_SHIFT;
|
||||
}
|
||||
inline void setBatchBufferStartAddressGraphicsaddress472(const uint64_t value) {
|
||||
TheStructure.Common.BatchBufferStartAddress = value >> BATCHBUFFERSTARTADDRESS_BIT_SHIFT;
|
||||
}
|
||||
inline uint64_t getBatchBufferStartAddressGraphicsaddress472() const {
|
||||
return TheStructure.Common.BatchBufferStartAddress << BATCHBUFFERSTARTADDRESS_BIT_SHIFT;
|
||||
}
|
||||
inline void setSecondLevelBatchBuffer(const SECOND_LEVEL_BATCH_BUFFER value) {
|
||||
TheStructure.Mi_Mode_Nestedbatchbufferenableis0.SecondLevelBatchBuffer = value;
|
||||
}
|
||||
|
||||
@@ -1258,10 +1258,10 @@ typedef struct tagMI_BATCH_BUFFER_START {
|
||||
BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT = 0x2,
|
||||
BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_ALIGN_SIZE = 0x4,
|
||||
} BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2;
|
||||
inline void setBatchBufferStartAddressGraphicsaddress472(const uint64_t value) {
|
||||
inline void setBatchBufferStartAddress(const uint64_t value) {
|
||||
TheStructure.Common.BatchBufferStartAddress_Graphicsaddress47_2 = value >> BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT;
|
||||
}
|
||||
inline uint64_t getBatchBufferStartAddressGraphicsaddress472() const {
|
||||
inline uint64_t getBatchBufferStartAddress() const {
|
||||
return (TheStructure.Common.BatchBufferStartAddress_Graphicsaddress47_2 << BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT);
|
||||
}
|
||||
typedef enum tagBATCHBUFFERSTARTADDRESS_RESERVED {
|
||||
|
||||
@@ -1262,10 +1262,10 @@ typedef struct tagMI_BATCH_BUFFER_START {
|
||||
BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT = 0x2,
|
||||
BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_ALIGN_SIZE = 0x4,
|
||||
} BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2;
|
||||
inline void setBatchBufferStartAddressGraphicsaddress472(const uint64_t value) {
|
||||
inline void setBatchBufferStartAddress(const uint64_t value) {
|
||||
TheStructure.Common.BatchBufferStartAddress_Graphicsaddress47_2 = value >> BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT;
|
||||
}
|
||||
inline uint64_t getBatchBufferStartAddressGraphicsaddress472() const {
|
||||
inline uint64_t getBatchBufferStartAddress() const {
|
||||
return (TheStructure.Common.BatchBufferStartAddress_Graphicsaddress47_2 << BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT);
|
||||
}
|
||||
typedef enum tagBATCHBUFFERSTARTADDRESS_RESERVED {
|
||||
|
||||
@@ -6032,15 +6032,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;
|
||||
}
|
||||
|
||||
@@ -6174,12 +6174,6 @@ typedef struct tagMI_BATCH_BUFFER_START {
|
||||
inline uint64_t getBatchBufferStartAddress() const {
|
||||
return TheStructure.Common.BatchBufferStartAddress << BATCHBUFFERSTARTADDRESS_BIT_SHIFT;
|
||||
}
|
||||
inline void setBatchBufferStartAddressGraphicsaddress472(const uint64_t value) {
|
||||
TheStructure.Common.BatchBufferStartAddress = value >> BATCHBUFFERSTARTADDRESS_BIT_SHIFT;
|
||||
}
|
||||
inline uint64_t getBatchBufferStartAddressGraphicsaddress472() const {
|
||||
return TheStructure.Common.BatchBufferStartAddress << BATCHBUFFERSTARTADDRESS_BIT_SHIFT;
|
||||
}
|
||||
inline void setSecondLevelBatchBuffer(const SECOND_LEVEL_BATCH_BUFFER value) {
|
||||
TheStructure.Mi_Mode_Nestedbatchbufferenableis0.SecondLevelBatchBuffer = value;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user