diff --git a/shared/source/generated/gen11/hw_cmds_generated_gen11.inl b/shared/source/generated/gen11/hw_cmds_generated_gen11.inl index 5ebc7d85c0..814c259b0b 100644 --- a/shared/source/generated/gen11/hw_cmds_generated_gen11.inl +++ b/shared/source/generated/gen11/hw_cmds_generated_gen11.inl @@ -18,10 +18,10 @@ typedef struct tagBINDING_TABLE_STATE { SURFACESTATEPOINTER_BYTEOFFSET = 0x0, SURFACESTATEPOINTER_INDEX = 0x0, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); } - static tagBINDING_TABLE_STATE sInit(void) { + static tagBINDING_TABLE_STATE sInit() { BINDING_TABLE_STATE state; state.init(); return state; @@ -42,7 +42,7 @@ typedef struct tagBINDING_TABLE_STATE { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SurfaceStatePointer = (uint32_t)value >> SURFACESTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSurfaceStatePointer(void) const { + inline uint32_t getSurfaceStatePointer() const { return (TheStructure.Common.SurfaceStatePointer << SURFACESTATEPOINTER_BIT_SHIFT); } } BINDING_TABLE_STATE; @@ -109,7 +109,7 @@ typedef struct tagGPGPU_WALKER { INDIRECTDATASTARTADDRESS_BYTEOFFSET = 0xc, INDIRECTDATASTARTADDRESS_INDEX = 0x3, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_GPGPU_WALKER_SUBOP; @@ -118,7 +118,7 @@ typedef struct tagGPGPU_WALKER { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.SimdSize = SIMD_SIZE_SIMD8; } - static tagGPGPU_WALKER sInit(void) { + static tagGPGPU_WALKER sInit() { GPGPU_WALKER state; state.init(); return state; @@ -130,25 +130,25 @@ typedef struct tagGPGPU_WALKER { inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return (TheStructure.Common.PredicateEnable); } inline void setIndirectParameterEnable(const bool value) { TheStructure.Common.IndirectParameterEnable = value; } - inline bool getIndirectParameterEnable(void) const { + inline bool getIndirectParameterEnable() const { return (TheStructure.Common.IndirectParameterEnable); } inline void setInterfaceDescriptorOffset(const uint32_t value) { TheStructure.Common.InterfaceDescriptorOffset = value; } - inline uint32_t getInterfaceDescriptorOffset(void) const { + inline uint32_t getInterfaceDescriptorOffset() const { return (TheStructure.Common.InterfaceDescriptorOffset); } inline void setIndirectDataLength(const uint32_t value) { TheStructure.Common.IndirectDataLength = value; } - inline uint32_t getIndirectDataLength(void) const { + inline uint32_t getIndirectDataLength() const { return (TheStructure.Common.IndirectDataLength); } typedef enum tagINDIRECTDATASTARTADDRESS { @@ -158,79 +158,79 @@ typedef struct tagGPGPU_WALKER { inline void setIndirectDataStartAddress(const uint32_t value) { TheStructure.Common.IndirectDataStartAddress = value >> INDIRECTDATASTARTADDRESS_BIT_SHIFT; } - inline uint32_t getIndirectDataStartAddress(void) const { + inline uint32_t getIndirectDataStartAddress() const { return (TheStructure.Common.IndirectDataStartAddress << INDIRECTDATASTARTADDRESS_BIT_SHIFT); } inline void setThreadWidthCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadWidthCounterMaximum = value - 1; } - inline uint32_t getThreadWidthCounterMaximum(void) const { + inline uint32_t getThreadWidthCounterMaximum() const { return (TheStructure.Common.ThreadWidthCounterMaximum + 1); } inline void setThreadHeightCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadHeightCounterMaximum = value - 1; } - inline uint32_t getThreadHeightCounterMaximum(void) const { + inline uint32_t getThreadHeightCounterMaximum() const { return (TheStructure.Common.ThreadHeightCounterMaximum + 1); } inline void setThreadDepthCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadDepthCounterMaximum = value; } - inline uint32_t getThreadDepthCounterMaximum(void) const { + inline uint32_t getThreadDepthCounterMaximum() const { return (TheStructure.Common.ThreadDepthCounterMaximum); } inline void setSimdSize(const SIMD_SIZE value) { TheStructure.Common.SimdSize = value; } - inline SIMD_SIZE getSimdSize(void) const { + inline SIMD_SIZE getSimdSize() const { return static_cast(TheStructure.Common.SimdSize); } inline void setThreadGroupIdStartingX(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingX = value; } - inline uint32_t getThreadGroupIdStartingX(void) const { + inline uint32_t getThreadGroupIdStartingX() const { return (TheStructure.Common.ThreadGroupIdStartingX); } inline void setThreadGroupIdXDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdXDimension = value; } - inline uint32_t getThreadGroupIdXDimension(void) const { + inline uint32_t getThreadGroupIdXDimension() const { return (TheStructure.Common.ThreadGroupIdXDimension); } inline void setThreadGroupIdStartingY(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingY = value; } - inline uint32_t getThreadGroupIdStartingY(void) const { + inline uint32_t getThreadGroupIdStartingY() const { return (TheStructure.Common.ThreadGroupIdStartingY); } inline void setThreadGroupIdYDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdYDimension = value; } - inline uint32_t getThreadGroupIdYDimension(void) const { + inline uint32_t getThreadGroupIdYDimension() const { return (TheStructure.Common.ThreadGroupIdYDimension); } inline void setThreadGroupIdStartingResumeZ(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingResumeZ = value; } - inline uint32_t getThreadGroupIdStartingResumeZ(void) const { + inline uint32_t getThreadGroupIdStartingResumeZ() const { return (TheStructure.Common.ThreadGroupIdStartingResumeZ); } inline void setThreadGroupIdZDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdZDimension = value; } - inline uint32_t getThreadGroupIdZDimension(void) const { + inline uint32_t getThreadGroupIdZDimension() const { return (TheStructure.Common.ThreadGroupIdZDimension); } inline void setRightExecutionMask(const uint32_t value) { TheStructure.Common.RightExecutionMask = value; } - inline uint32_t getRightExecutionMask(void) const { + inline uint32_t getRightExecutionMask() const { return (TheStructure.Common.RightExecutionMask); } inline void setBottomExecutionMask(const uint32_t value) { TheStructure.Common.BottomExecutionMask = value; } - inline uint32_t getBottomExecutionMask(void) const { + inline uint32_t getBottomExecutionMask() const { return (TheStructure.Common.BottomExecutionMask); } } GPGPU_WALKER; @@ -328,7 +328,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { BINDINGTABLEPOINTER_BYTEOFFSET = 0x10, BINDINGTABLEPOINTER_INDEX = 0x4, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.FloatingPointMode = FLOATING_POINT_MODE_IEEE_754; TheStructure.Common.ThreadPriority = THREAD_PRIORITY_NORMAL_PRIORITY; @@ -339,7 +339,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { TheStructure.Common.SharedLocalMemorySize = SHARED_LOCAL_MEMORY_SIZE_ENCODES_0K; TheStructure.Common.RoundingMode = ROUNDING_MODE_RTNE; } - static tagINTERFACE_DESCRIPTOR_DATA sInit(void) { + static tagINTERFACE_DESCRIPTOR_DATA sInit() { INTERFACE_DESCRIPTOR_DATA state; state.init(); return state; @@ -356,67 +356,67 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.KernelStartPointer = (uint32_t)value >> KERNELSTARTPOINTER_BIT_SHIFT; } - inline uint32_t getKernelStartPointer(void) const { + inline uint32_t getKernelStartPointer() const { return (TheStructure.Common.KernelStartPointer << KERNELSTARTPOINTER_BIT_SHIFT); } inline void setKernelStartPointerHigh(const uint32_t value) { TheStructure.Common.KernelStartPointerHigh = value; } - inline uint32_t getKernelStartPointerHigh(void) const { + inline uint32_t getKernelStartPointerHigh() const { return (TheStructure.Common.KernelStartPointerHigh); } inline void setSoftwareExceptionEnable(const bool value) { TheStructure.Common.SoftwareExceptionEnable = value; } - inline bool getSoftwareExceptionEnable(void) const { + inline bool getSoftwareExceptionEnable() const { return (TheStructure.Common.SoftwareExceptionEnable); } inline void setMaskStackExceptionEnable(const bool value) { TheStructure.Common.MaskStackExceptionEnable = value; } - inline bool getMaskStackExceptionEnable(void) const { + inline bool getMaskStackExceptionEnable() const { return (TheStructure.Common.MaskStackExceptionEnable); } inline void setIllegalOpcodeExceptionEnable(const bool value) { TheStructure.Common.IllegalOpcodeExceptionEnable = value; } - inline bool getIllegalOpcodeExceptionEnable(void) const { + inline bool getIllegalOpcodeExceptionEnable() const { return (TheStructure.Common.IllegalOpcodeExceptionEnable); } inline void setFloatingPointMode(const FLOATING_POINT_MODE value) { TheStructure.Common.FloatingPointMode = value; } - inline FLOATING_POINT_MODE getFloatingPointMode(void) const { + inline FLOATING_POINT_MODE getFloatingPointMode() const { return static_cast(TheStructure.Common.FloatingPointMode); } inline void setThreadPriority(const THREAD_PRIORITY value) { TheStructure.Common.ThreadPriority = value; } - inline THREAD_PRIORITY getThreadPriority(void) const { + inline THREAD_PRIORITY getThreadPriority() const { return static_cast(TheStructure.Common.ThreadPriority); } inline void setSingleProgramFlow(const SINGLE_PROGRAM_FLOW value) { TheStructure.Common.SingleProgramFlow = value; } - inline SINGLE_PROGRAM_FLOW getSingleProgramFlow(void) const { + inline SINGLE_PROGRAM_FLOW getSingleProgramFlow() const { return static_cast(TheStructure.Common.SingleProgramFlow); } inline void setDenormMode(const DENORM_MODE value) { TheStructure.Common.DenormMode = value; } - inline DENORM_MODE getDenormMode(void) const { + inline DENORM_MODE getDenormMode() const { return static_cast(TheStructure.Common.DenormMode); } inline void setThreadPreemptionDisable(const THREAD_PREEMPTION_DISABLE value) { TheStructure.Common.ThreadPreemptionDisable = value; } - inline THREAD_PREEMPTION_DISABLE getThreadPreemptionDisable(void) const { + inline THREAD_PREEMPTION_DISABLE getThreadPreemptionDisable() const { return static_cast(TheStructure.Common.ThreadPreemptionDisable); } inline void setSamplerCount(const SAMPLER_COUNT value) { TheStructure.Common.SamplerCount = value; } - inline SAMPLER_COUNT getSamplerCount(void) const { + inline SAMPLER_COUNT getSamplerCount() const { return static_cast(TheStructure.Common.SamplerCount); } typedef enum tagSAMPLERSTATEPOINTER { @@ -427,13 +427,13 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SamplerStatePointer = (uint32_t)value >> SAMPLERSTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSamplerStatePointer(void) const { + inline uint32_t getSamplerStatePointer() const { return (TheStructure.Common.SamplerStatePointer << SAMPLERSTATEPOINTER_BIT_SHIFT); } inline void setBindingTableEntryCount(const uint32_t value) { TheStructure.Common.BindingTableEntryCount = value; } - inline uint32_t getBindingTableEntryCount(void) const { + inline uint32_t getBindingTableEntryCount() const { return (TheStructure.Common.BindingTableEntryCount); } typedef enum tagBINDINGTABLEPOINTER { @@ -444,49 +444,49 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.BindingTablePointer = (uint32_t)value >> BINDINGTABLEPOINTER_BIT_SHIFT; } - inline uint32_t getBindingTablePointer(void) const { + inline uint32_t getBindingTablePointer() const { return (TheStructure.Common.BindingTablePointer << BINDINGTABLEPOINTER_BIT_SHIFT); } inline void setConstantUrbEntryReadOffset(const uint32_t value) { TheStructure.Common.ConstantUrbEntryReadOffset = value; } - inline uint32_t getConstantUrbEntryReadOffset(void) const { + inline uint32_t getConstantUrbEntryReadOffset() const { return (TheStructure.Common.ConstantUrbEntryReadOffset); } inline void setConstantIndirectUrbEntryReadLength(const uint32_t value) { TheStructure.Common.ConstantIndirectUrbEntryReadLength = value; } - inline uint32_t getConstantIndirectUrbEntryReadLength(void) const { + inline uint32_t getConstantIndirectUrbEntryReadLength() const { return (TheStructure.Common.ConstantIndirectUrbEntryReadLength); } inline void setNumberOfThreadsInGpgpuThreadGroup(const uint32_t value) { TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup = value; } - inline uint32_t getNumberOfThreadsInGpgpuThreadGroup(void) const { + inline uint32_t getNumberOfThreadsInGpgpuThreadGroup() const { return (TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup); } inline void setSharedLocalMemorySize(const SHARED_LOCAL_MEMORY_SIZE value) { TheStructure.Common.SharedLocalMemorySize = value; } - inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize(void) const { + inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize() const { return static_cast(TheStructure.Common.SharedLocalMemorySize); } inline void setBarrierEnable(const uint32_t value) { TheStructure.Common.BarrierEnable = (value > 0u) ? 1u : 0u; } - inline bool getBarrierEnable(void) const { + inline bool getBarrierEnable() const { return (TheStructure.Common.BarrierEnable); } inline void setRoundingMode(const ROUNDING_MODE value) { TheStructure.Common.RoundingMode = value; } - inline ROUNDING_MODE getRoundingMode(void) const { + inline ROUNDING_MODE getRoundingMode() const { return static_cast(TheStructure.Common.RoundingMode); } inline void setCrossThreadConstantDataReadLength(const uint32_t value) { TheStructure.Common.Cross_ThreadConstantDataReadLength = value; } - inline uint32_t getCrossThreadConstantDataReadLength(void) const { + inline uint32_t getCrossThreadConstantDataReadLength() const { return (TheStructure.Common.Cross_ThreadConstantDataReadLength); } } INTERFACE_DESCRIPTOR_DATA; @@ -526,7 +526,7 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { INTERFACEDESCRIPTORDATASTARTADDRESS_BYTEOFFSET = 0xc, INTERFACEDESCRIPTORDATASTARTADDRESS_INDEX = 0x3, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_INTERFACE_DESCRIPTOR_LOAD_SUBOP; @@ -534,7 +534,7 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { TheStructure.Common.Pipeline = PIPELINE_MEDIA; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagMEDIA_INTERFACE_DESCRIPTOR_LOAD sInit(void) { + static tagMEDIA_INTERFACE_DESCRIPTOR_LOAD sInit() { MEDIA_INTERFACE_DESCRIPTOR_LOAD state; state.init(); return state; @@ -546,13 +546,13 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { inline void setInterfaceDescriptorTotalLength(const uint32_t value) { TheStructure.Common.InterfaceDescriptorTotalLength = value; } - inline uint32_t getInterfaceDescriptorTotalLength(void) const { + inline uint32_t getInterfaceDescriptorTotalLength() const { return (TheStructure.Common.InterfaceDescriptorTotalLength); } inline void setInterfaceDescriptorDataStartAddress(const uint32_t value) { TheStructure.Common.InterfaceDescriptorDataStartAddress = value; } - inline uint32_t getInterfaceDescriptorDataStartAddress(void) const { + inline uint32_t getInterfaceDescriptorDataStartAddress() const { return (TheStructure.Common.InterfaceDescriptorDataStartAddress); } } MEDIA_INTERFACE_DESCRIPTOR_LOAD; @@ -588,7 +588,7 @@ typedef struct tagMEDIA_STATE_FLUSH { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_STATE_FLUSH_SUBOP; @@ -596,7 +596,7 @@ typedef struct tagMEDIA_STATE_FLUSH { TheStructure.Common.Pipeline = PIPELINE_MEDIA; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagMEDIA_STATE_FLUSH sInit(void) { + static tagMEDIA_STATE_FLUSH sInit() { MEDIA_STATE_FLUSH state; state.init(); return state; @@ -608,13 +608,13 @@ typedef struct tagMEDIA_STATE_FLUSH { inline void setInterfaceDescriptorOffset(const uint32_t value) { TheStructure.Common.InterfaceDescriptorOffset = value; } - inline uint32_t getInterfaceDescriptorOffset(void) const { + inline uint32_t getInterfaceDescriptorOffset() const { return (TheStructure.Common.InterfaceDescriptorOffset); } inline void setFlushToGo(const bool value) { TheStructure.Common.FlushToGo = value; } - inline bool getFlushToGo(void) const { + inline bool getFlushToGo() const { return (TheStructure.Common.FlushToGo); } } MEDIA_STATE_FLUSH; @@ -676,7 +676,7 @@ typedef struct tagMEDIA_VFE_STATE { SCRATCHSPACEBASEPOINTERHIGH_BYTEOFFSET = 0x8, SCRATCHSPACEBASEPOINTERHIGH_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_VFE_STATE_SUBOP; @@ -685,7 +685,7 @@ typedef struct tagMEDIA_VFE_STATE { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.DispatchLoadBalance = DISPATCH_LOAD_BALANCE_LEAST_LOADED; } - static tagMEDIA_VFE_STATE sInit(void) { + static tagMEDIA_VFE_STATE sInit() { MEDIA_VFE_STATE state; state.init(); return state; @@ -697,13 +697,13 @@ typedef struct tagMEDIA_VFE_STATE { inline void setPerThreadScratchSpace(const uint32_t value) { TheStructure.Common.PerThreadScratchSpace = value; } - inline uint32_t getPerThreadScratchSpace(void) const { + inline uint32_t getPerThreadScratchSpace() const { return (TheStructure.Common.PerThreadScratchSpace); } inline void setStackSize(const uint32_t value) { TheStructure.Common.StackSize = value; } - inline uint32_t getStackSize(void) const { + inline uint32_t getStackSize() const { return (TheStructure.Common.StackSize); } typedef enum tagSCRATCHSPACEBASEPOINTER { @@ -713,55 +713,55 @@ typedef struct tagMEDIA_VFE_STATE { inline void setScratchSpaceBasePointer(const uint32_t value) { TheStructure.Common.ScratchSpaceBasePointer = value >> SCRATCHSPACEBASEPOINTER_BIT_SHIFT; } - inline uint32_t getScratchSpaceBasePointer(void) const { + inline uint32_t getScratchSpaceBasePointer() const { return (TheStructure.Common.ScratchSpaceBasePointer << SCRATCHSPACEBASEPOINTER_BIT_SHIFT); } inline void setScratchSpaceBasePointerHigh(const uint32_t value) { TheStructure.Common.ScratchSpaceBasePointerHigh = value; } - inline uint32_t getScratchSpaceBasePointerHigh(void) const { + inline uint32_t getScratchSpaceBasePointerHigh() const { return (TheStructure.Common.ScratchSpaceBasePointerHigh); } inline void setDispatchLoadBalance(const DISPATCH_LOAD_BALANCE value) { TheStructure.Common.DispatchLoadBalance = value; } - inline DISPATCH_LOAD_BALANCE getDispatchLoadBalance(void) const { + inline DISPATCH_LOAD_BALANCE getDispatchLoadBalance() const { return static_cast(TheStructure.Common.DispatchLoadBalance); } inline void setDisableSlice0Subslice2(const bool value) { TheStructure.Common.DisableSlice0Subslice2 = value; } - inline bool getDisableSlice0Subslice2(void) const { + inline bool getDisableSlice0Subslice2() const { return (TheStructure.Common.DisableSlice0Subslice2); } inline void setNumberOfUrbEntries(const uint32_t value) { TheStructure.Common.NumberOfUrbEntries = value; } - inline uint32_t getNumberOfUrbEntries(void) const { + inline uint32_t getNumberOfUrbEntries() const { return (TheStructure.Common.NumberOfUrbEntries); } inline void setMaximumNumberOfThreads(const uint32_t value) { TheStructure.Common.MaximumNumberOfThreads = value - 1; } - inline uint32_t getMaximumNumberOfThreads(void) const { + inline uint32_t getMaximumNumberOfThreads() const { return (TheStructure.Common.MaximumNumberOfThreads + 1); } inline void setMaximumNumberOfDualSubslices(const uint32_t value) { TheStructure.Common.MaximumNumberOfDual_Subslices = value; } - inline uint32_t getMaximumNumberOfDualSubslices(void) const { + inline uint32_t getMaximumNumberOfDualSubslices() const { return (TheStructure.Common.MaximumNumberOfDual_Subslices); } inline void setCurbeAllocationSize(const uint32_t value) { TheStructure.Common.CurbeAllocationSize = value; } - inline uint32_t getCurbeAllocationSize(void) const { + inline uint32_t getCurbeAllocationSize() const { return (TheStructure.Common.CurbeAllocationSize); } inline void setUrbEntryAllocationSize(const uint32_t value) { TheStructure.Common.UrbEntryAllocationSize = value; } - inline uint32_t getUrbEntryAllocationSize(void) const { + inline uint32_t getUrbEntryAllocationSize() const { return (TheStructure.Common.UrbEntryAllocationSize); } } MEDIA_VFE_STATE; @@ -782,12 +782,12 @@ typedef struct tagMI_ARB_CHECK { typedef enum tagMI_INSTRUCTION_TYPE { MI_INSTRUCTION_TYPE_MI_INSTRUCTION = 0x0, } MI_INSTRUCTION_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiInstructionOpcode = MI_INSTRUCTION_OPCODE_MI_ARB_CHECK; TheStructure.Common.MiInstructionType = MI_INSTRUCTION_TYPE_MI_INSTRUCTION; } - static tagMI_ARB_CHECK sInit(void) { + static tagMI_ARB_CHECK sInit() { MI_ARB_CHECK state; state.init(); return state; @@ -799,13 +799,13 @@ typedef struct tagMI_ARB_CHECK { inline void setMiInstructionOpcode(const MI_INSTRUCTION_OPCODE value) { TheStructure.Common.MiInstructionOpcode = value; } - inline MI_INSTRUCTION_OPCODE getMiInstructionOpcode(void) const { + inline MI_INSTRUCTION_OPCODE getMiInstructionOpcode() const { return static_cast(TheStructure.Common.MiInstructionOpcode); } inline void setMiInstructionType(const MI_INSTRUCTION_TYPE value) { TheStructure.Common.MiInstructionType = value; } - inline MI_INSTRUCTION_TYPE getMiInstructionType(void) const { + inline MI_INSTRUCTION_TYPE getMiInstructionType() const { return static_cast(TheStructure.Common.MiInstructionType); } } MI_ARB_CHECK; @@ -874,7 +874,7 @@ typedef struct tagMI_ATOMIC { ATOMIC_8B_INCREMENT = 0x25, ATOMIC_8B_DECREMENT = 0x26, } ATOMIC_OPCODES; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_INLINE_DATA_0; TheStructure.Common.DataSize = DATA_SIZE_DWORD; @@ -883,7 +883,7 @@ typedef struct tagMI_ATOMIC { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_ATOMIC; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_ATOMIC sInit(void) { + static tagMI_ATOMIC sInit() { MI_ATOMIC state; state.init(); return state; @@ -895,49 +895,49 @@ typedef struct tagMI_ATOMIC { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setAtomicOpcode(const uint32_t value) { TheStructure.Common.AtomicOpcode = value; } - inline uint32_t getAtomicOpcode(void) const { + inline uint32_t getAtomicOpcode() const { return (TheStructure.Common.AtomicOpcode); } inline void setReturnDataControl(const uint32_t value) { TheStructure.Common.ReturnDataControl = value; } - inline uint32_t getReturnDataControl(void) const { + inline uint32_t getReturnDataControl() const { return (TheStructure.Common.ReturnDataControl); } inline void setCsStall(const uint32_t value) { TheStructure.Common.CsStall = value; } - inline uint32_t getCsStall(void) const { + inline uint32_t getCsStall() const { return (TheStructure.Common.CsStall); } inline void setInlineData(const uint32_t value) { TheStructure.Common.InlineData = value; } - inline uint32_t getInlineData(void) const { + inline uint32_t getInlineData() const { return (TheStructure.Common.InlineData); } inline void setDataSize(const DATA_SIZE value) { TheStructure.Common.DataSize = value; } - inline DATA_SIZE getDataSize(void) const { + inline DATA_SIZE getDataSize() const { return static_cast(TheStructure.Common.DataSize); } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.Post_SyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.Post_SyncOperation); } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } typedef enum tagMEMORYADDRESS { @@ -947,61 +947,61 @@ typedef struct tagMI_ATOMIC { inline void setMemoryAddress(const uint32_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint32_t getMemoryAddress(void) const { + inline uint32_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } inline void setMemoryAddressHigh(const uint32_t value) { TheStructure.Common.MemoryAddressHigh = value; } - inline uint32_t getMemoryAddressHigh(void) const { + inline uint32_t getMemoryAddressHigh() const { return (TheStructure.Common.MemoryAddressHigh); } inline void setOperand1DataDword0(const uint32_t value) { TheStructure.Common.Operand1DataDword0 = value; } - inline uint32_t getOperand1DataDword0(void) const { + inline uint32_t getOperand1DataDword0() const { return (TheStructure.Common.Operand1DataDword0); } inline void setOperand2DataDword0(const uint32_t value) { TheStructure.Common.Operand2DataDword0 = value; } - inline uint32_t getOperand2DataDword0(void) const { + inline uint32_t getOperand2DataDword0() const { return (TheStructure.Common.Operand2DataDword0); } inline void setOperand1DataDword1(const uint32_t value) { TheStructure.Common.Operand1DataDword1 = value; } - inline uint32_t getOperand1DataDword1(void) const { + inline uint32_t getOperand1DataDword1() const { return (TheStructure.Common.Operand1DataDword1); } inline void setOperand2DataDword1(const uint32_t value) { TheStructure.Common.Operand2DataDword1 = value; } - inline uint32_t getOperand2DataDword1(void) const { + inline uint32_t getOperand2DataDword1() const { return (TheStructure.Common.Operand2DataDword1); } inline void setOperand1DataDword2(const uint32_t value) { TheStructure.Common.Operand1DataDword2 = value; } - inline uint32_t getOperand1DataDword2(void) const { + inline uint32_t getOperand1DataDword2() const { return (TheStructure.Common.Operand1DataDword2); } inline void setOperand2DataDword2(const uint32_t value) { TheStructure.Common.Operand2DataDword2 = value; } - inline uint32_t getOperand2DataDword2(void) const { + inline uint32_t getOperand2DataDword2() const { return (TheStructure.Common.Operand2DataDword2); } inline void setOperand1DataDword3(const uint32_t value) { TheStructure.Common.Operand1DataDword3 = value; } - inline uint32_t getOperand1DataDword3(void) const { + inline uint32_t getOperand1DataDword3() const { return (TheStructure.Common.Operand1DataDword3); } inline void setOperand2DataDword3(const uint32_t value) { TheStructure.Common.Operand2DataDword3 = value; } - inline uint32_t getOperand2DataDword3(void) const { + inline uint32_t getOperand2DataDword3() const { return (TheStructure.Common.Operand2DataDword3); } } MI_ATOMIC; @@ -1023,12 +1023,12 @@ typedef struct tagMI_BATCH_BUFFER_END { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_BATCH_BUFFER_END; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_BATCH_BUFFER_END sInit(void) { + static tagMI_BATCH_BUFFER_END sInit() { MI_BATCH_BUFFER_END state; state.init(); return state; @@ -1040,7 +1040,7 @@ typedef struct tagMI_BATCH_BUFFER_END { inline void setEndContext(const bool value) { TheStructure.Common.EndContext = value; } - inline bool getEndContext(void) const { + inline bool getEndContext() const { return (TheStructure.Common.EndContext); } } MI_BATCH_BUFFER_END; @@ -1072,13 +1072,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_IMM sInit(void) { + static tagMI_LOAD_REGISTER_IMM sInit() { MI_LOAD_REGISTER_IMM state; state.init(); return state; @@ -1090,13 +1090,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { inline void setByteWriteDisables(const uint32_t value) { TheStructure.Common.ByteWriteDisables = value; } - inline uint32_t getByteWriteDisables(void) const { + inline uint32_t getByteWriteDisables() const { return (TheStructure.Common.ByteWriteDisables); } inline void setAddCsMmioStartOffset(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline uint32_t getAddCsMmioStartOffset(void) const { + inline uint32_t getAddCsMmioStartOffset() const { return (TheStructure.Common.AddCsMmioStartOffset); } typedef enum tagREGISTEROFFSET { @@ -1106,13 +1106,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { inline void setRegisterOffset(const uint32_t value) { TheStructure.Common.RegisterOffset = value >> REGISTEROFFSET_BIT_SHIFT; } - inline uint32_t getRegisterOffset(void) const { + inline uint32_t getRegisterOffset() const { return (TheStructure.Common.RegisterOffset << REGISTEROFFSET_BIT_SHIFT); } inline void setDataDword(const uint32_t value) { TheStructure.Common.DataDword = value; } - inline uint32_t getDataDword(void) const { + inline uint32_t getDataDword() const { return (TheStructure.Common.DataDword); } } MI_LOAD_REGISTER_IMM; @@ -1150,13 +1150,13 @@ typedef struct tagMI_LOAD_REGISTER_MEM { MEMORYADDRESS_BYTEOFFSET = 0x8, MEMORYADDRESS_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_MEM sInit(void) { + static tagMI_LOAD_REGISTER_MEM sInit() { MI_LOAD_REGISTER_MEM state; state.init(); return state; @@ -1168,19 +1168,19 @@ typedef struct tagMI_LOAD_REGISTER_MEM { inline void setAddCsMmioStartOffset(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline uint32_t getAddCsMmioStartOffset(void) const { + inline uint32_t getAddCsMmioStartOffset() const { return (TheStructure.Common.AddCsMmioStartOffset); } inline void setAsyncModeEnable(const bool value) { TheStructure.Common.AsyncModeEnable = value; } - inline bool getAsyncModeEnable(void) const { + inline bool getAsyncModeEnable() const { return (TheStructure.Common.AsyncModeEnable); } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } typedef enum tagREGISTERADDRESS { @@ -1190,7 +1190,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { inline void setRegisterAddress(const uint32_t value) { TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return (TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT); } typedef enum tagMEMORYADDRESS { @@ -1200,7 +1200,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } } MI_LOAD_REGISTER_MEM; @@ -1234,13 +1234,13 @@ typedef struct tagMI_LOAD_REGISTER_REG { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_REG; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_REG sInit(void) { + static tagMI_LOAD_REGISTER_REG sInit() { MI_LOAD_REGISTER_REG state; state.init(); return state; @@ -1252,13 +1252,13 @@ typedef struct tagMI_LOAD_REGISTER_REG { inline void setAddCsMmioStartOffsetSource(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffsetSource = value; } - inline uint32_t getAddCsMmioStartOffsetSource(void) const { + inline uint32_t getAddCsMmioStartOffsetSource() const { return (TheStructure.Common.AddCsMmioStartOffsetSource); } inline void setAddCsMmioStartOffsetDestination(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffsetDestination = value; } - inline uint32_t getAddCsMmioStartOffsetDestination(void) const { + inline uint32_t getAddCsMmioStartOffsetDestination() const { return (TheStructure.Common.AddCsMmioStartOffsetDestination); } typedef enum tagSOURCEREGISTERADDRESS { @@ -1268,7 +1268,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { inline void setSourceRegisterAddress(const uint32_t value) { TheStructure.Common.SourceRegisterAddress = value >> SOURCEREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getSourceRegisterAddress(void) const { + inline uint32_t getSourceRegisterAddress() const { return (TheStructure.Common.SourceRegisterAddress << SOURCEREGISTERADDRESS_BIT_SHIFT); } typedef enum tagDESTINATIONREGISTERADDRESS { @@ -1278,7 +1278,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { inline void setDestinationRegisterAddress(const uint32_t value) { TheStructure.Common.DestinationRegisterAddress = value >> DESTINATIONREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getDestinationRegisterAddress(void) const { + inline uint32_t getDestinationRegisterAddress() const { return (TheStructure.Common.DestinationRegisterAddress << DESTINATIONREGISTERADDRESS_BIT_SHIFT); } } MI_LOAD_REGISTER_REG; @@ -1300,12 +1300,12 @@ typedef struct tagMI_NOOP { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_NOOP; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_NOOP sInit(void) { + static tagMI_NOOP sInit() { MI_NOOP state; state.init(); return state; @@ -1317,13 +1317,13 @@ typedef struct tagMI_NOOP { inline void setIdentificationNumber(const uint32_t value) { TheStructure.Common.IdentificationNumber = value; } - inline uint32_t getIdentificationNumber(void) const { + inline uint32_t getIdentificationNumber() const { return (TheStructure.Common.IdentificationNumber); } inline void setIdentificationNumberRegisterWriteEnable(const bool value) { TheStructure.Common.IdentificationNumberRegisterWriteEnable = value; } - inline bool getIdentificationNumberRegisterWriteEnable(void) const { + inline bool getIdentificationNumberRegisterWriteEnable() const { return (TheStructure.Common.IdentificationNumberRegisterWriteEnable); } } MI_NOOP; @@ -1361,13 +1361,13 @@ typedef struct tagMI_STORE_REGISTER_MEM { MEMORYADDRESS_BYTEOFFSET = 0x8, MEMORYADDRESS_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_REGISTER_MEM sInit(void) { + static tagMI_STORE_REGISTER_MEM sInit() { MI_STORE_REGISTER_MEM state; state.init(); return state; @@ -1379,19 +1379,19 @@ typedef struct tagMI_STORE_REGISTER_MEM { inline void setAddCsMmioStartOffset(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline uint32_t getAddCsMmioStartOffset(void) const { + inline uint32_t getAddCsMmioStartOffset() const { return (TheStructure.Common.AddCsMmioStartOffset); } inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return (TheStructure.Common.PredicateEnable); } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } typedef enum tagREGISTERADDRESS { @@ -1401,7 +1401,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { inline void setRegisterAddress(const uint32_t value) { TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return (TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT); } typedef enum tagMEMORYADDRESS { @@ -1411,7 +1411,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } } MI_STORE_REGISTER_MEM; @@ -1452,7 +1452,7 @@ typedef struct tagPIPELINE_SELECT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.PipelineSelection = PIPELINE_SELECTION_3D; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_PIPELINE_SELECT; @@ -1460,7 +1460,7 @@ typedef struct tagPIPELINE_SELECT { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_SINGLE_DW; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagPIPELINE_SELECT sInit(void) { + static tagPIPELINE_SELECT sInit() { PIPELINE_SELECT state; state.init(); return state; @@ -1472,43 +1472,43 @@ typedef struct tagPIPELINE_SELECT { inline void setPipelineSelection(const PIPELINE_SELECTION value) { TheStructure.Common.PipelineSelection = value; } - inline PIPELINE_SELECTION getPipelineSelection(void) const { + inline PIPELINE_SELECTION getPipelineSelection() const { return static_cast(TheStructure.Common.PipelineSelection); } inline void setRenderSliceCommonPowerGateEnable(const bool value) { TheStructure.Common.RenderSliceCommonPowerGateEnable = value; } - inline bool getRenderSliceCommonPowerGateEnable(void) const { + inline bool getRenderSliceCommonPowerGateEnable() const { return (TheStructure.Common.RenderSliceCommonPowerGateEnable); } inline void setRenderSamplerPowerGateEnable(const bool value) { TheStructure.Common.RenderSamplerPowerGateEnable = value; } - inline bool getRenderSamplerPowerGateEnable(void) const { + inline bool getRenderSamplerPowerGateEnable() const { return (TheStructure.Common.RenderSamplerPowerGateEnable); } inline void setMediaSamplerDopClockGateEnable(const bool value) { TheStructure.Common.MediaSamplerDopClockGateEnable = value; } - inline bool getMediaSamplerDopClockGateEnable(void) const { + inline bool getMediaSamplerDopClockGateEnable() const { return (TheStructure.Common.MediaSamplerDopClockGateEnable); } inline void setForceMediaAwake(const bool value) { TheStructure.Common.ForceMediaAwake = value; } - inline bool getForceMediaAwake(void) const { + inline bool getForceMediaAwake() const { return (TheStructure.Common.ForceMediaAwake); } inline void setMediaSamplerPowerClockGateDisable(const uint32_t value) { TheStructure.Common.MediaSamplerPowerClockGateDisable = value; } - inline uint32_t getMediaSamplerPowerClockGateDisable(void) const { + inline uint32_t getMediaSamplerPowerClockGateDisable() const { return (TheStructure.Common.MediaSamplerPowerClockGateDisable); } inline void setMaskBits(const uint32_t value) { TheStructure.Common.MaskBits = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return (TheStructure.Common.MaskBits); } } PIPELINE_SELECT; @@ -1598,7 +1598,7 @@ typedef struct tagPIPE_CONTROL { ADDRESSHIGH_BYTEOFFSET = 0xc, ADDRESSHIGH_INDEX = 0x3, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_PIPE_CONTROL; @@ -1610,7 +1610,7 @@ typedef struct tagPIPE_CONTROL { TheStructure.Common.LriPostSyncOperation = LRI_POST_SYNC_OPERATION_NO_LRI_OPERATION; TheStructure.Common.DestinationAddressType = DESTINATION_ADDRESS_TYPE_PPGTT; } - static tagPIPE_CONTROL sInit(void) { + static tagPIPE_CONTROL sInit() { PIPE_CONTROL state; state.init(); return state; @@ -1622,157 +1622,157 @@ typedef struct tagPIPE_CONTROL { inline void setDepthCacheFlushEnable(const bool value) { TheStructure.Common.DepthCacheFlushEnable = value; } - inline bool getDepthCacheFlushEnable(void) const { + inline bool getDepthCacheFlushEnable() const { return (TheStructure.Common.DepthCacheFlushEnable); } inline void setStallAtPixelScoreboard(const bool value) { TheStructure.Common.StallAtPixelScoreboard = value; } - inline bool getStallAtPixelScoreboard(void) const { + inline bool getStallAtPixelScoreboard() const { return (TheStructure.Common.StallAtPixelScoreboard); } inline void setStateCacheInvalidationEnable(const bool value) { TheStructure.Common.StateCacheInvalidationEnable = value; } - inline bool getStateCacheInvalidationEnable(void) const { + inline bool getStateCacheInvalidationEnable() const { return (TheStructure.Common.StateCacheInvalidationEnable); } inline void setConstantCacheInvalidationEnable(const bool value) { TheStructure.Common.ConstantCacheInvalidationEnable = value; } - inline bool getConstantCacheInvalidationEnable(void) const { + inline bool getConstantCacheInvalidationEnable() const { return (TheStructure.Common.ConstantCacheInvalidationEnable); } inline void setVfCacheInvalidationEnable(const bool value) { TheStructure.Common.VfCacheInvalidationEnable = value; } - inline bool getVfCacheInvalidationEnable(void) const { + inline bool getVfCacheInvalidationEnable() const { return (TheStructure.Common.VfCacheInvalidationEnable); } inline void setDcFlushEnable(const bool value) { TheStructure.Common.DcFlushEnable = value; } - inline bool getDcFlushEnable(void) const { + inline bool getDcFlushEnable() const { return (TheStructure.Common.DcFlushEnable); } inline void setProtectedMemoryApplicationId(const uint32_t value) { TheStructure.Common.ProtectedMemoryApplicationId = value; } - inline uint32_t getProtectedMemoryApplicationId(void) const { + inline uint32_t getProtectedMemoryApplicationId() const { return (TheStructure.Common.ProtectedMemoryApplicationId); } inline void setPipeControlFlushEnable(const bool value) { TheStructure.Common.PipeControlFlushEnable = value; } - inline bool getPipeControlFlushEnable(void) const { + inline bool getPipeControlFlushEnable() const { return (TheStructure.Common.PipeControlFlushEnable); } inline void setNotifyEnable(const bool value) { TheStructure.Common.NotifyEnable = value; } - inline bool getNotifyEnable(void) const { + inline bool getNotifyEnable() const { return (TheStructure.Common.NotifyEnable); } inline void setIndirectStatePointersDisable(const bool value) { TheStructure.Common.IndirectStatePointersDisable = value; } - inline bool getIndirectStatePointersDisable(void) const { + inline bool getIndirectStatePointersDisable() const { return (TheStructure.Common.IndirectStatePointersDisable); } inline void setTextureCacheInvalidationEnable(const bool value) { TheStructure.Common.TextureCacheInvalidationEnable = value; } - inline bool getTextureCacheInvalidationEnable(void) const { + inline bool getTextureCacheInvalidationEnable() const { return (TheStructure.Common.TextureCacheInvalidationEnable); } inline void setInstructionCacheInvalidateEnable(const bool value) { TheStructure.Common.InstructionCacheInvalidateEnable = value; } - inline bool getInstructionCacheInvalidateEnable(void) const { + inline bool getInstructionCacheInvalidateEnable() const { return (TheStructure.Common.InstructionCacheInvalidateEnable); } inline void setRenderTargetCacheFlushEnable(const bool value) { TheStructure.Common.RenderTargetCacheFlushEnable = value; } - inline bool getRenderTargetCacheFlushEnable(void) const { + inline bool getRenderTargetCacheFlushEnable() const { return (TheStructure.Common.RenderTargetCacheFlushEnable); } inline void setDepthStallEnable(const bool value) { TheStructure.Common.DepthStallEnable = value; } - inline bool getDepthStallEnable(void) const { + inline bool getDepthStallEnable() const { return (TheStructure.Common.DepthStallEnable); } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setGenericMediaStateClear(const bool value) { TheStructure.Common.GenericMediaStateClear = value; } - inline bool getGenericMediaStateClear(void) const { + inline bool getGenericMediaStateClear() const { return (TheStructure.Common.GenericMediaStateClear); } inline void setPsdSyncEnable(const bool value) { TheStructure.Common.PsdSyncEnable = value; } - inline bool getPsdSyncEnable(void) const { + inline bool getPsdSyncEnable() const { return (TheStructure.Common.PsdSyncEnable); } inline void setTlbInvalidate(const uint32_t value) { TheStructure.Common.TlbInvalidate = value; } - inline uint32_t getTlbInvalidate(void) const { + inline uint32_t getTlbInvalidate() const { return (TheStructure.Common.TlbInvalidate); } inline void setGlobalSnapshotCountReset(const GLOBAL_SNAPSHOT_COUNT_RESET value) { TheStructure.Common.GlobalSnapshotCountReset = value; } - inline GLOBAL_SNAPSHOT_COUNT_RESET getGlobalSnapshotCountReset(void) const { + inline GLOBAL_SNAPSHOT_COUNT_RESET getGlobalSnapshotCountReset() const { return static_cast(TheStructure.Common.GlobalSnapshotCountReset); } inline void setCommandStreamerStallEnable(const uint32_t value) { TheStructure.Common.CommandStreamerStallEnable = value; } - inline uint32_t getCommandStreamerStallEnable(void) const { + inline uint32_t getCommandStreamerStallEnable() const { return (TheStructure.Common.CommandStreamerStallEnable); } inline void setStoreDataIndex(const uint32_t value) { TheStructure.Common.StoreDataIndex = value; } - inline uint32_t getStoreDataIndex(void) const { + inline uint32_t getStoreDataIndex() const { return (TheStructure.Common.StoreDataIndex); } inline void setLriPostSyncOperation(const LRI_POST_SYNC_OPERATION value) { TheStructure.Common.LriPostSyncOperation = value; } - inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation(void) const { + inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation() const { return static_cast(TheStructure.Common.LriPostSyncOperation); } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } inline void setFlushLlc(const bool value) { TheStructure.Common.FlushLlc = value; } - inline bool getFlushLlc(void) const { + inline bool getFlushLlc() const { return (TheStructure.Common.FlushLlc); } inline void setProtectedMemoryDisable(const uint32_t value) { TheStructure.Common.ProtectedMemoryDisable = value; } - inline uint32_t getProtectedMemoryDisable(void) const { + inline uint32_t getProtectedMemoryDisable() const { return (TheStructure.Common.ProtectedMemoryDisable); } inline void setTileCacheFlushEnable(const uint32_t value) { TheStructure.Common.TileCacheFlushEnable = value; } - inline uint32_t getTileCacheFlushEnable(void) const { + inline uint32_t getTileCacheFlushEnable() const { return (TheStructure.Common.TileCacheFlushEnable); } typedef enum tagADDRESS { @@ -1782,19 +1782,19 @@ typedef struct tagPIPE_CONTROL { inline void setAddress(const uint32_t value) { TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint32_t getAddress(void) const { + inline uint32_t getAddress() const { return (TheStructure.Common.Address << ADDRESS_BIT_SHIFT); } inline void setAddressHigh(const uint32_t value) { TheStructure.Common.AddressHigh = value; } - inline uint32_t getAddressHigh(void) const { + inline uint32_t getAddressHigh() const { return (TheStructure.Common.AddressHigh); } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return (TheStructure.Common.ImmediateData); } } PIPE_CONTROL; @@ -2501,7 +2501,7 @@ typedef struct tagRENDER_SURFACE_STATE { CLEARDEPTHADDRESSHIGH_BYTEOFFSET = 0x34, CLEARDEPTHADDRESSHIGH_INDEX = 0xd, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MediaBoundaryPixelMode = MEDIA_BOUNDARY_PIXEL_MODE_NORMAL_MODE; TheStructure.Common.RenderCacheReadWriteMode = RENDER_CACHE_READ_WRITE_MODE_WRITE_ONLY_CACHE; @@ -2527,7 +2527,7 @@ typedef struct tagRENDER_SURFACE_STATE { TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma = HALF_PITCH_FOR_CHROMA_DISABLE; TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsEnable.ClearColorConversionEnable = CLEAR_COLOR_CONVERSION_ENABLE_ENABLE; } - static tagRENDER_SURFACE_STATE sInit(void) { + static tagRENDER_SURFACE_STATE sInit() { RENDER_SURFACE_STATE state; state.init(); return state; @@ -2539,73 +2539,73 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setMediaBoundaryPixelMode(const MEDIA_BOUNDARY_PIXEL_MODE value) { TheStructure.Common.MediaBoundaryPixelMode = value; } - inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode(void) const { + inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode() const { return static_cast(TheStructure.Common.MediaBoundaryPixelMode); } inline void setRenderCacheReadWriteMode(const RENDER_CACHE_READ_WRITE_MODE value) { TheStructure.Common.RenderCacheReadWriteMode = value; } - inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode(void) const { + inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode() const { return static_cast(TheStructure.Common.RenderCacheReadWriteMode); } inline void setSamplerL2OutOfOrderModeDisable(const bool value) { TheStructure.Common.SamplerL2OutOfOrderModeDisable = value; } - inline bool getSamplerL2OutOfOrderModeDisable(void) const { + inline bool getSamplerL2OutOfOrderModeDisable() const { return (TheStructure.Common.SamplerL2OutOfOrderModeDisable); } inline void setVerticalLineStrideOffset(const uint32_t value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline uint32_t getVerticalLineStrideOffset(void) const { + inline uint32_t getVerticalLineStrideOffset() const { return (TheStructure.Common.VerticalLineStrideOffset); } inline void setVerticalLineStride(const uint32_t value) { TheStructure.Common.VerticalLineStride = value; } - inline uint32_t getVerticalLineStride(void) const { + inline uint32_t getVerticalLineStride() const { return (TheStructure.Common.VerticalLineStride); } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setSurfaceHorizontalAlignment(const SURFACE_HORIZONTAL_ALIGNMENT value) { TheStructure.Common.SurfaceHorizontalAlignment = value; } - inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment(void) const { + inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment() const { return static_cast(TheStructure.Common.SurfaceHorizontalAlignment); } inline void setSurfaceVerticalAlignment(const SURFACE_VERTICAL_ALIGNMENT value) { TheStructure.Common.SurfaceVerticalAlignment = value; } - inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment(void) const { + inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment() const { return static_cast(TheStructure.Common.SurfaceVerticalAlignment); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setAstcEnable(const bool value) { TheStructure.Common.Astc_Enable = value; } - inline bool getAstcEnable(void) const { + inline bool getAstcEnable() const { return (TheStructure.Common.Astc_Enable); } inline void setSurfaceArray(const bool value) { TheStructure.Common.SurfaceArray = value; } - inline bool getSurfaceArray(void) const { + inline bool getSurfaceArray() const { return (TheStructure.Common.SurfaceArray); } inline void setSurfaceType(const SURFACE_TYPE value) { TheStructure.Common.SurfaceType = value; } - inline SURFACE_TYPE getSurfaceType(void) const { + inline SURFACE_TYPE getSurfaceType() const { return static_cast(TheStructure.Common.SurfaceType); } typedef enum tagSURFACEQPITCH { @@ -2615,44 +2615,44 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setSurfaceQpitch(const uint32_t value) { TheStructure.Common.SurfaceQpitch = value >> SURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getSurfaceQpitch(void) const { + inline uint32_t getSurfaceQpitch() const { return (TheStructure.Common.SurfaceQpitch << SURFACEQPITCH_BIT_SHIFT); } inline void setSampleTapDiscardDisable(const SAMPLE_TAP_DISCARD_DISABLE value) { TheStructure.Common.SampleTapDiscardDisable = value; } - inline SAMPLE_TAP_DISCARD_DISABLE getSampleTapDiscardDisable(void) const { + inline SAMPLE_TAP_DISCARD_DISABLE getSampleTapDiscardDisable() const { return static_cast(TheStructure.Common.SampleTapDiscardDisable); } inline void setCornerTexelMode(const CORNER_TEXEL_MODE value) { TheStructure.Common.CornerTexelMode = value; } - inline CORNER_TEXEL_MODE getCornerTexelMode(void) const { + inline CORNER_TEXEL_MODE getCornerTexelMode() const { return static_cast(TheStructure.Common.CornerTexelMode); } inline void setBaseMipLevel(const uint32_t value) { TheStructure.Common.BaseMipLevel = value; } - inline uint32_t getBaseMipLevel(void) const { + inline uint32_t getBaseMipLevel() const { return (TheStructure.Common.BaseMipLevel); } inline void setMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.MemoryObjectControlState_Reserved = value; } - inline uint32_t getMemoryObjectControlStateReserved(void) const { + inline uint32_t getMemoryObjectControlStateReserved() const { return (TheStructure.Common.MemoryObjectControlState_Reserved); } inline void setMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.MemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlState_IndexToMocsTables << 1); } inline void setMemoryObjectControlState(const uint32_t value) { TheStructure.Common.MemoryObjectControlState_Reserved = value; TheStructure.Common.MemoryObjectControlState_IndexToMocsTables = (value >> 1); } - inline uint32_t getMemoryObjectControlState(void) const { + inline uint32_t getMemoryObjectControlState() const { uint32_t mocs = TheStructure.Common.MemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.MemoryObjectControlState_IndexToMocsTables << 1); return (mocs); @@ -2660,79 +2660,79 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setEnableUnormPathInColorPipe(const uint32_t value) { TheStructure.Common.EnableUnormPathInColorPipe = value; } - inline uint32_t getEnableUnormPathInColorPipe(void) const { + inline uint32_t getEnableUnormPathInColorPipe() const { return (TheStructure.Common.EnableUnormPathInColorPipe); } inline void setWidth(const uint32_t value) { TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return (TheStructure.Common.Width + 1); } inline void setHeight(const uint32_t value) { TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return (TheStructure.Common.Height + 1); } inline void setSurfacePitch(const uint32_t value) { TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return (TheStructure.Common.SurfacePitch + 1); } inline void setStandardTilingModeExtensions(const STANDARD_TILING_MODE_EXTENSIONS value) { TheStructure.Common.StandardTilingModeExtensions = value; } - inline STANDARD_TILING_MODE_EXTENSIONS getStandardTilingModeExtensions(void) const { + inline STANDARD_TILING_MODE_EXTENSIONS getStandardTilingModeExtensions() const { return static_cast(TheStructure.Common.StandardTilingModeExtensions); } inline void setTileAddressMappingMode(const TILE_ADDRESS_MAPPING_MODE value) { TheStructure.Common.TileAddressMappingMode = value; } - inline TILE_ADDRESS_MAPPING_MODE getTileAddressMappingMode(void) const { + inline TILE_ADDRESS_MAPPING_MODE getTileAddressMappingMode() const { return static_cast(TheStructure.Common.TileAddressMappingMode); } inline void setDepth(const uint32_t value) { TheStructure.Common.Depth = value - 1; } - inline uint32_t getDepth(void) const { + inline uint32_t getDepth() const { return (TheStructure.Common.Depth + 1); } inline void setMipCountLod(const uint32_t value) { TheStructure.Common.MipCountLod = value; } - inline uint32_t getMipCountLod(void) const { + inline uint32_t getMipCountLod() const { return (TheStructure.Common.MipCountLod); } inline void setSurfaceMinLod(const uint32_t value) { TheStructure.Common.SurfaceMinLod = value; } - inline uint32_t getSurfaceMinLod(void) const { + inline uint32_t getSurfaceMinLod() const { return (TheStructure.Common.SurfaceMinLod); } inline void setMipTailStartLod(const uint32_t value) { TheStructure.Common.MipTailStartLod = value; } - inline uint32_t getMipTailStartLod(void) const { + inline uint32_t getMipTailStartLod() const { return (TheStructure.Common.MipTailStartLod); } inline void setCoherencyType(const COHERENCY_TYPE value) { TheStructure.Common.CoherencyType = value; } - inline COHERENCY_TYPE getCoherencyType(void) const { + inline COHERENCY_TYPE getCoherencyType() const { return static_cast(TheStructure.Common.CoherencyType); } inline void setTiledResourceMode(const TILED_RESOURCE_MODE value) { TheStructure.Common.TiledResourceMode = value; } - inline TILED_RESOURCE_MODE getTiledResourceMode(void) const { + inline TILED_RESOURCE_MODE getTiledResourceMode() const { return static_cast(TheStructure.Common.TiledResourceMode); } inline void setEwaDisableForCube(const bool value) { TheStructure.Common.EwaDisableForCube = value; } - inline bool getEwaDisableForCube(void) const { + inline bool getEwaDisableForCube() const { return (TheStructure.Common.EwaDisableForCube); } typedef enum tagYOFFSET { @@ -2742,7 +2742,7 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setYOffset(const uint32_t value) { TheStructure.Common.YOffset = value >> YOFFSET_BIT_SHIFT; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return (TheStructure.Common.YOffset << YOFFSET_BIT_SHIFT); } typedef enum tagXOFFSET { @@ -2752,163 +2752,163 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setXOffset(const uint32_t value) { TheStructure.Common.XOffset = value >> XOFFSET_BIT_SHIFT; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return (TheStructure.Common.XOffset << XOFFSET_BIT_SHIFT); } inline void setYuvInterpolationEnable(const bool value) { TheStructure.Common.YuvInterpolationEnable = value; } - inline bool getYuvInterpolationEnable(void) const { + inline bool getYuvInterpolationEnable() const { return (TheStructure.Common.YuvInterpolationEnable); } inline void setResourceMinLod(const uint32_t value) { TheStructure.Common.ResourceMinLod = value; } - inline uint32_t getResourceMinLod(void) const { + inline uint32_t getResourceMinLod() const { return (TheStructure.Common.ResourceMinLod); } inline void setShaderChannelSelectAlpha(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectAlpha = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha() const { return static_cast(TheStructure.Common.ShaderChannelSelectAlpha); } inline void setShaderChannelSelectBlue(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectBlue = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue() const { return static_cast(TheStructure.Common.ShaderChannelSelectBlue); } inline void setShaderChannelSelectGreen(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectGreen = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen() const { return static_cast(TheStructure.Common.ShaderChannelSelectGreen); } inline void setShaderChannelSelectRed(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectRed = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed() const { return static_cast(TheStructure.Common.ShaderChannelSelectRed); } inline void setMemoryCompressionEnable(const bool value) { TheStructure.Common.MemoryCompressionEnable = value; } - inline bool getMemoryCompressionEnable(void) const { + inline bool getMemoryCompressionEnable() const { return (TheStructure.Common.MemoryCompressionEnable); } inline void setMemoryCompressionMode(const MEMORY_COMPRESSION_MODE value) { TheStructure.Common.MemoryCompressionMode = value; } - inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode(void) const { + inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode() const { return static_cast(TheStructure.Common.MemoryCompressionMode); } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddress = value; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return (TheStructure.Common.SurfaceBaseAddress); } inline void setQuiltWidth(const uint64_t value) { TheStructure.Common.QuiltWidth = value; } - inline uint64_t getQuiltWidth(void) const { + inline uint64_t getQuiltWidth() const { return (TheStructure.Common.QuiltWidth); } inline void setQuiltHeight(const uint64_t value) { TheStructure.Common.QuiltHeight = value; } - inline uint64_t getQuiltHeight(void) const { + inline uint64_t getQuiltHeight() const { return (TheStructure.Common.QuiltHeight); } inline void setClearValueAddressEnable(const bool value) { TheStructure.Common.ClearValueAddressEnable = value; } - inline bool getClearValueAddressEnable(void) const { + inline bool getClearValueAddressEnable() const { return (TheStructure.Common.ClearValueAddressEnable); } inline void setCubeFaceEnablePositiveZ(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveZ = value; } - inline bool getCubeFaceEnablePositiveZ(void) const { + inline bool getCubeFaceEnablePositiveZ() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveZ); } inline void setCubeFaceEnableNegativeZ(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeZ = value; } - inline bool getCubeFaceEnableNegativeZ(void) const { + inline bool getCubeFaceEnableNegativeZ() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeZ); } inline void setCubeFaceEnablePositiveY(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveY = value; } - inline bool getCubeFaceEnablePositiveY(void) const { + inline bool getCubeFaceEnablePositiveY() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveY); } inline void setCubeFaceEnableNegativeY(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeY = value; } - inline bool getCubeFaceEnableNegativeY(void) const { + inline bool getCubeFaceEnableNegativeY() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeY); } inline void setCubeFaceEnablePositiveX(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveX = value; } - inline bool getCubeFaceEnablePositiveX(void) const { + inline bool getCubeFaceEnablePositiveX() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveX); } inline void setCubeFaceEnableNegativeX(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeX = value; } - inline bool getCubeFaceEnableNegativeX(void) const { + inline bool getCubeFaceEnableNegativeX() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeX); } inline void setMultisamplePositionPaletteIndex(const uint32_t value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisamplePositionPaletteIndex = value; } - inline uint32_t getMultisamplePositionPaletteIndex(void) const { + inline uint32_t getMultisamplePositionPaletteIndex() const { return (TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisamplePositionPaletteIndex); } inline void setNumberOfMultisamples(const NUMBER_OF_MULTISAMPLES value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.NumberOfMultisamples = value; } - inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples(void) const { + inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples() const { return static_cast(TheStructure.SurfaceTypeIsnotSurftype_Strbuf.NumberOfMultisamples); } inline void setMultisampledSurfaceStorageFormat(const MULTISAMPLED_SURFACE_STORAGE_FORMAT value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisampledSurfaceStorageFormat = value; } - inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat(void) const { + inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat() const { return static_cast(TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisampledSurfaceStorageFormat); } inline void setRenderTargetViewExtent(const uint32_t value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetViewExtent = value - 1; } - inline uint32_t getRenderTargetViewExtent(void) const { + inline uint32_t getRenderTargetViewExtent() const { return (TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetViewExtent + 1); } inline void setMinimumArrayElement(const uint32_t value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MinimumArrayElement = value; } - inline uint32_t getMinimumArrayElement(void) const { + inline uint32_t getMinimumArrayElement() const { return (TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MinimumArrayElement); } inline void setRenderTargetAndSampleUnormRotation(const RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetAndSampleUnormRotation = value; } - inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation(void) const { + inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation() const { return static_cast(TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetAndSampleUnormRotation); } inline void setAuxiliarySurfaceMode(const AUXILIARY_SURFACE_MODE value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode = value; } - inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode(void) const { + inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode() const { return static_cast(TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode); } inline void setAuxiliarySurfacePitch(const uint32_t value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch = value - 1; } - inline uint32_t getAuxiliarySurfacePitch(void) const { + inline uint32_t getAuxiliarySurfacePitch() const { return (TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch + 1); } typedef enum tagAUXILIARYSURFACEQPITCH { @@ -2918,43 +2918,43 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setAuxiliarySurfaceQpitch(const uint32_t value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch = value >> AUXILIARYSURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getAuxiliarySurfaceQpitch(void) const { + inline uint32_t getAuxiliarySurfaceQpitch() const { return (TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch << AUXILIARYSURFACEQPITCH_BIT_SHIFT); } inline void setYOffsetForUOrUvPlane(const uint32_t value) { TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane = value; } - inline uint32_t getYOffsetForUOrUvPlane(void) const { + inline uint32_t getYOffsetForUOrUvPlane() const { return (TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane); } inline void setXOffsetForUOrUvPlane(const uint32_t value) { TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane = value; } - inline uint32_t getXOffsetForUOrUvPlane(void) const { + inline uint32_t getXOffsetForUOrUvPlane() const { return (TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane); } inline void setHalfPitchForChroma(const HALF_PITCH_FOR_CHROMA value) { TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma = value; } - inline HALF_PITCH_FOR_CHROMA getHalfPitchForChroma(void) const { + inline HALF_PITCH_FOR_CHROMA getHalfPitchForChroma() const { return static_cast(TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma); } inline void setSeparateUvPlaneEnable(const bool value) { TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable = value; } - inline bool getSeparateUvPlaneEnable(void) const { + inline bool getSeparateUvPlaneEnable() const { return (TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable); } inline void setYOffsetForVPlane(const uint64_t value) { TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane = value; } - inline uint64_t getYOffsetForVPlane(void) const { + inline uint64_t getYOffsetForVPlane() const { return (TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane); } inline void setXOffsetForVPlane(const uint64_t value) { TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane = value; } - inline uint64_t getXOffsetForVPlane(void) const { + inline uint64_t getXOffsetForVPlane() const { return (TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane); } typedef enum tagAUXILIARYSURFACEBASEADDRESS { @@ -2964,25 +2964,25 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setAuxiliarySurfaceBaseAddress(const uint64_t value) { TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress = value >> AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getAuxiliarySurfaceBaseAddress(void) const { + inline uint64_t getAuxiliarySurfaceBaseAddress() const { return (TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress << AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT); } inline void setAuxiliaryTableIndexForMediaCompressedSurface(const uint64_t value) { TheStructure.MemoryCompressionEnableIs1.AuxiliaryTableIndexForMediaCompressedSurface = value; } - inline uint64_t getAuxiliaryTableIndexForMediaCompressedSurface(void) const { + inline uint64_t getAuxiliaryTableIndexForMediaCompressedSurface() const { return (TheStructure.MemoryCompressionEnableIs1.AuxiliaryTableIndexForMediaCompressedSurface); } inline void setClearColorConversionEnable(const CLEAR_COLOR_CONVERSION_ENABLE value) { TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsEnable.ClearColorConversionEnable = value; } - inline CLEAR_COLOR_CONVERSION_ENABLE getClearColorConversionEnable(void) const { + inline CLEAR_COLOR_CONVERSION_ENABLE getClearColorConversionEnable() const { return static_cast(TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsEnable.ClearColorConversionEnable); } inline void setClearColorAddressHigh(const uint32_t value) { TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsEnable.ClearColorAddressHigh = value; } - inline uint32_t getClearColorAddressHigh(void) const { + inline uint32_t getClearColorAddressHigh() const { return (TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsEnable.ClearColorAddressHigh); } typedef enum tagCLEARDEPTHADDRESSLOW { @@ -2992,19 +2992,19 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setClearDepthAddressLow(const uint32_t value) { TheStructure._AuxiliarySurfaceModeIsAux_HizAnd_ClearValueAddressEnableIsEnable.ClearDepthAddressLow = value >> CLEARDEPTHADDRESSLOW_BIT_SHIFT; } - inline uint32_t getClearDepthAddressLow(void) const { + inline uint32_t getClearDepthAddressLow() const { return (TheStructure._AuxiliarySurfaceModeIsAux_HizAnd_ClearValueAddressEnableIsEnable.ClearDepthAddressLow << CLEARDEPTHADDRESSLOW_BIT_SHIFT); } inline void setClearDepthAddressHigh(const uint32_t value) { TheStructure._AuxiliarySurfaceModeIsAux_HizAnd_ClearValueAddressEnableIsEnable.ClearDepthAddressHigh = value; } - inline uint32_t getClearDepthAddressHigh(void) const { + inline uint32_t getClearDepthAddressHigh() const { return (TheStructure._AuxiliarySurfaceModeIsAux_HizAnd_ClearValueAddressEnableIsEnable.ClearDepthAddressHigh); } inline void setRedClearColor(const uint32_t value) { TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EOrAuxiliarySurfaceModeIsAux_HizAndClearValueAddressEnableIsDisable.RedClearColor = value; } - inline uint32_t getRedClearColor(void) const { + inline uint32_t getRedClearColor() const { return (TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EOrAuxiliarySurfaceModeIsAux_HizAndClearValueAddressEnableIsDisable.RedClearColor); } typedef enum tagCLEARCOLORADDRESS { @@ -3014,25 +3014,25 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setClearColorAddress(const uint32_t value) { TheStructure.ClearValueAddressEnableIsEnable.ClearColorAddress = value >> CLEARCOLORADDRESS_BIT_SHIFT; } - inline uint32_t getClearColorAddress(void) const { + inline uint32_t getClearColorAddress() const { return (TheStructure.ClearValueAddressEnableIsEnable.ClearColorAddress << CLEARCOLORADDRESS_BIT_SHIFT); } inline void setGreenClearColor(const uint32_t value) { TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsDisable.GreenClearColor = value; } - inline uint32_t getGreenClearColor(void) const { + inline uint32_t getGreenClearColor() const { return (TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsDisable.GreenClearColor); } inline void setBlueClearColor(const uint32_t value) { TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsDisable.BlueClearColor = value; } - inline uint32_t getBlueClearColor(void) const { + inline uint32_t getBlueClearColor() const { return (TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsDisable.BlueClearColor); } inline void setAlphaClearColor(const uint32_t value) { TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsDisable.AlphaClearColor = value; } - inline uint32_t getAlphaClearColor(void) const { + inline uint32_t getAlphaClearColor() const { return (TheStructure.__AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_EAndClearValueAddressEnableIsDisable.AlphaClearColor); } } RENDER_SURFACE_STATE; @@ -3181,7 +3181,7 @@ typedef struct tagSAMPLER_STATE { REDUCTION_TYPE_MINIMUM = 0x2, REDUCTION_TYPE_MAXIMUM = 0x3, } REDUCTION_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.LodAlgorithm = LOD_ALGORITHM_LEGACY; TheStructure.Common.MinModeFilter = MIN_MODE_FILTER_NEAREST; @@ -3204,7 +3204,7 @@ typedef struct tagSAMPLER_STATE { TheStructure.Common.MaximumAnisotropy = MAXIMUM_ANISOTROPY_RATIO_21; TheStructure.Common.ReductionType = REDUCTION_TYPE_STD_FILTER; } - static tagSAMPLER_STATE sInit(void) { + static tagSAMPLER_STATE sInit() { SAMPLER_STATE state; state.init(); return state; @@ -3216,127 +3216,127 @@ typedef struct tagSAMPLER_STATE { inline void setLodAlgorithm(const LOD_ALGORITHM value) { TheStructure.Common.LodAlgorithm = value; } - inline LOD_ALGORITHM getLodAlgorithm(void) const { + inline LOD_ALGORITHM getLodAlgorithm() const { return static_cast(TheStructure.Common.LodAlgorithm); } inline void setTextureLodBias(const uint32_t value) { TheStructure.Common.TextureLodBias = value; } - inline uint32_t getTextureLodBias(void) const { + inline uint32_t getTextureLodBias() const { return (TheStructure.Common.TextureLodBias); } inline void setMinModeFilter(const MIN_MODE_FILTER value) { TheStructure.Common.MinModeFilter = value; } - inline MIN_MODE_FILTER getMinModeFilter(void) const { + inline MIN_MODE_FILTER getMinModeFilter() const { return static_cast(TheStructure.Common.MinModeFilter); } inline void setMagModeFilter(const MAG_MODE_FILTER value) { TheStructure.Common.MagModeFilter = value; } - inline MAG_MODE_FILTER getMagModeFilter(void) const { + inline MAG_MODE_FILTER getMagModeFilter() const { return static_cast(TheStructure.Common.MagModeFilter); } inline void setMipModeFilter(const MIP_MODE_FILTER value) { TheStructure.Common.MipModeFilter = value; } - inline MIP_MODE_FILTER getMipModeFilter(void) const { + inline MIP_MODE_FILTER getMipModeFilter() const { return static_cast(TheStructure.Common.MipModeFilter); } inline void setCoarseLodQualityMode(const COARSE_LOD_QUALITY_MODE value) { TheStructure.Common.CoarseLodQualityMode = value; } - inline COARSE_LOD_QUALITY_MODE getCoarseLodQualityMode(void) const { + inline COARSE_LOD_QUALITY_MODE getCoarseLodQualityMode() const { return static_cast(TheStructure.Common.CoarseLodQualityMode); } inline void setLodPreclampMode(const LOD_PRECLAMP_MODE value) { TheStructure.Common.LodPreclampMode = value; } - inline LOD_PRECLAMP_MODE getLodPreclampMode(void) const { + inline LOD_PRECLAMP_MODE getLodPreclampMode() const { return static_cast(TheStructure.Common.LodPreclampMode); } inline void setTextureBorderColorMode(const TEXTURE_BORDER_COLOR_MODE value) { TheStructure.Common.TextureBorderColorMode = value; } - inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode(void) const { + inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode() const { return static_cast(TheStructure.Common.TextureBorderColorMode); } inline void setCpsLodCompensationEnable(const bool value) { TheStructure.Common.CpsLodCompensationEnable = value; } - inline bool getCpsLodCompensationEnable(void) const { + inline bool getCpsLodCompensationEnable() const { return (TheStructure.Common.CpsLodCompensationEnable); } inline void setSamplerDisable(const bool value) { TheStructure.Common.SamplerDisable = value; } - inline bool getSamplerDisable(void) const { + inline bool getSamplerDisable() const { return (TheStructure.Common.SamplerDisable); } inline void setCubeSurfaceControlMode(const CUBE_SURFACE_CONTROL_MODE value) { TheStructure.Common.CubeSurfaceControlMode = value; } - inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode(void) const { + inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode() const { return static_cast(TheStructure.Common.CubeSurfaceControlMode); } inline void setShadowFunction(const SHADOW_FUNCTION value) { TheStructure.Common.ShadowFunction = value; } - inline SHADOW_FUNCTION getShadowFunction(void) const { + inline SHADOW_FUNCTION getShadowFunction() const { return static_cast(TheStructure.Common.ShadowFunction); } inline void setChromakeyMode(const CHROMAKEY_MODE value) { TheStructure.Common.ChromakeyMode = value; } - inline CHROMAKEY_MODE getChromakeyMode(void) const { + inline CHROMAKEY_MODE getChromakeyMode() const { return static_cast(TheStructure.Common.ChromakeyMode); } inline void setChromakeyIndex(const uint32_t value) { TheStructure.Common.ChromakeyIndex = value; } - inline uint32_t getChromakeyIndex(void) const { + inline uint32_t getChromakeyIndex() const { return (TheStructure.Common.ChromakeyIndex); } inline void setChromakeyEnable(const bool value) { TheStructure.Common.ChromakeyEnable = value; } - inline bool getChromakeyEnable(void) const { + inline bool getChromakeyEnable() const { return (TheStructure.Common.ChromakeyEnable); } inline void setMaxLod(const uint32_t value) { TheStructure.Common.MaxLod = value; } - inline uint32_t getMaxLod(void) const { + inline uint32_t getMaxLod() const { return (TheStructure.Common.MaxLod); } inline void setMinLod(const uint32_t value) { TheStructure.Common.MinLod = value; } - inline uint32_t getMinLod(void) const { + inline uint32_t getMinLod() const { return (TheStructure.Common.MinLod); } inline void setLodClampMagnificationMode(const LOD_CLAMP_MAGNIFICATION_MODE value) { TheStructure.Common.LodClampMagnificationMode = value; } - inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode(void) const { + inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode() const { return static_cast(TheStructure.Common.LodClampMagnificationMode); } inline void setSrgbDecode(const SRGB_DECODE value) { TheStructure.Common.SrgbDecode = value; } - inline SRGB_DECODE getSrgbDecode(void) const { + inline SRGB_DECODE getSrgbDecode() const { return static_cast(TheStructure.Common.SrgbDecode); } inline void setReturnFilterWeightForNullTexels(const RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS value) { TheStructure.Common.ReturnFilterWeightForNullTexels = value; } - inline RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS getReturnFilterWeightForNullTexels(void) const { + inline RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS getReturnFilterWeightForNullTexels() const { return static_cast(TheStructure.Common.ReturnFilterWeightForNullTexels); } inline void setReturnFilterWeightForBorderTexels(const RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS value) { TheStructure.Common.ReturnFilterWeightForBorderTexels = value; } - inline RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS getReturnFilterWeightForBorderTexels(void) const { + inline RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS getReturnFilterWeightForBorderTexels() const { return static_cast(TheStructure.Common.ReturnFilterWeightForBorderTexels); } typedef enum tagINDIRECTSTATEPOINTER { @@ -3347,91 +3347,91 @@ typedef struct tagSAMPLER_STATE { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.IndirectStatePointer = (uint32_t)value >> INDIRECTSTATEPOINTER_BIT_SHIFT; } - inline uint32_t getIndirectStatePointer(void) const { + inline uint32_t getIndirectStatePointer() const { return (TheStructure.Common.IndirectStatePointer << INDIRECTSTATEPOINTER_BIT_SHIFT); } inline void setTczAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TczAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTczAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTczAddressControlMode() const { return static_cast(TheStructure.Common.TczAddressControlMode); } inline void setTcyAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcyAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode() const { return static_cast(TheStructure.Common.TcyAddressControlMode); } inline void setTcxAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcxAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode() const { return static_cast(TheStructure.Common.TcxAddressControlMode); } inline void setReductionTypeEnable(const bool value) { TheStructure.Common.ReductionTypeEnable = value; } - inline bool getReductionTypeEnable(void) const { + inline bool getReductionTypeEnable() const { return (TheStructure.Common.ReductionTypeEnable); } inline void setNonNormalizedCoordinateEnable(const bool value) { TheStructure.Common.Non_NormalizedCoordinateEnable = value; } - inline bool getNonNormalizedCoordinateEnable(void) const { + inline bool getNonNormalizedCoordinateEnable() const { return (TheStructure.Common.Non_NormalizedCoordinateEnable); } inline void setTrilinearFilterQuality(const TRILINEAR_FILTER_QUALITY value) { TheStructure.Common.TrilinearFilterQuality = value; } - inline TRILINEAR_FILTER_QUALITY getTrilinearFilterQuality(void) const { + inline TRILINEAR_FILTER_QUALITY getTrilinearFilterQuality() const { return static_cast(TheStructure.Common.TrilinearFilterQuality); } inline void setRAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMinFilterRoundingEnable = value; } - inline bool getRAddressMinFilterRoundingEnable(void) const { + inline bool getRAddressMinFilterRoundingEnable() const { return (TheStructure.Common.RAddressMinFilterRoundingEnable); } inline void setRAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMagFilterRoundingEnable = value; } - inline bool getRAddressMagFilterRoundingEnable(void) const { + inline bool getRAddressMagFilterRoundingEnable() const { return (TheStructure.Common.RAddressMagFilterRoundingEnable); } inline void setVAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMinFilterRoundingEnable = value; } - inline bool getVAddressMinFilterRoundingEnable(void) const { + inline bool getVAddressMinFilterRoundingEnable() const { return (TheStructure.Common.VAddressMinFilterRoundingEnable); } inline void setVAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMagFilterRoundingEnable = value; } - inline bool getVAddressMagFilterRoundingEnable(void) const { + inline bool getVAddressMagFilterRoundingEnable() const { return (TheStructure.Common.VAddressMagFilterRoundingEnable); } inline void setUAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMinFilterRoundingEnable = value; } - inline bool getUAddressMinFilterRoundingEnable(void) const { + inline bool getUAddressMinFilterRoundingEnable() const { return (TheStructure.Common.UAddressMinFilterRoundingEnable); } inline void setUAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMagFilterRoundingEnable = value; } - inline bool getUAddressMagFilterRoundingEnable(void) const { + inline bool getUAddressMagFilterRoundingEnable() const { return (TheStructure.Common.UAddressMagFilterRoundingEnable); } inline void setMaximumAnisotropy(const MAXIMUM_ANISOTROPY value) { TheStructure.Common.MaximumAnisotropy = value; } - inline MAXIMUM_ANISOTROPY getMaximumAnisotropy(void) const { + inline MAXIMUM_ANISOTROPY getMaximumAnisotropy() const { return static_cast(TheStructure.Common.MaximumAnisotropy); } inline void setReductionType(const REDUCTION_TYPE value) { TheStructure.Common.ReductionType = value; } - inline REDUCTION_TYPE getReductionType(void) const { + inline REDUCTION_TYPE getReductionType() const { return static_cast(TheStructure.Common.ReductionType); } } SAMPLER_STATE; @@ -3542,7 +3542,7 @@ typedef struct tagSTATE_BASE_ADDRESS { BINDLESSSAMPLERSTATEBASEADDRESS_BYTEOFFSET = 0x4c, BINDLESSSAMPLERSTATEBASEADDRESS_INDEX = 0x13, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_BASE_ADDRESS; @@ -3550,7 +3550,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagSTATE_BASE_ADDRESS sInit(void) { + static tagSTATE_BASE_ADDRESS sInit() { STATE_BASE_ADDRESS state; state.init(); return state; @@ -3562,19 +3562,19 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.GeneralStateBaseAddressModifyEnable = value; } - inline bool getGeneralStateBaseAddressModifyEnable(void) const { + inline bool getGeneralStateBaseAddressModifyEnable() const { return (TheStructure.Common.GeneralStateBaseAddressModifyEnable); } inline void setGeneralStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getGeneralStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved); } inline void setGeneralStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getGeneralStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagGENERALSTATEBASEADDRESS { @@ -3584,26 +3584,26 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddress(const uint64_t value) { TheStructure.Common.GeneralStateBaseAddress = value >> GENERALSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getGeneralStateBaseAddress(void) const { + inline uint64_t getGeneralStateBaseAddress() const { return (TheStructure.Common.GeneralStateBaseAddress << GENERALSTATEBASEADDRESS_BIT_SHIFT); } inline void setStatelessDataPortAccessMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved); } inline void setStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1); } inline void setStatelessDataPortAccessMemoryObjectControlState(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = (value >> 1); } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlState(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlState() const { uint32_t mocs = TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1); return (mocs); @@ -3611,19 +3611,19 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.SurfaceStateBaseAddressModifyEnable = value; } - inline bool getSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.SurfaceStateBaseAddressModifyEnable); } inline void setSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved); } inline void setSurfaceStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getSurfaceStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagSURFACESTATEBASEADDRESS { @@ -3633,25 +3633,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceStateBaseAddress = value >> SURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getSurfaceStateBaseAddress(void) const { + inline uint64_t getSurfaceStateBaseAddress() const { return (TheStructure.Common.SurfaceStateBaseAddress << SURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setDynamicStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.DynamicStateBaseAddressModifyEnable = value; } - inline bool getDynamicStateBaseAddressModifyEnable(void) const { + inline bool getDynamicStateBaseAddressModifyEnable() const { return (TheStructure.Common.DynamicStateBaseAddressModifyEnable); } inline void setDynamicStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getDynamicStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved); } inline void setDynamicStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getDynamicStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagDYNAMICSTATEBASEADDRESS { @@ -3661,25 +3661,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setDynamicStateBaseAddress(const uint64_t value) { TheStructure.Common.DynamicStateBaseAddress = value >> DYNAMICSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getDynamicStateBaseAddress(void) const { + inline uint64_t getDynamicStateBaseAddress() const { return (TheStructure.Common.DynamicStateBaseAddress << DYNAMICSTATEBASEADDRESS_BIT_SHIFT); } inline void setIndirectObjectBaseAddressModifyEnable(const bool value) { TheStructure.Common.IndirectObjectBaseAddressModifyEnable = value; } - inline bool getIndirectObjectBaseAddressModifyEnable(void) const { + inline bool getIndirectObjectBaseAddressModifyEnable() const { return (TheStructure.Common.IndirectObjectBaseAddressModifyEnable); } inline void setIndirectObjectMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.IndirectObjectMemoryObjectControlState_Reserved = value; } - inline uint64_t getIndirectObjectMemoryObjectControlStateReserved(void) const { + inline uint64_t getIndirectObjectMemoryObjectControlStateReserved() const { return (TheStructure.Common.IndirectObjectMemoryObjectControlState_Reserved); } inline void setIndirectObjectMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.IndirectObjectMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getIndirectObjectMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getIndirectObjectMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.IndirectObjectMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagINDIRECTOBJECTBASEADDRESS { @@ -3689,25 +3689,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setIndirectObjectBaseAddress(const uint64_t value) { TheStructure.Common.IndirectObjectBaseAddress = value >> INDIRECTOBJECTBASEADDRESS_BIT_SHIFT; } - inline uint64_t getIndirectObjectBaseAddress(void) const { + inline uint64_t getIndirectObjectBaseAddress() const { return (TheStructure.Common.IndirectObjectBaseAddress << INDIRECTOBJECTBASEADDRESS_BIT_SHIFT); } inline void setInstructionBaseAddressModifyEnable(const bool value) { TheStructure.Common.InstructionBaseAddressModifyEnable = value; } - inline bool getInstructionBaseAddressModifyEnable(void) const { + inline bool getInstructionBaseAddressModifyEnable() const { return (TheStructure.Common.InstructionBaseAddressModifyEnable); } inline void setInstructionMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = value; } - inline uint64_t getInstructionMemoryObjectControlStateReserved(void) const { + inline uint64_t getInstructionMemoryObjectControlStateReserved() const { return (TheStructure.Common.InstructionMemoryObjectControlState_Reserved); } inline void setInstructionMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getInstructionMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getInstructionMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables << 1); } inline void setInstructionMemoryObjectControlState(const uint32_t value) { @@ -3715,7 +3715,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = val; TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables = (val >> 1); } - inline uint32_t getInstructionMemoryObjectControlState(void) const { + inline uint32_t getInstructionMemoryObjectControlState() const { uint64_t mocs = TheStructure.Common.InstructionMemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables << 1); return static_cast(mocs); @@ -3727,73 +3727,73 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setInstructionBaseAddress(const uint64_t value) { TheStructure.Common.InstructionBaseAddress = value >> INSTRUCTIONBASEADDRESS_BIT_SHIFT; } - inline uint64_t getInstructionBaseAddress(void) const { + inline uint64_t getInstructionBaseAddress() const { return (TheStructure.Common.InstructionBaseAddress << INSTRUCTIONBASEADDRESS_BIT_SHIFT); } inline void setGeneralStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.GeneralStateBufferSizeModifyEnable = value; } - inline bool getGeneralStateBufferSizeModifyEnable(void) const { + inline bool getGeneralStateBufferSizeModifyEnable() const { return (TheStructure.Common.GeneralStateBufferSizeModifyEnable); } inline void setGeneralStateBufferSize(const uint32_t value) { TheStructure.Common.GeneralStateBufferSize = value; } - inline uint32_t getGeneralStateBufferSize(void) const { + inline uint32_t getGeneralStateBufferSize() const { return (TheStructure.Common.GeneralStateBufferSize); } inline void setDynamicStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.DynamicStateBufferSizeModifyEnable = value; } - inline bool getDynamicStateBufferSizeModifyEnable(void) const { + inline bool getDynamicStateBufferSizeModifyEnable() const { return (TheStructure.Common.DynamicStateBufferSizeModifyEnable); } inline void setDynamicStateBufferSize(const uint32_t value) { TheStructure.Common.DynamicStateBufferSize = value; } - inline uint32_t getDynamicStateBufferSize(void) const { + inline uint32_t getDynamicStateBufferSize() const { return (TheStructure.Common.DynamicStateBufferSize); } inline void setIndirectObjectBufferSizeModifyEnable(const bool value) { TheStructure.Common.IndirectObjectBufferSizeModifyEnable = value; } - inline bool getIndirectObjectBufferSizeModifyEnable(void) const { + inline bool getIndirectObjectBufferSizeModifyEnable() const { return (TheStructure.Common.IndirectObjectBufferSizeModifyEnable); } inline void setIndirectObjectBufferSize(const uint32_t value) { TheStructure.Common.IndirectObjectBufferSize = value; } - inline uint32_t getIndirectObjectBufferSize(void) const { + inline uint32_t getIndirectObjectBufferSize() const { return (TheStructure.Common.IndirectObjectBufferSize); } inline void setInstructionBufferSizeModifyEnable(const bool value) { TheStructure.Common.InstructionBufferSizeModifyEnable = value; } - inline bool getInstructionBufferSizeModifyEnable(void) const { + inline bool getInstructionBufferSizeModifyEnable() const { return (TheStructure.Common.InstructionBufferSizeModifyEnable); } inline void setInstructionBufferSize(const uint32_t value) { TheStructure.Common.InstructionBufferSize = value; } - inline uint32_t getInstructionBufferSize(void) const { + inline uint32_t getInstructionBufferSize() const { return (TheStructure.Common.InstructionBufferSize); } inline void setBindlessSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.BindlessSurfaceStateBaseAddressModifyEnable = value; } - inline bool getBindlessSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getBindlessSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.BindlessSurfaceStateBaseAddressModifyEnable); } inline void setBindlessSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_Reserved); } inline void setBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagBINDLESSSURFACESTATEBASEADDRESS { @@ -3803,31 +3803,31 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setBindlessSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateBaseAddress = value >> BINDLESSSURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindlessSurfaceStateBaseAddress(void) const { + inline uint64_t getBindlessSurfaceStateBaseAddress() const { return (TheStructure.Common.BindlessSurfaceStateBaseAddress << BINDLESSSURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setBindlessSurfaceStateSize(const uint32_t value) { TheStructure.Common.BindlessSurfaceStateSize = value; } - inline uint32_t getBindlessSurfaceStateSize(void) const { + inline uint32_t getBindlessSurfaceStateSize() const { return (TheStructure.Common.BindlessSurfaceStateSize); } inline void setBindlessSamplerStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.BindlessSamplerStateBaseAddressModifyEnable = value; } - inline bool getBindlessSamplerStateBaseAddressModifyEnable(void) const { + inline bool getBindlessSamplerStateBaseAddressModifyEnable() const { return (TheStructure.Common.BindlessSamplerStateBaseAddressModifyEnable); } inline void setBindlessSamplerStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getBindlessSamplerStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getBindlessSamplerStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_Reserved); } inline void setBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagBINDLESSSAMPLERSTATEBASEADDRESS { @@ -3837,13 +3837,13 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setBindlessSamplerStateBaseAddress(const uint64_t value) { TheStructure.Common.BindlessSamplerStateBaseAddress = value >> BINDLESSSAMPLERSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindlessSamplerStateBaseAddress(void) const { + inline uint64_t getBindlessSamplerStateBaseAddress() const { return (TheStructure.Common.BindlessSamplerStateBaseAddress << BINDLESSSAMPLERSTATEBASEADDRESS_BIT_SHIFT); } inline void setBindlessSamplerStateBufferSize(const uint32_t value) { TheStructure.Common.BindlessSamplerStateBufferSize = value; } - inline uint32_t getBindlessSamplerStateBufferSize(void) const { + inline uint32_t getBindlessSamplerStateBufferSize() const { return (TheStructure.Common.BindlessSamplerStateBufferSize); } } STATE_BASE_ADDRESS; @@ -3878,13 +3878,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { MEMORYADDRESS_BYTEOFFSET = 0x4, MEMORYADDRESS_INDEX = 0x1, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_REPORT_PERF_COUNT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_REPORT_PERF_COUNT sInit(void) { + static tagMI_REPORT_PERF_COUNT sInit() { MI_REPORT_PERF_COUNT state; state.init(); return state; @@ -3896,13 +3896,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } inline void setCoreModeEnable(const uint64_t value) { TheStructure.Common.CoreModeEnable = value; } - inline uint64_t getCoreModeEnable(void) const { + inline uint64_t getCoreModeEnable() const { return (TheStructure.Common.CoreModeEnable); } typedef enum tagMEMORYADDRESS { @@ -3912,13 +3912,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } inline void setReportId(const uint32_t value) { TheStructure.Common.ReportId = value; } - inline uint32_t getReportId(void) const { + inline uint32_t getReportId() const { return (TheStructure.Common.ReportId); } } MI_REPORT_PERF_COUNT; @@ -3957,7 +3957,7 @@ typedef struct tagGPGPU_CSR_BASE_ADDRESS { GPGPUCSRBASEADDRESS_BYTEOFFSET = 0x4, GPGPUCSRBASEADDRESS_INDEX = 0x1, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_UNNAMED_1; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_GPGPU_CSR_BASE_ADDRESS; @@ -3965,7 +3965,7 @@ typedef struct tagGPGPU_CSR_BASE_ADDRESS { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagGPGPU_CSR_BASE_ADDRESS sInit(void) { + static tagGPGPU_CSR_BASE_ADDRESS sInit() { GPGPU_CSR_BASE_ADDRESS state; state.init(); return state; @@ -4065,11 +4065,11 @@ struct MI_USER_INTERRUPT { enum COMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MICommandOpcode = MI_COMMAND_OPCODE_MI_USER_INTERRUPT; } - static MI_USER_INTERRUPT sInit(void) { + static MI_USER_INTERRUPT sInit() { MI_USER_INTERRUPT state; state.init(); return state; @@ -4126,7 +4126,7 @@ typedef struct tagMI_FLUSH_DW { DESTINATION_ADDRESS_TYPE_PPGTT = 0x0, DESTINATION_ADDRESS_TYPE_GGTT = 0x1, } DESTINATION_ADDRESS_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.PostSyncOperation = POST_SYNC_OPERATION_NO_WRITE; @@ -4134,7 +4134,7 @@ typedef struct tagMI_FLUSH_DW { TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; TheStructure.Common.DestinationAddressType = DESTINATION_ADDRESS_TYPE_PPGTT; } - static tagMI_FLUSH_DW sInit(void) { + static tagMI_FLUSH_DW sInit() { MI_FLUSH_DW state; state.init(); return state; @@ -4146,37 +4146,37 @@ typedef struct tagMI_FLUSH_DW { inline void setNotifyEnable(const bool value) { TheStructure.Common.NotifyEnable = value; } - inline bool getNotifyEnable(void) const { + inline bool getNotifyEnable() const { return TheStructure.Common.NotifyEnable; } inline void setFlushLlc(const bool value) { TheStructure.Common.FlushLlc = value; } - inline bool getFlushLlc(void) const { + inline bool getFlushLlc() const { return TheStructure.Common.FlushLlc; } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setTlbInvalidate(const bool value) { TheStructure.Common.TlbInvalidate = value; } - inline bool getTlbInvalidate(void) const { + inline bool getTlbInvalidate() const { return TheStructure.Common.TlbInvalidate; } inline void setStoreDataIndex(const bool value) { TheStructure.Common.StoreDataIndex = value; } - inline bool getStoreDataIndex(void) const { + inline bool getStoreDataIndex() const { return TheStructure.Common.StoreDataIndex; } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } typedef enum tagDESTINATIONADDRESS { @@ -4187,13 +4187,13 @@ typedef struct tagMI_FLUSH_DW { UNRECOVERABLE_IF(value > 0xfffffffffff8L); TheStructure.Common.DestinationAddress = value >> DESTINATIONADDRESS_BIT_SHIFT; } - inline uint64_t getDestinationAddress(void) const { + inline uint64_t getDestinationAddress() const { return TheStructure.Common.DestinationAddress << DESTINATIONADDRESS_BIT_SHIFT; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } } MI_FLUSH_DW; @@ -4269,7 +4269,7 @@ typedef struct tagXY_SRC_COPY_BLT { typedef enum tagDWORD_LENGTH { DWORD_LENGTH_EXCLUDES_DWORD_0_1 = 0x8, } DWORD_LENGTH; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DestTilingEnable = DEST_TILING_ENABLE_TILING_DISABLED_LINEAR_BLIT; TheStructure.Common.SrcTilingEnable = SRC_TILING_ENABLE_TILING_DISABLED_LINEAR; @@ -4280,7 +4280,7 @@ typedef struct tagXY_SRC_COPY_BLT { TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.RasterOperation = 0xCC; } - static tagXY_SRC_COPY_BLT sInit(void) { + static tagXY_SRC_COPY_BLT sInit() { XY_SRC_COPY_BLT state; state.init(); return state; @@ -4292,119 +4292,119 @@ typedef struct tagXY_SRC_COPY_BLT { inline void setDestTilingEnable(const DEST_TILING_ENABLE value) { TheStructure.Common.DestTilingEnable = value; } - inline DEST_TILING_ENABLE getDestTilingEnable(void) const { + inline DEST_TILING_ENABLE getDestTilingEnable() const { return static_cast(TheStructure.Common.DestTilingEnable); } inline void setSrcTilingEnable(const SRC_TILING_ENABLE value) { TheStructure.Common.SrcTilingEnable = value; } - inline SRC_TILING_ENABLE getSrcTilingEnable(void) const { + inline SRC_TILING_ENABLE getSrcTilingEnable() const { return static_cast(TheStructure.Common.SrcTilingEnable); } inline void set32BppByteMask(const _32BPP_BYTE_MASK value) { TheStructure.Common._32BppByteMask = value; } - inline _32BPP_BYTE_MASK get32BppByteMask(void) const { + inline _32BPP_BYTE_MASK get32BppByteMask() const { return static_cast<_32BPP_BYTE_MASK>(TheStructure.Common._32BppByteMask); } inline void setInstructionTargetOpcode(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1fc00000); TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return TheStructure.Common.InstructionTarget_Opcode; } inline void setClient(const CLIENT value) { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } inline void setDestinationPitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationPitch = value; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return TheStructure.Common.DestinationPitch; } inline void setRasterOperation(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff0000); TheStructure.Common.RasterOperation = value; } - inline uint32_t getRasterOperation(void) const { + inline uint32_t getRasterOperation() const { return TheStructure.Common.RasterOperation; } inline void setColorDepth(const COLOR_DEPTH value) { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } inline void setClippingEnabled(const CLIPPING_ENABLED value) { TheStructure.Common.ClippingEnabled = value; } - inline CLIPPING_ENABLED getClippingEnabled(void) const { + inline CLIPPING_ENABLED getClippingEnabled() const { return static_cast(TheStructure.Common.ClippingEnabled); } inline void setDestinationX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return TheStructure.Common.DestinationX1Coordinate_Left; } inline void setDestinationY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return TheStructure.Common.DestinationY1Coordinate_Top; } inline void setDestinationX2CoordinateRight(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return TheStructure.Common.DestinationX2Coordinate_Right; } inline void setDestinationY2CoordinateBottom(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return TheStructure.Common.DestinationY2Coordinate_Bottom; } inline void setDestinationBaseAddress(const uint64_t value) { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return TheStructure.Common.DestinationBaseAddress; } inline void setSourceX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourceX1Coordinate_Left = value; } - inline uint32_t getSourceX1CoordinateLeft(void) const { + inline uint32_t getSourceX1CoordinateLeft() const { return TheStructure.Common.SourceX1Coordinate_Left; } inline void setSourceY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.SourceY1Coordinate_Top = value; } - inline uint32_t getSourceY1CoordinateTop(void) const { + inline uint32_t getSourceY1CoordinateTop() const { return TheStructure.Common.SourceY1Coordinate_Top; } inline void setSourcePitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourcePitch = value; } - inline uint32_t getSourcePitch(void) const { + inline uint32_t getSourcePitch() const { return TheStructure.Common.SourcePitch; } inline void setSourceBaseAddress(const uint64_t value) { TheStructure.Common.SourceBaseAddress = value; } - inline uint64_t getSourceBaseAddress(void) const { + inline uint64_t getSourceBaseAddress() const { return TheStructure.Common.SourceBaseAddress; } } XY_SRC_COPY_BLT; @@ -4469,7 +4469,7 @@ typedef struct tagXY_COLOR_BLT { typedef enum tagDWORD_LENGTH { DWORD_LENGTH_EXCLUDES_DWORD_0_1 = 0x5, } DWORD_LENGTH; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DestTilingEnable = DEST_TILING_ENABLE_TILING_DISABLED_LINEAR_BLIT; TheStructure.Common.Client = CLIENT_2D_PROCESSOR; @@ -4479,7 +4479,7 @@ typedef struct tagXY_COLOR_BLT { TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.RasterOperation = 0xF0; } - static tagXY_COLOR_BLT sInit(void) { + static tagXY_COLOR_BLT sInit() { XY_COLOR_BLT state; state.init(); return state; @@ -4491,86 +4491,86 @@ typedef struct tagXY_COLOR_BLT { inline void setDestTilingEnable(const DEST_TILING_ENABLE value) { TheStructure.Common.DestTilingEnable = value; } - inline DEST_TILING_ENABLE getDestTilingEnable(void) const { + inline DEST_TILING_ENABLE getDestTilingEnable() const { return static_cast(TheStructure.Common.DestTilingEnable); } inline void set32BppByteMask(const _32BPP_BYTE_MASK value) { TheStructure.Common._32BppByteMask = value; } - inline _32BPP_BYTE_MASK get32BppByteMask(void) const { + inline _32BPP_BYTE_MASK get32BppByteMask() const { return static_cast<_32BPP_BYTE_MASK>(TheStructure.Common._32BppByteMask); } inline void setInstructionTargetOpcode(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1fc00000); TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return TheStructure.Common.InstructionTarget_Opcode; } inline void setClient(const CLIENT value) { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } inline void setDestinationPitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationPitch = value; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return TheStructure.Common.DestinationPitch; } inline void setRasterOperation(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff0000); TheStructure.Common.RasterOperation = value; } - inline uint32_t getRasterOperation(void) const { + inline uint32_t getRasterOperation() const { return TheStructure.Common.RasterOperation; } inline void setColorDepth(const COLOR_DEPTH value) { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } inline void setClippingEnabled(const CLIPPING_ENABLED value) { TheStructure.Common.ClippingEnabled = value; } - inline CLIPPING_ENABLED getClippingEnabled(void) const { + inline CLIPPING_ENABLED getClippingEnabled() const { return static_cast(TheStructure.Common.ClippingEnabled); } inline void setDestinationX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return TheStructure.Common.DestinationX1Coordinate_Left; } inline void setDestinationY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return TheStructure.Common.DestinationY1Coordinate_Top; } inline void setDestinationX2CoordinateRight(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return TheStructure.Common.DestinationX2Coordinate_Right; } inline void setDestinationY2CoordinateBottom(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return TheStructure.Common.DestinationY2Coordinate_Bottom; } inline void setDestinationBaseAddress(const uint64_t value) { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return TheStructure.Common.DestinationBaseAddress; } inline void setFillColor(const uint32_t *value) { @@ -4627,7 +4627,7 @@ typedef struct tagMI_BATCH_BUFFER_START { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.AddressSpaceIndicator = ADDRESS_SPACE_INDICATOR_GGTT; @@ -4635,7 +4635,7 @@ typedef struct tagMI_BATCH_BUFFER_START { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_BATCH_BUFFER_START; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_BATCH_BUFFER_START sInit(void) { + static tagMI_BATCH_BUFFER_START sInit() { MI_BATCH_BUFFER_START state; state.init(); return state; @@ -4647,37 +4647,37 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setAddressSpaceIndicator(const ADDRESS_SPACE_INDICATOR value) { TheStructure.Common.AddressSpaceIndicator = value; } - inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator(void) const { + inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator() const { return static_cast(TheStructure.Common.AddressSpaceIndicator); } inline void setResourceStreamerEnable(const bool value) { TheStructure.Common.ResourceStreamerEnable = value; } - inline bool getResourceStreamerEnable(void) const { + inline bool getResourceStreamerEnable() const { return (TheStructure.Common.ResourceStreamerEnable); } inline void setPredicationEnable(const uint32_t value) { TheStructure.Common.PredicationEnable = value; } - inline uint32_t getPredicationEnable(void) const { + inline uint32_t getPredicationEnable() const { return (TheStructure.Common.PredicationEnable); } inline void setPoshEnable(const uint32_t value) { TheStructure.Common.PoshEnable = value; } - inline uint32_t getPoshEnable(void) const { + inline uint32_t getPoshEnable() const { return (TheStructure.Common.PoshEnable); } inline void setPoshStart(const uint32_t value) { TheStructure.Common.PoshStart = value; } - inline uint32_t getPoshStart(void) const { + inline uint32_t getPoshStart() const { return (TheStructure.Common.PoshStart); } inline void setSecondLevelBatchBuffer(const SECOND_LEVEL_BATCH_BUFFER value) { TheStructure.Common.SecondLevelBatchBuffer = value; } - inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer(void) const { + inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer() const { return static_cast(TheStructure.Common.SecondLevelBatchBuffer); } typedef enum tagBATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS39_2 { @@ -4687,13 +4687,13 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setBatchBufferStartAddressGraphicsaddress392(const uint64_t value) { TheStructure.Common.BatchBufferStartAddress_Graphicsaddress39_2 = value >> BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS39_2_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddressGraphicsaddress392(void) const { + inline uint64_t getBatchBufferStartAddressGraphicsaddress392() 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(void) const { + inline uint64_t getBatchBufferStartAddressGraphicsaddress472() const { return getBatchBufferStartAddressGraphicsaddress392(); } typedef enum tagBATCHBUFFERSTARTADDRESS_RESERVED { @@ -4703,7 +4703,7 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setBatchBufferStartAddressReserved(const uint64_t value) { TheStructure.Common.BatchBufferStartAddress_Reserved = value >> BATCHBUFFERSTARTADDRESS_RESERVED_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddressReserved(void) const { + inline uint64_t getBatchBufferStartAddressReserved() const { return (TheStructure.Common.BatchBufferStartAddress_Reserved << BATCHBUFFERSTARTADDRESS_RESERVED_BIT_SHIFT); } } MI_BATCH_BUFFER_START; @@ -4851,7 +4851,7 @@ typedef struct tagMEDIA_SURFACE_STATE { SURFACEBASEADDRESSHIGH_BYTEOFFSET = 0x1c, SURFACEBASEADDRESSHIGH_INDEX = 0x7, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.Rotation = ROTATION_NO_ROTATION_OR_0_DEGREE; TheStructure.Common.PictureStructure = PICTURE_STRUCTURE_FRAME_PICTURE; @@ -4861,7 +4861,7 @@ typedef struct tagMEDIA_SURFACE_STATE { TheStructure.Common.SurfaceFormat = SURFACE_FORMAT_YCRCB_NORMAL; TheStructure.Common.TiledResourceMode = TILED_RESOURCE_MODE_TRMODE_NONE; } - static tagMEDIA_SURFACE_STATE sInit(void) { + static tagMEDIA_SURFACE_STATE sInit() { MEDIA_SURFACE_STATE state; state.init(); return state; @@ -4873,153 +4873,153 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setRotation(const ROTATION value) { TheStructure.Common.Rotation = value; } - inline ROTATION getRotation(void) const { + inline ROTATION getRotation() const { return static_cast(TheStructure.Common.Rotation); } inline void setCrVCbUPixelOffsetVDirection(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetVDirection = value; } - inline uint32_t getCrVCbUPixelOffsetVDirection(void) const { + inline uint32_t getCrVCbUPixelOffsetVDirection() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetVDirection); } inline void setPictureStructure(const PICTURE_STRUCTURE value) { TheStructure.Common.PictureStructure = value; } - inline PICTURE_STRUCTURE getPictureStructure(void) const { + inline PICTURE_STRUCTURE getPictureStructure() const { return static_cast(TheStructure.Common.PictureStructure); } inline void setWidth(const uint32_t value) { TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return (TheStructure.Common.Width + 1); } inline void setHeight(const uint32_t value) { TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return (TheStructure.Common.Height + 1); } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setHalfPitchForChroma(const bool value) { TheStructure.Common.HalfPitchForChroma = value; } - inline bool getHalfPitchForChroma(void) const { + inline bool getHalfPitchForChroma() const { return (TheStructure.Common.HalfPitchForChroma); } inline void setSurfacePitch(const uint32_t value) { TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return (TheStructure.Common.SurfacePitch + 1); } inline void setAddressControl(const ADDRESS_CONTROL value) { TheStructure.Common.AddressControl = value; } - inline ADDRESS_CONTROL getAddressControl(void) const { + inline ADDRESS_CONTROL getAddressControl() const { return static_cast(TheStructure.Common.AddressControl); } inline void setMemoryCompressionEnable(const bool value) { TheStructure.Common.MemoryCompressionEnable = value; } - inline bool getMemoryCompressionEnable(void) const { + inline bool getMemoryCompressionEnable() const { return (TheStructure.Common.MemoryCompressionEnable); } inline void setMemoryCompressionMode(const MEMORY_COMPRESSION_MODE value) { TheStructure.Common.MemoryCompressionMode = value; } - inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode(void) const { + inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode() const { return static_cast(TheStructure.Common.MemoryCompressionMode); } inline void setCrVCbUPixelOffsetVDirectionMsb(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetVDirectionMsb = value; } - inline uint32_t getCrVCbUPixelOffsetVDirectionMsb(void) const { + inline uint32_t getCrVCbUPixelOffsetVDirectionMsb() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetVDirectionMsb); } inline void setCrVCbUPixelOffsetUDirection(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetUDirection = value; } - inline uint32_t getCrVCbUPixelOffsetUDirection(void) const { + inline uint32_t getCrVCbUPixelOffsetUDirection() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetUDirection); } inline void setInterleaveChroma(const bool value) { TheStructure.Common.InterleaveChroma = value; } - inline bool getInterleaveChroma(void) const { + inline bool getInterleaveChroma() const { return (TheStructure.Common.InterleaveChroma); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setYOffsetForUCb(const uint32_t value) { TheStructure.Common.YOffsetForU_Cb = value; } - inline uint32_t getYOffsetForUCb(void) const { + inline uint32_t getYOffsetForUCb() const { return (TheStructure.Common.YOffsetForU_Cb); } inline void setXOffsetForUCb(const uint32_t value) { TheStructure.Common.XOffsetForU_Cb = value; } - inline uint32_t getXOffsetForUCb(void) const { + inline uint32_t getXOffsetForUCb() const { return (TheStructure.Common.XOffsetForU_Cb); } inline void setSurfaceMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_Reserved = value; } - inline uint32_t getSurfaceMemoryObjectControlStateReserved(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_Reserved); } inline void setSurfaceMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables << 1); } inline void setTiledResourceMode(const TILED_RESOURCE_MODE value) { TheStructure.Common.TiledResourceMode = value; } - inline TILED_RESOURCE_MODE getTiledResourceMode(void) const { + inline TILED_RESOURCE_MODE getTiledResourceMode() const { return static_cast(TheStructure.Common.TiledResourceMode); } inline void setDepth(const uint32_t value) { TheStructure.Common.Depth = value; } - inline uint32_t getDepth(void) const { + inline uint32_t getDepth() const { return (TheStructure.Common.Depth); } inline void setVerticalLineStrideOffset(const uint32_t value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline uint32_t getVerticalLineStrideOffset(void) const { + inline uint32_t getVerticalLineStrideOffset() const { return (TheStructure.Common.VerticalLineStrideOffset); } inline void setVerticalLineStride(const uint32_t value) { TheStructure.Common.VerticalLineStride = value; } - inline uint32_t getVerticalLineStride(void) const { + inline uint32_t getVerticalLineStride() const { return (TheStructure.Common.VerticalLineStride); } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddressLow = static_cast(value & 0xffffffff); TheStructure.Common.SurfaceBaseAddressHigh = (value >> 32) & 0xffffffff; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return (TheStructure.Common.SurfaceBaseAddressLow | static_cast(TheStructure.Common.SurfaceBaseAddressHigh) << 32); } inline void setSurfaceBaseAddressHigh(const uint32_t value) { TheStructure.Common.SurfaceBaseAddressHigh = value; } - inline uint32_t getSurfaceBaseAddressHigh(void) const { + inline uint32_t getSurfaceBaseAddressHigh() const { return (TheStructure.Common.SurfaceBaseAddressHigh); } typedef enum tagYOFFSET { @@ -5029,7 +5029,7 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setYOffset(const uint32_t value) { TheStructure.SurfaceFormatIsOneOfPlanarFormats.YOffset = value >> YOFFSET_BIT_SHIFT; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return (TheStructure.SurfaceFormatIsOneOfPlanarFormats.YOffset << YOFFSET_BIT_SHIFT); } typedef enum tagXOFFSET { @@ -5039,19 +5039,19 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setXOffset(const uint32_t value) { TheStructure.SurfaceFormatIsOneOfPlanarFormats.XOffset = value >> XOFFSET_BIT_SHIFT; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return (TheStructure.SurfaceFormatIsOneOfPlanarFormats.XOffset << XOFFSET_BIT_SHIFT); } inline void setYOffsetForVCr(const uint32_t value) { TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr = value; } - inline uint32_t getYOffsetForVCr(void) const { + inline uint32_t getYOffsetForVCr() const { return (TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr); } inline void setXOffsetForVCr(const uint32_t value) { TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr = value; } - inline uint32_t getXOffsetForVCr(void) const { + inline uint32_t getXOffsetForVCr() const { return (TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr); } } MEDIA_SURFACE_STATE; @@ -5131,7 +5131,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.CompareOperation = COMPARE_OPERATION_SAD_GREATER_THAN_SDD; @@ -5141,7 +5141,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_SEMAPHORE_WAIT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_SEMAPHORE_WAIT sInit(void) { + static tagMI_SEMAPHORE_WAIT sInit() { MI_SEMAPHORE_WAIT state; state.init(); return state; @@ -5153,31 +5153,31 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setCompareOperation(const COMPARE_OPERATION value) { TheStructure.Common.CompareOperation = value; } - inline COMPARE_OPERATION getCompareOperation(void) const { + inline COMPARE_OPERATION getCompareOperation() const { return static_cast(TheStructure.Common.CompareOperation); } inline void setWaitMode(const WAIT_MODE value) { TheStructure.Common.WaitMode = value; } - inline WAIT_MODE getWaitMode(void) const { + inline WAIT_MODE getWaitMode() const { return static_cast(TheStructure.Common.WaitMode); } inline void setRegisterPollMode(const REGISTER_POLL_MODE value) { TheStructure.Common.RegisterPollMode = value; } - inline REGISTER_POLL_MODE getRegisterPollMode(void) const { + inline REGISTER_POLL_MODE getRegisterPollMode() const { return static_cast(TheStructure.Common.RegisterPollMode); } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } inline void setSemaphoreDataDword(const uint32_t value) { TheStructure.Common.SemaphoreDataDword = value; } - inline uint32_t getSemaphoreDataDword(void) const { + inline uint32_t getSemaphoreDataDword() const { return (TheStructure.Common.SemaphoreDataDword); } typedef enum tagSEMAPHOREADDRESS_GRAPHICSADDRESS { @@ -5187,7 +5187,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setSemaphoreGraphicsAddress(const uint64_t value) { TheStructure.Common.SemaphoreAddress_Graphicsaddress = value >> SEMAPHOREADDRESS_GRAPHICSADDRESS_BIT_SHIFT; } - inline uint64_t getSemaphoreGraphicsAddress(void) const { + inline uint64_t getSemaphoreGraphicsAddress() const { return (TheStructure.Common.SemaphoreAddress_Graphicsaddress << SEMAPHOREADDRESS_GRAPHICSADDRESS_BIT_SHIFT); } typedef enum tagSEMAPHOREADDRESS_RESERVED { @@ -5224,13 +5224,13 @@ typedef struct tagMI_STORE_DATA_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_STORE_DWORD; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_DATA_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_DATA_IMM sInit(void) { + static tagMI_STORE_DATA_IMM sInit() { MI_STORE_DATA_IMM state; state.init(); return state; @@ -5242,25 +5242,25 @@ typedef struct tagMI_STORE_DATA_IMM { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setStoreQword(const bool value) { TheStructure.Common.StoreQword = value; } - inline bool getStoreQword(void) const { + inline bool getStoreQword() const { return (TheStructure.Common.StoreQword); } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } inline void setCoreModeEnable(const uint64_t value) { TheStructure.Common.CoreModeEnable = value; } - inline uint64_t getCoreModeEnable(void) const { + inline uint64_t getCoreModeEnable() const { return (TheStructure.Common.CoreModeEnable); } typedef enum tagADDRESS { @@ -5270,19 +5270,19 @@ typedef struct tagMI_STORE_DATA_IMM { inline void setAddress(const uint64_t value) { TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint64_t getAddress(void) const { + inline uint64_t getAddress() const { return (TheStructure.Common.Address << ADDRESS_BIT_SHIFT); } inline void setDataDword0(const uint32_t value) { TheStructure.Common.DataDword0 = value; } - inline uint32_t getDataDword0(void) const { + inline uint32_t getDataDword0() const { return (TheStructure.Common.DataDword0); } inline void setDataDword1(const uint32_t value) { TheStructure.Common.DataDword1 = value; } - inline uint32_t getDataDword1(void) const { + inline uint32_t getDataDword1() const { return (TheStructure.Common.DataDword1); } } MI_STORE_DATA_IMM; @@ -5305,13 +5305,13 @@ typedef struct tagPWR_CLK_STATE_REGISTER { } Common; uint32_t RawData[1]; } TheStructure; - inline void init(void) { + inline void init() { TheStructure.RawData[0] = 0; TheStructure.Common.EnablePwrClockGating = 1; TheStructure.Common.EUmin = 8; TheStructure.Common.EUmax = 8; } - static tagPWR_CLK_STATE_REGISTER sInit(void) { + static tagPWR_CLK_STATE_REGISTER sInit() { PWR_CLK_STATE_REGISTER state; state.init(); return state; @@ -5332,13 +5332,13 @@ typedef struct tagASYNC_SLICE_COUNT_SELECT_REGISTER { } Common; uint32_t RawData[1]; } TheStructure; - inline void init(void) { + inline void init() { TheStructure.RawData[0] = 0; TheStructure.Common.AsyncSliceCount = 2; TheStructure.Common.AsyncSubSliceCount = 4; TheStructure.Common.AsyncEuCount = 8; } - static tagASYNC_SLICE_COUNT_SELECT_REGISTER sInit(void) { + static tagASYNC_SLICE_COUNT_SELECT_REGISTER sInit() { ASYNC_SLICE_COUNT_SELECT_REGISTER state; state.init(); return state; @@ -5360,14 +5360,14 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { } Common; uint32_t RawData[4]; } TheStructure; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.BorderColorRed = 0.0; TheStructure.Common.BorderColorGreen = 0.0; TheStructure.Common.BorderColorBlue = 0.0; TheStructure.Common.BorderColorAlpha = 0.0; } - static tagSAMPLER_BORDER_COLOR_STATE sInit(void) { + static tagSAMPLER_BORDER_COLOR_STATE sInit() { SAMPLER_BORDER_COLOR_STATE state; state.init(); return state; @@ -5379,25 +5379,25 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { inline void setBorderColorRed(const float value) { TheStructure.Common.BorderColorRed = value; } - inline float getBorderColorRed(void) const { + inline float getBorderColorRed() const { return TheStructure.Common.BorderColorRed; } inline void setBorderColorGreen(const float value) { TheStructure.Common.BorderColorGreen = value; } - inline float getBorderColorGreen(void) const { + inline float getBorderColorGreen() const { return TheStructure.Common.BorderColorGreen; } inline void setBorderColorBlue(const float value) { TheStructure.Common.BorderColorBlue = value; } - inline float getBorderColorBlue(void) const { + inline float getBorderColorBlue() const { return TheStructure.Common.BorderColorBlue; } inline void setBorderColorAlpha(const float value) { TheStructure.Common.BorderColorAlpha = value; } - inline float getBorderColorAlpha(void) const { + inline float getBorderColorAlpha() const { return TheStructure.Common.BorderColorAlpha; } } SAMPLER_BORDER_COLOR_STATE; diff --git a/shared/source/generated/gen12lp/hw_cmds_generated_gen12lp.inl b/shared/source/generated/gen12lp/hw_cmds_generated_gen12lp.inl index 40021e5937..41d8690167 100644 --- a/shared/source/generated/gen12lp/hw_cmds_generated_gen12lp.inl +++ b/shared/source/generated/gen12lp/hw_cmds_generated_gen12lp.inl @@ -18,10 +18,10 @@ typedef struct tagBINDING_TABLE_STATE { SURFACESTATEPOINTER_BYTEOFFSET = 0x0, SURFACESTATEPOINTER_INDEX = 0x0, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); } - static tagBINDING_TABLE_STATE sInit(void) { + static tagBINDING_TABLE_STATE sInit() { BINDING_TABLE_STATE state; state.init(); return state; @@ -42,7 +42,7 @@ typedef struct tagBINDING_TABLE_STATE { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SurfaceStatePointer = (uint32_t)value >> SURFACESTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSurfaceStatePointer(void) const { + inline uint32_t getSurfaceStatePointer() const { return (TheStructure.Common.SurfaceStatePointer << SURFACESTATEPOINTER_BIT_SHIFT); } } BINDING_TABLE_STATE; @@ -121,7 +121,7 @@ typedef struct tagGPGPU_WALKER { SIMD_SIZE_SIMD16 = 0x1, SIMD_SIZE_SIMD32 = 0x2, } SIMD_SIZE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_GPGPU_WALKER_SUBOP; @@ -130,7 +130,7 @@ typedef struct tagGPGPU_WALKER { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.SimdSize = SIMD_SIZE_SIMD8; } - static tagGPGPU_WALKER sInit(void) { + static tagGPGPU_WALKER sInit() { GPGPU_WALKER state; state.init(); return state; @@ -141,25 +141,25 @@ typedef struct tagGPGPU_WALKER { inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return TheStructure.Common.PredicateEnable; } inline void setIndirectParameterEnable(const bool value) { TheStructure.Common.IndirectParameterEnable = value; } - inline bool getIndirectParameterEnable(void) const { + inline bool getIndirectParameterEnable() const { return TheStructure.Common.IndirectParameterEnable; } inline void setInterfaceDescriptorOffset(const uint32_t value) { TheStructure.Common.InterfaceDescriptorOffset = value; } - inline uint32_t getInterfaceDescriptorOffset(void) const { + inline uint32_t getInterfaceDescriptorOffset() const { return TheStructure.Common.InterfaceDescriptorOffset; } inline void setIndirectDataLength(const uint32_t value) { TheStructure.Common.IndirectDataLength = value; } - inline uint32_t getIndirectDataLength(void) const { + inline uint32_t getIndirectDataLength() const { return TheStructure.Common.IndirectDataLength; } typedef enum tagINDIRECTDATASTARTADDRESS { @@ -169,79 +169,79 @@ typedef struct tagGPGPU_WALKER { inline void setIndirectDataStartAddress(const uint32_t value) { TheStructure.Common.IndirectDataStartAddress = value >> INDIRECTDATASTARTADDRESS_BIT_SHIFT; } - inline uint32_t getIndirectDataStartAddress(void) const { + inline uint32_t getIndirectDataStartAddress() const { return TheStructure.Common.IndirectDataStartAddress << INDIRECTDATASTARTADDRESS_BIT_SHIFT; } inline void setThreadWidthCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadWidthCounterMaximum = value - 1; } - inline uint32_t getThreadWidthCounterMaximum(void) const { + inline uint32_t getThreadWidthCounterMaximum() const { return TheStructure.Common.ThreadWidthCounterMaximum + 1; } inline void setThreadHeightCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadHeightCounterMaximum = value - 1; } - inline uint32_t getThreadHeightCounterMaximum(void) const { + inline uint32_t getThreadHeightCounterMaximum() const { return TheStructure.Common.ThreadHeightCounterMaximum + 1; } inline void setThreadDepthCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadDepthCounterMaximum = value; } - inline uint32_t getThreadDepthCounterMaximum(void) const { + inline uint32_t getThreadDepthCounterMaximum() const { return TheStructure.Common.ThreadDepthCounterMaximum; } inline void setSimdSize(const SIMD_SIZE value) { TheStructure.Common.SimdSize = value; } - inline SIMD_SIZE getSimdSize(void) const { + inline SIMD_SIZE getSimdSize() const { return static_cast(TheStructure.Common.SimdSize); } inline void setThreadGroupIdStartingX(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingX = value; } - inline uint32_t getThreadGroupIdStartingX(void) const { + inline uint32_t getThreadGroupIdStartingX() const { return TheStructure.Common.ThreadGroupIdStartingX; } inline void setThreadGroupIdXDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdXDimension = value; } - inline uint32_t getThreadGroupIdXDimension(void) const { + inline uint32_t getThreadGroupIdXDimension() const { return TheStructure.Common.ThreadGroupIdXDimension; } inline void setThreadGroupIdStartingY(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingY = value; } - inline uint32_t getThreadGroupIdStartingY(void) const { + inline uint32_t getThreadGroupIdStartingY() const { return TheStructure.Common.ThreadGroupIdStartingY; } inline void setThreadGroupIdYDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdYDimension = value; } - inline uint32_t getThreadGroupIdYDimension(void) const { + inline uint32_t getThreadGroupIdYDimension() const { return TheStructure.Common.ThreadGroupIdYDimension; } inline void setThreadGroupIdStartingResumeZ(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingResumeZ = value; } - inline uint32_t getThreadGroupIdStartingResumeZ(void) const { + inline uint32_t getThreadGroupIdStartingResumeZ() const { return TheStructure.Common.ThreadGroupIdStartingResumeZ; } inline void setThreadGroupIdZDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdZDimension = value; } - inline uint32_t getThreadGroupIdZDimension(void) const { + inline uint32_t getThreadGroupIdZDimension() const { return TheStructure.Common.ThreadGroupIdZDimension; } inline void setRightExecutionMask(const uint32_t value) { TheStructure.Common.RightExecutionMask = value; } - inline uint32_t getRightExecutionMask(void) const { + inline uint32_t getRightExecutionMask() const { return TheStructure.Common.RightExecutionMask; } inline void setBottomExecutionMask(const uint32_t value) { TheStructure.Common.BottomExecutionMask = value; } - inline uint32_t getBottomExecutionMask(void) const { + inline uint32_t getBottomExecutionMask() const { return TheStructure.Common.BottomExecutionMask; } } GPGPU_WALKER; @@ -345,7 +345,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { ROUNDING_MODE_RD = 0x2, ROUNDING_MODE_RTZ = 0x3, } ROUNDING_MODE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.FloatingPointMode = FLOATING_POINT_MODE_IEEE_754; TheStructure.Common.ThreadPriority = THREAD_PRIORITY_NORMAL_PRIORITY; @@ -357,7 +357,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { TheStructure.Common.SharedLocalMemorySize = SHARED_LOCAL_MEMORY_SIZE_ENCODES_0K; TheStructure.Common.RoundingMode = ROUNDING_MODE_RTNE; } - static tagINTERFACE_DESCRIPTOR_DATA sInit(void) { + static tagINTERFACE_DESCRIPTOR_DATA sInit() { INTERFACE_DESCRIPTOR_DATA state; state.init(); return state; @@ -373,67 +373,67 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.KernelStartPointer = static_cast(value) >> KERNELSTARTPOINTER_BIT_SHIFT; } - inline uint32_t getKernelStartPointer(void) const { + inline uint32_t getKernelStartPointer() const { return TheStructure.Common.KernelStartPointer << KERNELSTARTPOINTER_BIT_SHIFT; } inline void setKernelStartPointerHigh(const uint32_t value) { TheStructure.Common.KernelStartPointerHigh = static_cast(value); } - inline uint32_t getKernelStartPointerHigh(void) const { + inline uint32_t getKernelStartPointerHigh() const { return TheStructure.Common.KernelStartPointerHigh; } inline void setSoftwareExceptionEnable(const bool value) { TheStructure.Common.SoftwareExceptionEnable = value; } - inline bool getSoftwareExceptionEnable(void) const { + inline bool getSoftwareExceptionEnable() const { return TheStructure.Common.SoftwareExceptionEnable; } inline void setMaskStackExceptionEnable(const bool value) { TheStructure.Common.MaskStackExceptionEnable = value; } - inline bool getMaskStackExceptionEnable(void) const { + inline bool getMaskStackExceptionEnable() const { return TheStructure.Common.MaskStackExceptionEnable; } inline void setIllegalOpcodeExceptionEnable(const bool value) { TheStructure.Common.IllegalOpcodeExceptionEnable = value; } - inline bool getIllegalOpcodeExceptionEnable(void) const { + inline bool getIllegalOpcodeExceptionEnable() const { return TheStructure.Common.IllegalOpcodeExceptionEnable; } inline void setFloatingPointMode(const FLOATING_POINT_MODE value) { TheStructure.Common.FloatingPointMode = value; } - inline FLOATING_POINT_MODE getFloatingPointMode(void) const { + inline FLOATING_POINT_MODE getFloatingPointMode() const { return static_cast(TheStructure.Common.FloatingPointMode); } inline void setThreadPriority(const THREAD_PRIORITY value) { TheStructure.Common.ThreadPriority = value; } - inline THREAD_PRIORITY getThreadPriority(void) const { + inline THREAD_PRIORITY getThreadPriority() const { return static_cast(TheStructure.Common.ThreadPriority); } inline void setSingleProgramFlow(const SINGLE_PROGRAM_FLOW value) { TheStructure.Common.SingleProgramFlow = value; } - inline SINGLE_PROGRAM_FLOW getSingleProgramFlow(void) const { + inline SINGLE_PROGRAM_FLOW getSingleProgramFlow() const { return static_cast(TheStructure.Common.SingleProgramFlow); } inline void setDenormMode(const DENORM_MODE value) { TheStructure.Common.DenormMode = value; } - inline DENORM_MODE getDenormMode(void) const { + inline DENORM_MODE getDenormMode() const { return static_cast(TheStructure.Common.DenormMode); } inline void setThreadPreemptionDisable(const THREAD_PREEMPTION_DISABLE value) { TheStructure.Common.ThreadPreemptionDisable = value; } - inline THREAD_PREEMPTION_DISABLE getThreadPreemptionDisable(void) const { + inline THREAD_PREEMPTION_DISABLE getThreadPreemptionDisable() const { return static_cast(TheStructure.Common.ThreadPreemptionDisable); } inline void setSamplerCount(const SAMPLER_COUNT value) { TheStructure.Common.SamplerCount = value; } - inline SAMPLER_COUNT getSamplerCount(void) const { + inline SAMPLER_COUNT getSamplerCount() const { return static_cast(TheStructure.Common.SamplerCount); } typedef enum tagSAMPLERSTATEPOINTER { @@ -443,13 +443,13 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { inline void setSamplerStatePointer(const uint32_t value) { TheStructure.Common.SamplerStatePointer = static_cast(value) >> SAMPLERSTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSamplerStatePointer(void) const { + inline uint32_t getSamplerStatePointer() const { return TheStructure.Common.SamplerStatePointer << SAMPLERSTATEPOINTER_BIT_SHIFT; } inline void setBindingTableEntryCount(const uint32_t value) { TheStructure.Common.BindingTableEntryCount = value; } - inline uint32_t getBindingTableEntryCount(void) const { + inline uint32_t getBindingTableEntryCount() const { return TheStructure.Common.BindingTableEntryCount; } typedef enum tagBINDINGTABLEPOINTER { @@ -459,55 +459,55 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { inline void setBindingTablePointer(const uint32_t value) { TheStructure.Common.BindingTablePointer = static_cast(value) >> BINDINGTABLEPOINTER_BIT_SHIFT; } - inline uint32_t getBindingTablePointer(void) const { + inline uint32_t getBindingTablePointer() const { return TheStructure.Common.BindingTablePointer << BINDINGTABLEPOINTER_BIT_SHIFT; } inline void setConstantUrbEntryReadOffset(const uint32_t value) { TheStructure.Common.ConstantUrbEntryReadOffset = value; } - inline uint32_t getConstantUrbEntryReadOffset(void) const { + inline uint32_t getConstantUrbEntryReadOffset() const { return TheStructure.Common.ConstantUrbEntryReadOffset; } inline void setConstantIndirectUrbEntryReadLength(const uint32_t value) { TheStructure.Common.ConstantIndirectUrbEntryReadLength = value; } - inline uint32_t getConstantIndirectUrbEntryReadLength(void) const { + inline uint32_t getConstantIndirectUrbEntryReadLength() const { return TheStructure.Common.ConstantIndirectUrbEntryReadLength; } inline void setNumberOfThreadsInGpgpuThreadGroup(const uint32_t value) { TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup = value; } - inline uint32_t getNumberOfThreadsInGpgpuThreadGroup(void) const { + inline uint32_t getNumberOfThreadsInGpgpuThreadGroup() const { return TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup; } inline void setOverDispatchControl(const OVER_DISPATCH_CONTROL value) { TheStructure.Common.OverDispatchControl = value; } - inline OVER_DISPATCH_CONTROL getOverDispatchControl(void) const { + inline OVER_DISPATCH_CONTROL getOverDispatchControl() const { return static_cast(TheStructure.Common.OverDispatchControl); } inline void setSharedLocalMemorySize(const SHARED_LOCAL_MEMORY_SIZE value) { TheStructure.Common.SharedLocalMemorySize = value; } - inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize(void) const { + inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize() const { return static_cast(TheStructure.Common.SharedLocalMemorySize); } inline void setBarrierEnable(const uint32_t value) { TheStructure.Common.BarrierEnable = (value > 0u) ? 1u : 0u; } - inline bool getBarrierEnable(void) const { + inline bool getBarrierEnable() const { return TheStructure.Common.BarrierEnable; } inline void setRoundingMode(const ROUNDING_MODE value) { TheStructure.Common.RoundingMode = value; } - inline ROUNDING_MODE getRoundingMode(void) const { + inline ROUNDING_MODE getRoundingMode() const { return static_cast(TheStructure.Common.RoundingMode); } inline void setCrossThreadConstantDataReadLength(const uint32_t value) { TheStructure.Common.CrossThreadConstantDataReadLength = value; } - inline uint32_t getCrossThreadConstantDataReadLength(void) const { + inline uint32_t getCrossThreadConstantDataReadLength() const { return TheStructure.Common.CrossThreadConstantDataReadLength; } } INTERFACE_DESCRIPTOR_DATA; @@ -551,7 +551,7 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { INTERFACE_DESCRIPTOR_TOTAL_LENGTH_1_64_INTERFACE_DESCRIPTOR_ENTRIES_MIN = 0x20, INTERFACE_DESCRIPTOR_TOTAL_LENGTH_1_64_INTERFACE_DESCRIPTOR_ENTRIES_MAX = 0x800, } INTERFACE_DESCRIPTOR_TOTAL_LENGTH; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_INTERFACE_DESCRIPTOR_LOAD_SUBOP; @@ -559,7 +559,7 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { TheStructure.Common.Pipeline = PIPELINE_MEDIA; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagMEDIA_INTERFACE_DESCRIPTOR_LOAD sInit(void) { + static tagMEDIA_INTERFACE_DESCRIPTOR_LOAD sInit() { MEDIA_INTERFACE_DESCRIPTOR_LOAD state; state.init(); return state; @@ -570,13 +570,13 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { inline void setInterfaceDescriptorTotalLength(const uint32_t value) { TheStructure.Common.InterfaceDescriptorTotalLength = value; } - inline uint32_t getInterfaceDescriptorTotalLength(void) const { + inline uint32_t getInterfaceDescriptorTotalLength() const { return TheStructure.Common.InterfaceDescriptorTotalLength; } inline void setInterfaceDescriptorDataStartAddress(const uint32_t value) { TheStructure.Common.InterfaceDescriptorDataStartAddress = value; } - inline uint32_t getInterfaceDescriptorDataStartAddress(void) const { + inline uint32_t getInterfaceDescriptorDataStartAddress() const { return TheStructure.Common.InterfaceDescriptorDataStartAddress; } } MEDIA_INTERFACE_DESCRIPTOR_LOAD; @@ -614,7 +614,7 @@ typedef struct tagMEDIA_STATE_FLUSH { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_STATE_FLUSH_SUBOP; @@ -622,7 +622,7 @@ typedef struct tagMEDIA_STATE_FLUSH { TheStructure.Common.Pipeline = PIPELINE_MEDIA; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagMEDIA_STATE_FLUSH sInit(void) { + static tagMEDIA_STATE_FLUSH sInit() { MEDIA_STATE_FLUSH state; state.init(); return state; @@ -633,13 +633,13 @@ typedef struct tagMEDIA_STATE_FLUSH { inline void setInterfaceDescriptorOffset(const uint32_t value) { TheStructure.Common.InterfaceDescriptorOffset = value; } - inline uint32_t getInterfaceDescriptorOffset(void) const { + inline uint32_t getInterfaceDescriptorOffset() const { return TheStructure.Common.InterfaceDescriptorOffset; } inline void setFlushToGo(const bool value) { TheStructure.Common.FlushToGo = value; } - inline bool getFlushToGo(void) const { + inline bool getFlushToGo() const { return TheStructure.Common.FlushToGo; } } MEDIA_STATE_FLUSH; @@ -701,7 +701,7 @@ typedef struct tagMEDIA_VFE_STATE { SCRATCHSPACEBASEPOINTERHIGH_BYTEOFFSET = 0x8, SCRATCHSPACEBASEPOINTERHIGH_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_VFE_STATE_SUBOP; @@ -710,7 +710,7 @@ typedef struct tagMEDIA_VFE_STATE { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.DispatchLoadBalance = DISPATCH_LOAD_BALANCE_LEAST_LOADED; } - static tagMEDIA_VFE_STATE sInit(void) { + static tagMEDIA_VFE_STATE sInit() { MEDIA_VFE_STATE state; state.init(); return state; @@ -722,13 +722,13 @@ typedef struct tagMEDIA_VFE_STATE { inline void setPerThreadScratchSpace(const uint32_t value) { TheStructure.Common.PerThreadScratchSpace = value; } - inline uint32_t getPerThreadScratchSpace(void) const { + inline uint32_t getPerThreadScratchSpace() const { return (TheStructure.Common.PerThreadScratchSpace); } inline void setStackSize(const uint32_t value) { TheStructure.Common.StackSize = value; } - inline uint32_t getStackSize(void) const { + inline uint32_t getStackSize() const { return (TheStructure.Common.StackSize); } typedef enum tagSCRATCHSPACEBASEPOINTER { @@ -738,55 +738,55 @@ typedef struct tagMEDIA_VFE_STATE { inline void setScratchSpaceBasePointer(const uint32_t value) { TheStructure.Common.ScratchSpaceBasePointer = value >> SCRATCHSPACEBASEPOINTER_BIT_SHIFT; } - inline uint32_t getScratchSpaceBasePointer(void) const { + inline uint32_t getScratchSpaceBasePointer() const { return (TheStructure.Common.ScratchSpaceBasePointer << SCRATCHSPACEBASEPOINTER_BIT_SHIFT); } inline void setScratchSpaceBasePointerHigh(const uint32_t value) { TheStructure.Common.ScratchSpaceBasePointerHigh = value; } - inline uint32_t getScratchSpaceBasePointerHigh(void) const { + inline uint32_t getScratchSpaceBasePointerHigh() const { return (TheStructure.Common.ScratchSpaceBasePointerHigh); } inline void setDispatchLoadBalance(const DISPATCH_LOAD_BALANCE value) { TheStructure.Common.DispatchLoadBalance = value; } - inline DISPATCH_LOAD_BALANCE getDispatchLoadBalance(void) const { + inline DISPATCH_LOAD_BALANCE getDispatchLoadBalance() const { return static_cast(TheStructure.Common.DispatchLoadBalance); } inline void setDisableSlice0Subslice2(const bool value) { TheStructure.Common.DisableSlice0Subslice2 = value; } - inline bool getDisableSlice0Subslice2(void) const { + inline bool getDisableSlice0Subslice2() const { return (TheStructure.Common.DisableSlice0Subslice2); } inline void setNumberOfUrbEntries(const uint32_t value) { TheStructure.Common.NumberOfUrbEntries = value; } - inline uint32_t getNumberOfUrbEntries(void) const { + inline uint32_t getNumberOfUrbEntries() const { return (TheStructure.Common.NumberOfUrbEntries); } inline void setMaximumNumberOfThreads(const uint32_t value) { TheStructure.Common.MaximumNumberOfThreads = value - 1; } - inline uint32_t getMaximumNumberOfThreads(void) const { + inline uint32_t getMaximumNumberOfThreads() const { return (TheStructure.Common.MaximumNumberOfThreads + 1); } inline void setMaximumNumberOfDualSubslices(const uint32_t value) { TheStructure.Common.MaximumNumberOfDual_Subslices = value; } - inline uint32_t getMaximumNumberOfDualSubslices(void) const { + inline uint32_t getMaximumNumberOfDualSubslices() const { return (TheStructure.Common.MaximumNumberOfDual_Subslices); } inline void setCurbeAllocationSize(const uint32_t value) { TheStructure.Common.CurbeAllocationSize = value; } - inline uint32_t getCurbeAllocationSize(void) const { + inline uint32_t getCurbeAllocationSize() const { return (TheStructure.Common.CurbeAllocationSize); } inline void setUrbEntryAllocationSize(const uint32_t value) { TheStructure.Common.UrbEntryAllocationSize = value; } - inline uint32_t getUrbEntryAllocationSize(void) const { + inline uint32_t getUrbEntryAllocationSize() const { return (TheStructure.Common.UrbEntryAllocationSize); } } MEDIA_VFE_STATE; @@ -811,12 +811,12 @@ typedef struct tagMI_ARB_CHECK { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_ARB_CHECK; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_ARB_CHECK sInit(void) { + static tagMI_ARB_CHECK sInit() { MI_ARB_CHECK state; state.init(); return state; @@ -828,14 +828,14 @@ typedef struct tagMI_ARB_CHECK { inline void setPreParserDisable(const bool value) { TheStructure.Common.PreParserDisable = value; } - inline bool getPreParserDisable(void) const { + inline bool getPreParserDisable() const { return TheStructure.Common.PreParserDisable; } inline void setMaskBits(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff); TheStructure.Common.MaskBits = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return TheStructure.Common.MaskBits; } } MI_ARB_CHECK; @@ -911,7 +911,7 @@ typedef struct tagMI_ATOMIC { ATOMIC_8B_INCREMENT = 0x25, ATOMIC_8B_DECREMENT = 0x26, } ATOMIC_OPCODES; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_INLINE_DATA_0; TheStructure.Common.DataSize = DATA_SIZE_DWORD; @@ -920,7 +920,7 @@ typedef struct tagMI_ATOMIC { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_ATOMIC; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_ATOMIC sInit(void) { + static tagMI_ATOMIC sInit() { MI_ATOMIC state; state.init(); return state; @@ -932,50 +932,50 @@ typedef struct tagMI_ATOMIC { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setAtomicOpcode(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff); TheStructure.Common.AtomicOpcode = value; } - inline uint32_t getAtomicOpcode(void) const { + inline uint32_t getAtomicOpcode() const { return TheStructure.Common.AtomicOpcode; } inline void setReturnDataControl(const bool value) { TheStructure.Common.ReturnDataControl = value; } - inline bool getReturnDataControl(void) const { + inline bool getReturnDataControl() const { return TheStructure.Common.ReturnDataControl; } inline void setCsStall(const bool value) { TheStructure.Common.CsStall = value; } - inline bool getCsStall(void) const { + inline bool getCsStall() const { return TheStructure.Common.CsStall; } inline void setInlineData(const bool value) { TheStructure.Common.InlineData = value; } - inline bool getInlineData(void) const { + inline bool getInlineData() const { return TheStructure.Common.InlineData; } inline void setDataSize(const DATA_SIZE value) { TheStructure.Common.DataSize = value; } - inline DATA_SIZE getDataSize(void) const { + inline DATA_SIZE getDataSize() const { return static_cast(TheStructure.Common.DataSize); } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } typedef enum tagMEMORYADDRESS { @@ -986,62 +986,62 @@ typedef struct tagMI_ATOMIC { UNRECOVERABLE_IF(value > 0xffffffff); TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint32_t getMemoryAddress(void) const { + inline uint32_t getMemoryAddress() const { return TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT; } inline void setMemoryAddressHigh(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.MemoryAddressHigh = value; } - inline uint32_t getMemoryAddressHigh(void) const { + inline uint32_t getMemoryAddressHigh() const { return TheStructure.Common.MemoryAddressHigh; } inline void setOperand1DataDword0(const uint32_t value) { TheStructure.Common.Operand1DataDword0 = value; } - inline uint32_t getOperand1DataDword0(void) const { + inline uint32_t getOperand1DataDword0() const { return TheStructure.Common.Operand1DataDword0; } inline void setOperand2DataDword0(const uint32_t value) { TheStructure.Common.Operand2DataDword0 = value; } - inline uint32_t getOperand2DataDword0(void) const { + inline uint32_t getOperand2DataDword0() const { return TheStructure.Common.Operand2DataDword0; } inline void setOperand1DataDword1(const uint32_t value) { TheStructure.Common.Operand1DataDword1 = value; } - inline uint32_t getOperand1DataDword1(void) const { + inline uint32_t getOperand1DataDword1() const { return TheStructure.Common.Operand1DataDword1; } inline void setOperand2DataDword1(const uint32_t value) { TheStructure.Common.Operand2DataDword1 = value; } - inline uint32_t getOperand2DataDword1(void) const { + inline uint32_t getOperand2DataDword1() const { return TheStructure.Common.Operand2DataDword1; } inline void setOperand1DataDword2(const uint32_t value) { TheStructure.Common.Operand1DataDword2 = value; } - inline uint32_t getOperand1DataDword2(void) const { + inline uint32_t getOperand1DataDword2() const { return TheStructure.Common.Operand1DataDword2; } inline void setOperand2DataDword2(const uint32_t value) { TheStructure.Common.Operand2DataDword2 = value; } - inline uint32_t getOperand2DataDword2(void) const { + inline uint32_t getOperand2DataDword2() const { return TheStructure.Common.Operand2DataDword2; } inline void setOperand1DataDword3(const uint32_t value) { TheStructure.Common.Operand1DataDword3 = value; } - inline uint32_t getOperand1DataDword3(void) const { + inline uint32_t getOperand1DataDword3() const { return TheStructure.Common.Operand1DataDword3; } inline void setOperand2DataDword3(const uint32_t value) { TheStructure.Common.Operand2DataDword3 = value; } - inline uint32_t getOperand2DataDword3(void) const { + inline uint32_t getOperand2DataDword3() const { return TheStructure.Common.Operand2DataDword3; } } MI_ATOMIC; @@ -1064,12 +1064,12 @@ typedef struct tagMI_BATCH_BUFFER_END { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_BATCH_BUFFER_END; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_BATCH_BUFFER_END sInit(void) { + static tagMI_BATCH_BUFFER_END sInit() { MI_BATCH_BUFFER_END state; state.init(); return state; @@ -1081,7 +1081,7 @@ typedef struct tagMI_BATCH_BUFFER_END { inline void setEndContext(const bool value) { TheStructure.Common.EndContext = value; } - inline bool getEndContext(void) const { + inline bool getEndContext() const { return TheStructure.Common.EndContext; } } MI_BATCH_BUFFER_END; @@ -1145,7 +1145,7 @@ typedef struct tagMI_BATCH_BUFFER_START { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.AddressSpaceIndicator = ADDRESS_SPACE_INDICATOR_GGTT; @@ -1154,7 +1154,7 @@ typedef struct tagMI_BATCH_BUFFER_START { TheStructure.Mi_Mode_Nestedbatchbufferenableis0.SecondLevelBatchBuffer = SECOND_LEVEL_BATCH_BUFFER_FIRST_LEVEL_BATCH; TheStructure.Mi_Mode_Nestedbatchbufferenableis1.NestedLevelBatchBuffer = NESTED_LEVEL_BATCH_BUFFER_CHAIN; } - static tagMI_BATCH_BUFFER_START sInit(void) { + static tagMI_BATCH_BUFFER_START sInit() { MI_BATCH_BUFFER_START state; state.init(); return state; @@ -1166,31 +1166,31 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setAddressSpaceIndicator(const ADDRESS_SPACE_INDICATOR value) { TheStructure.Common.AddressSpaceIndicator = value; } - inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator(void) const { + inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator() const { return static_cast(TheStructure.Common.AddressSpaceIndicator); } inline void setPredicationEnable(const bool value) { TheStructure.Common.PredicationEnable = value; } - inline bool getPredicationEnable(void) const { + inline bool getPredicationEnable() const { return TheStructure.Common.PredicationEnable; } inline void setEnableCommandCache(const bool value) { TheStructure.Common.EnableCommandCache = value; } - inline bool getEnableCommandCache(void) const { + inline bool getEnableCommandCache() const { return TheStructure.Common.EnableCommandCache; } inline void setPoshEnable(const bool value) { TheStructure.Common.PoshEnable = value; } - inline bool getPoshEnable(void) const { + inline bool getPoshEnable() const { return TheStructure.Common.PoshEnable; } inline void setPoshStart(const bool value) { TheStructure.Common.PoshStart = value; } - inline bool getPoshStart(void) const { + inline bool getPoshStart() const { return TheStructure.Common.PoshStart; } typedef enum tagBATCHBUFFERSTARTADDRESS { @@ -1200,25 +1200,25 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setBatchBufferStartAddress(const uint64_t value) { TheStructure.Common.BatchBufferStartAddress = value >> BATCHBUFFERSTARTADDRESS_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddress(void) const { + 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(void) const { + 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; } - inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer(void) const { + inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer() const { return static_cast(TheStructure.Mi_Mode_Nestedbatchbufferenableis0.SecondLevelBatchBuffer); } inline void setNestedLevelBatchBuffer(const NESTED_LEVEL_BATCH_BUFFER value) { TheStructure.Mi_Mode_Nestedbatchbufferenableis1.NestedLevelBatchBuffer = value; } - inline NESTED_LEVEL_BATCH_BUFFER getNestedLevelBatchBuffer(void) const { + inline NESTED_LEVEL_BATCH_BUFFER getNestedLevelBatchBuffer() const { return static_cast(TheStructure.Mi_Mode_Nestedbatchbufferenableis1.NestedLevelBatchBuffer); } } MI_BATCH_BUFFER_START; @@ -1255,14 +1255,14 @@ typedef struct tagMI_LOAD_REGISTER_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; TheStructure.Common.MmioRemapEnable = true; // this field is manually set } - static tagMI_LOAD_REGISTER_IMM sInit(void) { + static tagMI_LOAD_REGISTER_IMM sInit() { MI_LOAD_REGISTER_IMM state; state.init(); return state; @@ -1275,19 +1275,19 @@ typedef struct tagMI_LOAD_REGISTER_IMM { UNRECOVERABLE_IF(value > 0xf); TheStructure.Common.ByteWriteDisables = value; } - inline uint32_t getByteWriteDisables(void) const { + inline uint32_t getByteWriteDisables() const { return TheStructure.Common.ByteWriteDisables; } inline void setMmioRemapEnable(const bool value) { TheStructure.Common.MmioRemapEnable = value; } - inline bool getMmioRemapEnable(void) const { + inline bool getMmioRemapEnable() const { return TheStructure.Common.MmioRemapEnable; } inline void setAddCsMmioStartOffset(const bool value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline bool getAddCsMmioStartOffset(void) const { + inline bool getAddCsMmioStartOffset() const { return TheStructure.Common.AddCsMmioStartOffset; } typedef enum tagREGISTEROFFSET { @@ -1298,13 +1298,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { UNRECOVERABLE_IF(value > 0x7fffffL); TheStructure.Common.RegisterOffset = value >> REGISTEROFFSET_BIT_SHIFT; } - inline uint64_t getRegisterOffset(void) const { + inline uint64_t getRegisterOffset() const { return TheStructure.Common.RegisterOffset << REGISTEROFFSET_BIT_SHIFT; } inline void setDataDword(const uint64_t value) { TheStructure.Common.DataDword = value; } - inline uint64_t getDataDword(void) const { + inline uint64_t getDataDword() const { return TheStructure.Common.DataDword; } } MI_LOAD_REGISTER_IMM; @@ -1343,13 +1343,13 @@ typedef struct tagMI_LOAD_REGISTER_MEM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_MEM sInit(void) { + static tagMI_LOAD_REGISTER_MEM sInit() { MI_LOAD_REGISTER_MEM state; state.init(); return state; @@ -1361,25 +1361,25 @@ typedef struct tagMI_LOAD_REGISTER_MEM { inline void setMmioRemapEnable(const bool value) { TheStructure.Common.MmioRemapEnable = value; } - inline bool getMmioRemapEnable(void) const { + inline bool getMmioRemapEnable() const { return TheStructure.Common.MmioRemapEnable; } inline void setAddCsMmioStartOffset(const bool value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline bool getAddCsMmioStartOffset(void) const { + inline bool getAddCsMmioStartOffset() const { return TheStructure.Common.AddCsMmioStartOffset; } inline void setAsyncModeEnable(const bool value) { TheStructure.Common.AsyncModeEnable = value; } - inline bool getAsyncModeEnable(void) const { + inline bool getAsyncModeEnable() const { return TheStructure.Common.AsyncModeEnable; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } typedef enum tagREGISTERADDRESS { @@ -1390,7 +1390,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { UNRECOVERABLE_IF(value > 0x7fffff); TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT; } typedef enum tagMEMORYADDRESS { @@ -1401,7 +1401,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { UNRECOVERABLE_IF(value > 0xffffffffffffffffL); TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT; } } MI_LOAD_REGISTER_MEM; @@ -1440,13 +1440,13 @@ typedef struct tagMI_LOAD_REGISTER_REG { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_REG; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_REG sInit(void) { + static tagMI_LOAD_REGISTER_REG sInit() { MI_LOAD_REGISTER_REG state; state.init(); return state; @@ -1458,25 +1458,25 @@ typedef struct tagMI_LOAD_REGISTER_REG { inline void setMmioRemapEnableSource(const bool value) { TheStructure.Common.MmioRemapEnableSource = value; } - inline bool getMmioRemapEnableSource(void) const { + inline bool getMmioRemapEnableSource() const { return TheStructure.Common.MmioRemapEnableSource; } inline void setMmioRemapEnableDestination(const bool value) { TheStructure.Common.MmioRemapEnableDestination = value; } - inline bool getMmioRemapEnableDestination(void) const { + inline bool getMmioRemapEnableDestination() const { return TheStructure.Common.MmioRemapEnableDestination; } inline void setAddCsMmioStartOffsetSource(const bool value) { TheStructure.Common.AddCsMmioStartOffsetSource = value; } - inline bool getAddCsMmioStartOffsetSource(void) const { + inline bool getAddCsMmioStartOffsetSource() const { return TheStructure.Common.AddCsMmioStartOffsetSource; } inline void setAddCsMmioStartOffsetDestination(const bool value) { TheStructure.Common.AddCsMmioStartOffsetDestination = value; } - inline bool getAddCsMmioStartOffsetDestination(void) const { + inline bool getAddCsMmioStartOffsetDestination() const { return TheStructure.Common.AddCsMmioStartOffsetDestination; } typedef enum tagSOURCEREGISTERADDRESS { @@ -1487,7 +1487,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { UNRECOVERABLE_IF(value > 0x7fffff); TheStructure.Common.SourceRegisterAddress = value >> SOURCEREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getSourceRegisterAddress(void) const { + inline uint32_t getSourceRegisterAddress() const { return TheStructure.Common.SourceRegisterAddress << SOURCEREGISTERADDRESS_BIT_SHIFT; } typedef enum tagDESTINATIONREGISTERADDRESS { @@ -1498,7 +1498,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { UNRECOVERABLE_IF(value > 0x7fffff); TheStructure.Common.DestinationRegisterAddress = value >> DESTINATIONREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getDestinationRegisterAddress(void) const { + inline uint32_t getDestinationRegisterAddress() const { return TheStructure.Common.DestinationRegisterAddress << DESTINATIONREGISTERADDRESS_BIT_SHIFT; } } MI_LOAD_REGISTER_REG; @@ -1521,12 +1521,12 @@ typedef struct tagMI_NOOP { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_NOOP; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_NOOP sInit(void) { + static tagMI_NOOP sInit() { MI_NOOP state; state.init(); return state; @@ -1539,13 +1539,13 @@ typedef struct tagMI_NOOP { UNRECOVERABLE_IF(value > 0x3fffff); TheStructure.Common.IdentificationNumber = value; } - inline uint32_t getIdentificationNumber(void) const { + inline uint32_t getIdentificationNumber() const { return TheStructure.Common.IdentificationNumber; } inline void setIdentificationNumberRegisterWriteEnable(const bool value) { TheStructure.Common.IdentificationNumberRegisterWriteEnable = value; } - inline bool getIdentificationNumberRegisterWriteEnable(void) const { + inline bool getIdentificationNumberRegisterWriteEnable() const { return TheStructure.Common.IdentificationNumberRegisterWriteEnable; } } MI_NOOP; @@ -1584,13 +1584,13 @@ typedef struct tagMI_STORE_REGISTER_MEM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_REGISTER_MEM sInit(void) { + static tagMI_STORE_REGISTER_MEM sInit() { MI_STORE_REGISTER_MEM state; state.init(); return state; @@ -1602,25 +1602,25 @@ typedef struct tagMI_STORE_REGISTER_MEM { inline void setMmioRemapEnable(const bool value) { TheStructure.Common.MmioRemapEnable = value; } - inline bool getMmioRemapEnable(void) const { + inline bool getMmioRemapEnable() const { return TheStructure.Common.MmioRemapEnable; } inline void setAddCsMmioStartOffset(const bool value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline bool getAddCsMmioStartOffset(void) const { + inline bool getAddCsMmioStartOffset() const { return TheStructure.Common.AddCsMmioStartOffset; } inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return TheStructure.Common.PredicateEnable; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } typedef enum tagREGISTERADDRESS { @@ -1631,7 +1631,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { UNRECOVERABLE_IF(value > 0x7fffff); TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT; } typedef enum tagMEMORYADDRESS { @@ -1642,7 +1642,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { UNRECOVERABLE_IF(value > 0xffffffffffffffffL); TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT; } } MI_STORE_REGISTER_MEM; @@ -1684,7 +1684,7 @@ typedef struct tagPIPELINE_SELECT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.PipelineSelection = PIPELINE_SELECTION_3D; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_PIPELINE_SELECT; @@ -1692,7 +1692,7 @@ typedef struct tagPIPELINE_SELECT { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_SINGLE_DW; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagPIPELINE_SELECT sInit(void) { + static tagPIPELINE_SELECT sInit() { PIPELINE_SELECT state; state.init(); return state; @@ -1704,44 +1704,44 @@ typedef struct tagPIPELINE_SELECT { inline void setPipelineSelection(const PIPELINE_SELECTION value) { TheStructure.Common.PipelineSelection = value; } - inline PIPELINE_SELECTION getPipelineSelection(void) const { + inline PIPELINE_SELECTION getPipelineSelection() const { return static_cast(TheStructure.Common.PipelineSelection); } inline void setRenderSliceCommonPowerGateEnable(const bool value) { TheStructure.Common.RenderSliceCommonPowerGateEnable = value; } - inline bool getRenderSliceCommonPowerGateEnable(void) const { + inline bool getRenderSliceCommonPowerGateEnable() const { return TheStructure.Common.RenderSliceCommonPowerGateEnable; } inline void setRenderSamplerPowerGateEnable(const bool value) { TheStructure.Common.RenderSamplerPowerGateEnable = value; } - inline bool getRenderSamplerPowerGateEnable(void) const { + inline bool getRenderSamplerPowerGateEnable() const { return TheStructure.Common.RenderSamplerPowerGateEnable; } inline void setMediaSamplerDopClockGateEnable(const bool value) { TheStructure.Common.MediaSamplerDopClockGateEnable = value; } - inline bool getMediaSamplerDopClockGateEnable(void) const { + inline bool getMediaSamplerDopClockGateEnable() const { return TheStructure.Common.MediaSamplerDopClockGateEnable; } inline void setMediaSamplerPowerClockGateDisable(const bool value) { TheStructure.Common.MediaSamplerPowerClockGateDisable = value; } - inline bool getMediaSamplerPowerClockGateDisable(void) const { + inline bool getMediaSamplerPowerClockGateDisable() const { return TheStructure.Common.MediaSamplerPowerClockGateDisable; } inline void setSpecialModeEnable(const bool value) { TheStructure.Common.SpecialModeEnable = value; } - inline bool getSpecialModeEnable(void) const { + inline bool getSpecialModeEnable() const { return TheStructure.Common.SpecialModeEnable; } inline void setMaskBits(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff); TheStructure.Common.MaskBits = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return TheStructure.Common.MaskBits; } } PIPELINE_SELECT; @@ -2274,7 +2274,7 @@ typedef struct tagRENDER_SURFACE_STATE { typedef enum tagMEMORY_COMPRESSION_MODE { MEMORY_COMPRESSION_MODE_HORIZONTAL = 0x0, } MEMORY_COMPRESSION_MODE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MediaBoundaryPixelMode = MEDIA_BOUNDARY_PIXEL_MODE_NORMAL_MODE; TheStructure.Common.RenderCacheReadWriteMode = RENDER_CACHE_READ_WRITE_MODE_WRITE_ONLY_CACHE; @@ -2300,7 +2300,7 @@ typedef struct tagRENDER_SURFACE_STATE { TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma = HALF_PITCH_FOR_CHROMA_DISABLE; TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode = AUXILIARY_SURFACE_MODE_AUX_NONE; } - static tagRENDER_SURFACE_STATE sInit(void) { + static tagRENDER_SURFACE_STATE sInit() { RENDER_SURFACE_STATE state; state.init(); return state; @@ -2312,109 +2312,109 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setCubeFaceEnablePositiveZ(const bool value) { TheStructure.Common.CubeFaceEnablePositiveZ = value; } - inline bool getCubeFaceEnablePositiveZ(void) const { + inline bool getCubeFaceEnablePositiveZ() const { return TheStructure.Common.CubeFaceEnablePositiveZ; } inline void setCubeFaceEnableNegativeZ(const bool value) { TheStructure.Common.CubeFaceEnableNegativeZ = value; } - inline bool getCubeFaceEnableNegativeZ(void) const { + inline bool getCubeFaceEnableNegativeZ() const { return TheStructure.Common.CubeFaceEnableNegativeZ; } inline void setCubeFaceEnablePositiveY(const bool value) { TheStructure.Common.CubeFaceEnablePositiveY = value; } - inline bool getCubeFaceEnablePositiveY(void) const { + inline bool getCubeFaceEnablePositiveY() const { return TheStructure.Common.CubeFaceEnablePositiveY; } inline void setCubeFaceEnableNegativeY(const bool value) { TheStructure.Common.CubeFaceEnableNegativeY = value; } - inline bool getCubeFaceEnableNegativeY(void) const { + inline bool getCubeFaceEnableNegativeY() const { return TheStructure.Common.CubeFaceEnableNegativeY; } inline void setCubeFaceEnablePositiveX(const bool value) { TheStructure.Common.CubeFaceEnablePositiveX = value; } - inline bool getCubeFaceEnablePositiveX(void) const { + inline bool getCubeFaceEnablePositiveX() const { return TheStructure.Common.CubeFaceEnablePositiveX; } inline void setCubeFaceEnableNegativeX(const bool value) { TheStructure.Common.CubeFaceEnableNegativeX = value; } - inline bool getCubeFaceEnableNegativeX(void) const { + inline bool getCubeFaceEnableNegativeX() const { return TheStructure.Common.CubeFaceEnableNegativeX; } inline void setMediaBoundaryPixelMode(const MEDIA_BOUNDARY_PIXEL_MODE value) { TheStructure.Common.MediaBoundaryPixelMode = value; } - inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode(void) const { + inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode() const { return static_cast(TheStructure.Common.MediaBoundaryPixelMode); } inline void setRenderCacheReadWriteMode(const RENDER_CACHE_READ_WRITE_MODE value) { TheStructure.Common.RenderCacheReadWriteMode = value; } - inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode(void) const { + inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode() const { return static_cast(TheStructure.Common.RenderCacheReadWriteMode); } inline void setSamplerL2OutOfOrderModeDisable(const bool value) { TheStructure.Common.SamplerL2OutOfOrderModeDisable = value; } - inline bool getSamplerL2OutOfOrderModeDisable(void) const { + inline bool getSamplerL2OutOfOrderModeDisable() const { return TheStructure.Common.SamplerL2OutOfOrderModeDisable; } inline void setVerticalLineStrideOffset(const bool value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline bool getVerticalLineStrideOffset(void) const { + inline bool getVerticalLineStrideOffset() const { return TheStructure.Common.VerticalLineStrideOffset; } inline void setVerticalLineStride(const bool value) { TheStructure.Common.VerticalLineStride = value; } - inline bool getVerticalLineStride(void) const { + inline bool getVerticalLineStride() const { return TheStructure.Common.VerticalLineStride; } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setSurfaceHorizontalAlignment(const SURFACE_HORIZONTAL_ALIGNMENT value) { TheStructure.Common.SurfaceHorizontalAlignment = value; } - inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment(void) const { + inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment() const { return static_cast(TheStructure.Common.SurfaceHorizontalAlignment); } inline void setSurfaceVerticalAlignment(const SURFACE_VERTICAL_ALIGNMENT value) { TheStructure.Common.SurfaceVerticalAlignment = value; } - inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment(void) const { + inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment() const { return static_cast(TheStructure.Common.SurfaceVerticalAlignment); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setAstcEnable(const bool value) { TheStructure.Common.AstcEnable = value; } - inline bool getAstcEnable(void) const { + inline bool getAstcEnable() const { return TheStructure.Common.AstcEnable; } inline void setSurfaceArray(const bool value) { TheStructure.Common.SurfaceArray = value; } - inline bool getSurfaceArray(void) const { + inline bool getSurfaceArray() const { return TheStructure.Common.SurfaceArray; } inline void setSurfaceType(const SURFACE_TYPE value) { TheStructure.Common.SurfaceType = value; } - inline SURFACE_TYPE getSurfaceType(void) const { + inline SURFACE_TYPE getSurfaceType() const { return static_cast(TheStructure.Common.SurfaceType); } typedef enum tagSURFACEQPITCH { @@ -2425,52 +2425,52 @@ typedef struct tagRENDER_SURFACE_STATE { DEBUG_BREAK_IF(value > 0x7fff); TheStructure.Common.SurfaceQpitch = value >> SURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getSurfaceQpitch(void) const { + inline uint32_t getSurfaceQpitch() const { return TheStructure.Common.SurfaceQpitch << SURFACEQPITCH_BIT_SHIFT; } inline void setSampleTapDiscardDisable(const SAMPLE_TAP_DISCARD_DISABLE value) { TheStructure.Common.SampleTapDiscardDisable = value; } - inline SAMPLE_TAP_DISCARD_DISABLE getSampleTapDiscardDisable(void) const { + inline SAMPLE_TAP_DISCARD_DISABLE getSampleTapDiscardDisable() const { return static_cast(TheStructure.Common.SampleTapDiscardDisable); } inline void setDoubleFetchDisable(const bool value) { TheStructure.Common.DoubleFetchDisable = value; } - inline bool getDoubleFetchDisable(void) const { + inline bool getDoubleFetchDisable() const { return TheStructure.Common.DoubleFetchDisable; } inline void setCornerTexelMode(const bool value) { TheStructure.Common.CornerTexelMode = value; } - inline bool getCornerTexelMode(void) const { + inline bool getCornerTexelMode() const { return TheStructure.Common.CornerTexelMode; } inline void setBaseMipLevel(const uint32_t value) { DEBUG_BREAK_IF(value > 0xf80000); TheStructure.Common.BaseMipLevel = value; } - inline uint32_t getBaseMipLevel(void) const { + inline uint32_t getBaseMipLevel() const { return TheStructure.Common.BaseMipLevel; } inline void setMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.MemoryObjectControlStateReserved_56 = value; } - inline uint32_t getMemoryObjectControlStateReserved(void) const { + inline uint32_t getMemoryObjectControlStateReserved() const { return (TheStructure.Common.MemoryObjectControlStateReserved_56); } inline void setMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { DEBUG_BREAK_IF(value > 0x7e000000L); TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); } inline void setMemoryObjectControlState(const uint32_t value) { TheStructure.Common.MemoryObjectControlStateReserved_56 = value; TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = (value >> 1); } - inline uint32_t getMemoryObjectControlState(void) const { + inline uint32_t getMemoryObjectControlState() const { uint32_t mocs = TheStructure.Common.MemoryObjectControlStateReserved_56; mocs |= (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); return (mocs); @@ -2478,137 +2478,137 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setEnableUnormPathInColorPipe(const bool value) { TheStructure.Common.EnableUnormPathInColorPipe = value; } - inline bool getEnableUnormPathInColorPipe(void) const { + inline bool getEnableUnormPathInColorPipe() const { return TheStructure.Common.EnableUnormPathInColorPipe; } inline void setWidth(const uint32_t value) { DEBUG_BREAK_IF(value > 0x4000); TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return TheStructure.Common.Width + 1; } inline void setHeight(const uint32_t value) { DEBUG_BREAK_IF(value > 0x3fff0000); TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return TheStructure.Common.Height + 1; } inline void setDepthStencilResource(const bool value) { TheStructure.Common.DepthStencilResource = value; } - inline bool getDepthStencilResource(void) const { + inline bool getDepthStencilResource() const { return TheStructure.Common.DepthStencilResource; } inline void setSurfacePitch(const uint32_t value) { DEBUG_BREAK_IF(value > 0x3ffff); TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return TheStructure.Common.SurfacePitch + 1; } inline void setNullProbingEnable(const NULL_PROBING_ENABLE value) { TheStructure.Common.NullProbingEnable = value; } - inline NULL_PROBING_ENABLE getNullProbingEnable(void) const { + inline NULL_PROBING_ENABLE getNullProbingEnable() const { return static_cast(TheStructure.Common.NullProbingEnable); } inline void setStandardTilingModeExtensions(const STANDARD_TILING_MODE_EXTENSIONS value) { TheStructure.Common.StandardTilingModeExtensions = value; } - inline STANDARD_TILING_MODE_EXTENSIONS getStandardTilingModeExtensions(void) const { + inline STANDARD_TILING_MODE_EXTENSIONS getStandardTilingModeExtensions() const { return static_cast(TheStructure.Common.StandardTilingModeExtensions); } inline void setTileAddressMappingMode(const TILE_ADDRESS_MAPPING_MODE value) { TheStructure.Common.TileAddressMappingMode = value; } - inline TILE_ADDRESS_MAPPING_MODE getTileAddressMappingMode(void) const { + inline TILE_ADDRESS_MAPPING_MODE getTileAddressMappingMode() const { return static_cast(TheStructure.Common.TileAddressMappingMode); } inline void setDepth(const uint32_t value) { DEBUG_BREAK_IF(value > 0xffe00000L); TheStructure.Common.Depth = value - 1; } - inline uint32_t getDepth(void) const { + inline uint32_t getDepth() const { return TheStructure.Common.Depth + 1; } inline void setMultisamplePositionPaletteIndex(const uint32_t value) { DEBUG_BREAK_IF(value > 0x7); TheStructure.Common.MultisamplePositionPaletteIndex = value; } - inline uint32_t getMultisamplePositionPaletteIndex(void) const { + inline uint32_t getMultisamplePositionPaletteIndex() const { return TheStructure.Common.MultisamplePositionPaletteIndex; } inline void setNumberOfMultisamples(const NUMBER_OF_MULTISAMPLES value) { TheStructure.Common.NumberOfMultisamples = value; } - inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples(void) const { + inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples() const { return static_cast(TheStructure.Common.NumberOfMultisamples); } inline void setMultisampledSurfaceStorageFormat(const MULTISAMPLED_SURFACE_STORAGE_FORMAT value) { TheStructure.Common.MultisampledSurfaceStorageFormat = value; } - inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat(void) const { + inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat() const { return static_cast(TheStructure.Common.MultisampledSurfaceStorageFormat); } inline void setRenderTargetViewExtent(const uint32_t value) { DEBUG_BREAK_IF(value > 0x7ff); TheStructure.Common.RenderTargetViewExtent = value - 1; } - inline uint32_t getRenderTargetViewExtent(void) const { + inline uint32_t getRenderTargetViewExtent() const { return TheStructure.Common.RenderTargetViewExtent + 1; } inline void setMinimumArrayElement(const uint32_t value) { DEBUG_BREAK_IF(value > 0x7ff); TheStructure.Common.MinimumArrayElement = value; } - inline uint32_t getMinimumArrayElement(void) const { + inline uint32_t getMinimumArrayElement() const { return TheStructure.Common.MinimumArrayElement; } inline void setRenderTargetAndSampleUnormRotation(const RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION value) { TheStructure.Common.RenderTargetAndSampleUnormRotation = value; } - inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation(void) const { + inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation() const { return static_cast(TheStructure.Common.RenderTargetAndSampleUnormRotation); } inline void setMipCountLod(const uint32_t value) { DEBUG_BREAK_IF(value > 0xf); TheStructure.Common.MipCountLod = value; } - inline uint32_t getMipCountLod(void) const { + inline uint32_t getMipCountLod() const { return TheStructure.Common.MipCountLod; } inline void setSurfaceMinLod(const uint32_t value) { DEBUG_BREAK_IF(value > 0xf0); TheStructure.Common.SurfaceMinLod = value; } - inline uint32_t getSurfaceMinLod(void) const { + inline uint32_t getSurfaceMinLod() const { return TheStructure.Common.SurfaceMinLod; } inline void setMipTailStartLod(const uint32_t value) { DEBUG_BREAK_IF(value > 0xf00); TheStructure.Common.MipTailStartLod = value; } - inline uint32_t getMipTailStartLod(void) const { + inline uint32_t getMipTailStartLod() const { return TheStructure.Common.MipTailStartLod; } inline void setCoherencyType(const COHERENCY_TYPE value) { TheStructure.Common.CoherencyType = value; } - inline COHERENCY_TYPE getCoherencyType(void) const { + inline COHERENCY_TYPE getCoherencyType() const { return static_cast(TheStructure.Common.CoherencyType); } inline void setTiledResourceMode(const TILED_RESOURCE_MODE value) { TheStructure.Common.TiledResourceMode = value; } - inline TILED_RESOURCE_MODE getTiledResourceMode(void) const { + inline TILED_RESOURCE_MODE getTiledResourceMode() const { return static_cast(TheStructure.Common.TiledResourceMode); } inline void setEwaDisableForCube(const bool value) { TheStructure.Common.EwaDisableForCube = value; } - inline bool getEwaDisableForCube(void) const { + inline bool getEwaDisableForCube() const { return TheStructure.Common.EwaDisableForCube; } typedef enum tagYOFFSET { @@ -2619,7 +2619,7 @@ typedef struct tagRENDER_SURFACE_STATE { DEBUG_BREAK_IF(value > 0xe00000); TheStructure.Common.YOffset = value >> YOFFSET_BIT_SHIFT; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return TheStructure.Common.YOffset << YOFFSET_BIT_SHIFT; } typedef enum tagXOFFSET { @@ -2630,88 +2630,88 @@ typedef struct tagRENDER_SURFACE_STATE { DEBUG_BREAK_IF(value > 0xfe000000L); TheStructure.Common.XOffset = value >> XOFFSET_BIT_SHIFT; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return TheStructure.Common.XOffset << XOFFSET_BIT_SHIFT; } inline void setYuvInterpolationEnable(const bool value) { TheStructure.Common.YuvInterpolationEnable = value; } - inline bool getYuvInterpolationEnable(void) const { + inline bool getYuvInterpolationEnable() const { return TheStructure.Common.YuvInterpolationEnable; } inline void setResourceMinLod(const uint32_t value) { DEBUG_BREAK_IF(value > 0xfff); TheStructure.Common.ResourceMinLod = value; } - inline uint32_t getResourceMinLod(void) const { + inline uint32_t getResourceMinLod() const { return TheStructure.Common.ResourceMinLod; } inline void setShaderChannelSelectAlpha(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectAlpha = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha() const { return static_cast(TheStructure.Common.ShaderChannelSelectAlpha); } inline void setShaderChannelSelectBlue(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectBlue = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue() const { return static_cast(TheStructure.Common.ShaderChannelSelectBlue); } inline void setShaderChannelSelectGreen(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectGreen = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen() const { return static_cast(TheStructure.Common.ShaderChannelSelectGreen); } inline void setShaderChannelSelectRed(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectRed = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed() const { return static_cast(TheStructure.Common.ShaderChannelSelectRed); } inline void setMemoryCompressionEnable(const bool value) { TheStructure.Common.MemoryCompressionEnable = value; } - inline bool getMemoryCompressionEnable(void) const { + inline bool getMemoryCompressionEnable() const { return TheStructure.Common.MemoryCompressionEnable; } inline void setMemoryCompressionMode(const MEMORY_COMPRESSION_MODE value) { TheStructure.Common.MemoryCompressionMode = value; } - inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode(void) const { + inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode() const { return static_cast(TheStructure.Common.MemoryCompressionMode); } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddress = value; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return TheStructure.Common.SurfaceBaseAddress; } inline void setQuiltWidth(const uint64_t value) { DEBUG_BREAK_IF(value > 0x1f); TheStructure.Common.QuiltWidth = value; } - inline uint64_t getQuiltWidth(void) const { + inline uint64_t getQuiltWidth() const { return TheStructure.Common.QuiltWidth; } inline void setQuiltHeight(const uint64_t value) { DEBUG_BREAK_IF(value > 0x3e0); TheStructure.Common.QuiltHeight = value; } - inline uint64_t getQuiltHeight(void) const { + inline uint64_t getQuiltHeight() const { return TheStructure.Common.QuiltHeight; } inline void setClearValueAddressEnable(const bool value) { TheStructure.Common.ClearValueAddressEnable = value; } - inline bool getClearValueAddressEnable(void) const { + inline bool getClearValueAddressEnable() const { return TheStructure.Common.ClearValueAddressEnable; } inline void setProceduralTexture(const bool value) { TheStructure.Common.ProceduralTexture = value; } - inline bool getProceduralTexture(void) const { + inline bool getProceduralTexture() const { return TheStructure.Common.ProceduralTexture; } typedef enum tagCLEARADDRESSLOW { @@ -2722,67 +2722,67 @@ typedef struct tagRENDER_SURFACE_STATE { DEBUG_BREAK_IF(value > 0xffffffc0L); TheStructure.Common.ClearAddressLow = value >> CLEARADDRESSLOW_BIT_SHIFT; } - inline uint32_t getClearColorAddress(void) const { + inline uint32_t getClearColorAddress() const { return TheStructure.Common.ClearAddressLow << CLEARADDRESSLOW_BIT_SHIFT; } inline void setClearColorAddressHigh(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.ClearAddressHigh = value; } - inline uint32_t getClearColorAddressHigh(void) const { + inline uint32_t getClearColorAddressHigh() const { return TheStructure.Common.ClearAddressHigh; } inline void setYOffsetForUOrUvPlane(const uint32_t value) { DEBUG_BREAK_IF(value > 0x3fff); TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane = value; } - inline uint32_t getYOffsetForUOrUvPlane(void) const { + inline uint32_t getYOffsetForUOrUvPlane() const { return TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane; } inline void setXOffsetForUOrUvPlane(const uint32_t value) { DEBUG_BREAK_IF(value > 0x3fff0000); TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane = value; } - inline uint32_t getXOffsetForUOrUvPlane(void) const { + inline uint32_t getXOffsetForUOrUvPlane() const { return TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane; } inline void setHalfPitchForChroma(const HALF_PITCH_FOR_CHROMA value) { TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma = value; } - inline HALF_PITCH_FOR_CHROMA getHalfPitchForChroma(void) const { + inline HALF_PITCH_FOR_CHROMA getHalfPitchForChroma() const { return static_cast(TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma); } inline void setSeparateUvPlaneEnable(const bool value) { TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable = value; } - inline bool getSeparateUvPlaneEnable(void) const { + inline bool getSeparateUvPlaneEnable() const { return TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable; } inline void setYOffsetForVPlane(const uint64_t value) { DEBUG_BREAK_IF(value > 0x3fff00000000L); TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane = value; } - inline uint64_t getYOffsetForVPlane(void) const { + inline uint64_t getYOffsetForVPlane() const { return TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane; } inline void setXOffsetForVPlane(const uint64_t value) { DEBUG_BREAK_IF(value > 0x3fff000000000000L); TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane = value; } - inline uint64_t getXOffsetForVPlane(void) const { + inline uint64_t getXOffsetForVPlane() const { return TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane; } inline void setAuxiliarySurfaceMode(const AUXILIARY_SURFACE_MODE value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode = value; } - inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode(void) const { + inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode() const { return static_cast(TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode); } inline void setAuxiliarySurfacePitch(const uint32_t value) { DEBUG_BREAK_IF(value > 0xff8); TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch = value - 1; } - inline uint32_t getAuxiliarySurfacePitch(void) const { + inline uint32_t getAuxiliarySurfacePitch() const { return TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch + 1; } typedef enum tagAUXILIARYSURFACEQPITCH { @@ -2793,7 +2793,7 @@ typedef struct tagRENDER_SURFACE_STATE { DEBUG_BREAK_IF(value > 0x7fff0000L); TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch = value >> AUXILIARYSURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getAuxiliarySurfaceQpitch(void) const { + inline uint32_t getAuxiliarySurfaceQpitch() const { return TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch << AUXILIARYSURFACEQPITCH_BIT_SHIFT; } typedef enum tagAUXILIARYSURFACEBASEADDRESS { @@ -2804,7 +2804,7 @@ typedef struct tagRENDER_SURFACE_STATE { DEBUG_BREAK_IF(value > 0xfffffffffffff000L); TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress = value >> AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getAuxiliarySurfaceBaseAddress(void) const { + inline uint64_t getAuxiliarySurfaceBaseAddress() const { return TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress << AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT; } } RENDER_SURFACE_STATE; @@ -2967,7 +2967,7 @@ typedef struct tagSAMPLER_STATE { LOW_QUALITY_FILTER_DISABLE = 0x0, LOW_QUALITY_FILTER_ENABLE = 0x1, } LOW_QUALITY_FILTER; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.LodAlgorithm = LOD_ALGORITHM_LEGACY; TheStructure.Common.MinModeFilter = MIN_MODE_FILTER_NEAREST; @@ -2988,7 +2988,7 @@ typedef struct tagSAMPLER_STATE { TheStructure.Common.ReductionType = REDUCTION_TYPE_STD_FILTER; TheStructure.Common.LowQualityFilter = LOW_QUALITY_FILTER_DISABLE; } - static tagSAMPLER_STATE sInit(void) { + static tagSAMPLER_STATE sInit() { SAMPLER_STATE state; state.init(); return state; @@ -3000,137 +3000,137 @@ typedef struct tagSAMPLER_STATE { inline void setLodAlgorithm(const LOD_ALGORITHM value) { TheStructure.Common.LodAlgorithm = value; } - inline LOD_ALGORITHM getLodAlgorithm(void) const { + inline LOD_ALGORITHM getLodAlgorithm() const { return static_cast(TheStructure.Common.LodAlgorithm); } inline void setTextureLodBias(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1fff); TheStructure.Common.TextureLodBias = value; } - inline uint32_t getTextureLodBias(void) const { + inline uint32_t getTextureLodBias() const { return TheStructure.Common.TextureLodBias; } inline void setMinModeFilter(const MIN_MODE_FILTER value) { TheStructure.Common.MinModeFilter = value; } - inline MIN_MODE_FILTER getMinModeFilter(void) const { + inline MIN_MODE_FILTER getMinModeFilter() const { return static_cast(TheStructure.Common.MinModeFilter); } inline void setMagModeFilter(const MAG_MODE_FILTER value) { TheStructure.Common.MagModeFilter = value; } - inline MAG_MODE_FILTER getMagModeFilter(void) const { + inline MAG_MODE_FILTER getMagModeFilter() const { return static_cast(TheStructure.Common.MagModeFilter); } inline void setMipModeFilter(const MIP_MODE_FILTER value) { TheStructure.Common.MipModeFilter = value; } - inline MIP_MODE_FILTER getMipModeFilter(void) const { + inline MIP_MODE_FILTER getMipModeFilter() const { return static_cast(TheStructure.Common.MipModeFilter); } inline void setLowQualityCubeCornerMode(const LOW_QUALITY_CUBE_CORNER_MODE value) { TheStructure.Common.LowQualityCubeCornerMode = value; } - inline LOW_QUALITY_CUBE_CORNER_MODE getLowQualityCubeCornerMode(void) const { + inline LOW_QUALITY_CUBE_CORNER_MODE getLowQualityCubeCornerMode() const { return static_cast(TheStructure.Common.LowQualityCubeCornerMode); } inline void setLodPreclampMode(const LOD_PRECLAMP_MODE value) { TheStructure.Common.LodPreclampMode = value; } - inline LOD_PRECLAMP_MODE getLodPreclampMode(void) const { + inline LOD_PRECLAMP_MODE getLodPreclampMode() const { return static_cast(TheStructure.Common.LodPreclampMode); } inline void setTextureBorderColorMode(const TEXTURE_BORDER_COLOR_MODE value) { TheStructure.Common.TextureBorderColorMode = value; } - inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode(void) const { + inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode() const { return static_cast(TheStructure.Common.TextureBorderColorMode); } inline void setCpsLodCompensationEnable(const bool value) { TheStructure.Common.CpsLodCompensationEnable = value; } - inline bool getCpsLodCompensationEnable(void) const { + inline bool getCpsLodCompensationEnable() const { return TheStructure.Common.CpsLodCompensationEnable; } inline void setSamplerDisable(const bool value) { TheStructure.Common.SamplerDisable = value; } - inline bool getSamplerDisable(void) const { + inline bool getSamplerDisable() const { return TheStructure.Common.SamplerDisable; } inline void setCubeSurfaceControlMode(const CUBE_SURFACE_CONTROL_MODE value) { TheStructure.Common.CubeSurfaceControlMode = value; } - inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode(void) const { + inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode() const { return static_cast(TheStructure.Common.CubeSurfaceControlMode); } inline void setShadowFunction(const SHADOW_FUNCTION value) { TheStructure.Common.ShadowFunction = value; } - inline SHADOW_FUNCTION getShadowFunction(void) const { + inline SHADOW_FUNCTION getShadowFunction() const { return static_cast(TheStructure.Common.ShadowFunction); } inline void setChromakeyMode(const CHROMAKEY_MODE value) { TheStructure.Common.ChromakeyMode = value; } - inline CHROMAKEY_MODE getChromakeyMode(void) const { + inline CHROMAKEY_MODE getChromakeyMode() const { return static_cast(TheStructure.Common.ChromakeyMode); } inline void setChromakeyIndex(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3); TheStructure.Common.ChromakeyIndex = value; } - inline uint32_t getChromakeyIndex(void) const { + inline uint32_t getChromakeyIndex() const { return TheStructure.Common.ChromakeyIndex; } inline void setChromakeyEnable(const bool value) { TheStructure.Common.ChromakeyEnable = value; } - inline bool getChromakeyEnable(void) const { + inline bool getChromakeyEnable() const { return TheStructure.Common.ChromakeyEnable; } inline void setMaxLod(const uint32_t value) { UNRECOVERABLE_IF(value > 0xfff); TheStructure.Common.MaxLod = value; } - inline uint32_t getMaxLod(void) const { + inline uint32_t getMaxLod() const { return TheStructure.Common.MaxLod; } inline void setMinLod(const uint32_t value) { UNRECOVERABLE_IF(value > 0xfff); TheStructure.Common.MinLod = value; } - inline uint32_t getMinLod(void) const { + inline uint32_t getMinLod() const { return TheStructure.Common.MinLod; } inline void setLodClampMagnificationMode(const LOD_CLAMP_MAGNIFICATION_MODE value) { TheStructure.Common.LodClampMagnificationMode = value; } - inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode(void) const { + inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode() const { return static_cast(TheStructure.Common.LodClampMagnificationMode); } inline void setSrgbDecode(const SRGB_DECODE value) { TheStructure.Common.SrgbDecode = value; } - inline SRGB_DECODE getSrgbDecode(void) const { + inline SRGB_DECODE getSrgbDecode() const { return static_cast(TheStructure.Common.SrgbDecode); } inline void setReturnFilterWeightForNullTexels(const RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS value) { TheStructure.Common.ReturnFilterWeightForNullTexels = value; } - inline RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS getReturnFilterWeightForNullTexels(void) const { + inline RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS getReturnFilterWeightForNullTexels() const { return static_cast(TheStructure.Common.ReturnFilterWeightForNullTexels); } inline void setReturnFilterWeightForBorderTexels(const RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS value) { TheStructure.Common.ReturnFilterWeightForBorderTexels = value; } - inline RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS getReturnFilterWeightForBorderTexels(void) const { + inline RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS getReturnFilterWeightForBorderTexels() const { return static_cast(TheStructure.Common.ReturnFilterWeightForBorderTexels); } inline void setForceGather4Behavior(const bool value) { TheStructure.Common.ForceGather4Behavior = value; } - inline bool getForceGather4Behavior(void) const { + inline bool getForceGather4Behavior() const { return TheStructure.Common.ForceGather4Behavior; } typedef enum tagINDIRECTSTATEPOINTER { @@ -3141,110 +3141,110 @@ typedef struct tagSAMPLER_STATE { UNRECOVERABLE_IF(value > 0xffffff); TheStructure.Common.IndirectStatePointer = static_cast(value) >> INDIRECTSTATEPOINTER_BIT_SHIFT; } - inline uint32_t getIndirectStatePointer(void) const { + inline uint32_t getIndirectStatePointer() const { return TheStructure.Common.IndirectStatePointer << INDIRECTSTATEPOINTER_BIT_SHIFT; } inline void setExtendedIndirectStatePointer(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff); TheStructure.Common.ExtendedIndirectStatePointer = value; } - inline uint32_t getExtendedIndirectStatePointer(void) const { + inline uint32_t getExtendedIndirectStatePointer() const { return TheStructure.Common.ExtendedIndirectStatePointer; } inline void setTczAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TczAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTczAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTczAddressControlMode() const { return static_cast(TheStructure.Common.TczAddressControlMode); } inline void setTcyAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcyAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode() const { return static_cast(TheStructure.Common.TcyAddressControlMode); } inline void setTcxAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcxAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode() const { return static_cast(TheStructure.Common.TcxAddressControlMode); } inline void setReductionTypeEnable(const bool value) { TheStructure.Common.ReductionTypeEnable = value; } - inline bool getReductionTypeEnable(void) const { + inline bool getReductionTypeEnable() const { return TheStructure.Common.ReductionTypeEnable; } inline void setNonNormalizedCoordinateEnable(const bool value) { TheStructure.Common.NonNormalizedCoordinateEnable = value; } - inline bool getNonNormalizedCoordinateEnable(void) const { + inline bool getNonNormalizedCoordinateEnable() const { return TheStructure.Common.NonNormalizedCoordinateEnable; } inline void setMipLinearFilterQuality(const MIP_LINEAR_FILTER_QUALITY value) { TheStructure.Common.MipLinearFilterQuality = value; } - inline MIP_LINEAR_FILTER_QUALITY getMipLinearFilterQuality(void) const { + inline MIP_LINEAR_FILTER_QUALITY getMipLinearFilterQuality() const { return static_cast(TheStructure.Common.MipLinearFilterQuality); } inline void setRAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMinFilterRoundingEnable = value; } - inline bool getRAddressMinFilterRoundingEnable(void) const { + inline bool getRAddressMinFilterRoundingEnable() const { return TheStructure.Common.RAddressMinFilterRoundingEnable; } inline void setRAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMagFilterRoundingEnable = value; } - inline bool getRAddressMagFilterRoundingEnable(void) const { + inline bool getRAddressMagFilterRoundingEnable() const { return TheStructure.Common.RAddressMagFilterRoundingEnable; } inline void setVAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMinFilterRoundingEnable = value; } - inline bool getVAddressMinFilterRoundingEnable(void) const { + inline bool getVAddressMinFilterRoundingEnable() const { return TheStructure.Common.VAddressMinFilterRoundingEnable; } inline void setVAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMagFilterRoundingEnable = value; } - inline bool getVAddressMagFilterRoundingEnable(void) const { + inline bool getVAddressMagFilterRoundingEnable() const { return TheStructure.Common.VAddressMagFilterRoundingEnable; } inline void setUAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMinFilterRoundingEnable = value; } - inline bool getUAddressMinFilterRoundingEnable(void) const { + inline bool getUAddressMinFilterRoundingEnable() const { return TheStructure.Common.UAddressMinFilterRoundingEnable; } inline void setUAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMagFilterRoundingEnable = value; } - inline bool getUAddressMagFilterRoundingEnable(void) const { + inline bool getUAddressMagFilterRoundingEnable() const { return TheStructure.Common.UAddressMagFilterRoundingEnable; } inline void setMaximumAnisotropy(const MAXIMUM_ANISOTROPY value) { TheStructure.Common.MaximumAnisotropy = value; } - inline MAXIMUM_ANISOTROPY getMaximumAnisotropy(void) const { + inline MAXIMUM_ANISOTROPY getMaximumAnisotropy() const { return static_cast(TheStructure.Common.MaximumAnisotropy); } inline void setReductionType(const REDUCTION_TYPE value) { TheStructure.Common.ReductionType = value; } - inline REDUCTION_TYPE getReductionType(void) const { + inline REDUCTION_TYPE getReductionType() const { return static_cast(TheStructure.Common.ReductionType); } inline void setLowQualityFilter(const LOW_QUALITY_FILTER value) { TheStructure.Common.LowQualityFilter = value; } - inline LOW_QUALITY_FILTER getLowQualityFilter(void) const { + inline LOW_QUALITY_FILTER getLowQualityFilter() const { return static_cast(TheStructure.Common.LowQualityFilter); } inline void setAllowLowQualityLodCalculation(const bool value) { TheStructure.Common.AllowLowQualityLodCalculation = value; } - inline bool getAllowLowQualityLodCalculation(void) const { + inline bool getAllowLowQualityLodCalculation() const { return TheStructure.Common.AllowLowQualityLodCalculation; } } SAMPLER_STATE; @@ -3355,7 +3355,7 @@ typedef struct tagSTATE_BASE_ADDRESS { BINDLESSSAMPLERSTATEBASEADDRESS_BYTEOFFSET = 0x4c, BINDLESSSAMPLERSTATEBASEADDRESS_INDEX = 0x13, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_BASE_ADDRESS; @@ -3363,7 +3363,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagSTATE_BASE_ADDRESS sInit(void) { + static tagSTATE_BASE_ADDRESS sInit() { STATE_BASE_ADDRESS state; state.init(); return state; @@ -3375,19 +3375,19 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.GeneralStateBaseAddressModifyEnable = value; } - inline bool getGeneralStateBaseAddressModifyEnable(void) const { + inline bool getGeneralStateBaseAddressModifyEnable() const { return (TheStructure.Common.GeneralStateBaseAddressModifyEnable); } inline void setGeneralStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getGeneralStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved); } inline void setGeneralStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getGeneralStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagGENERALSTATEBASEADDRESS { @@ -3397,26 +3397,26 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddress(const uint64_t value) { TheStructure.Common.GeneralStateBaseAddress = value >> GENERALSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getGeneralStateBaseAddress(void) const { + inline uint64_t getGeneralStateBaseAddress() const { return (TheStructure.Common.GeneralStateBaseAddress << GENERALSTATEBASEADDRESS_BIT_SHIFT); } inline void setStatelessDataPortAccessMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved); } inline void setStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1); } inline void setStatelessDataPortAccessMemoryObjectControlState(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = (value >> 1); } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlState(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlState() const { uint32_t mocs = TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1); return (mocs); @@ -3424,19 +3424,19 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.SurfaceStateBaseAddressModifyEnable = value; } - inline bool getSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.SurfaceStateBaseAddressModifyEnable); } inline void setSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved); } inline void setSurfaceStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getSurfaceStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagSURFACESTATEBASEADDRESS { @@ -3446,25 +3446,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceStateBaseAddress = value >> SURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getSurfaceStateBaseAddress(void) const { + inline uint64_t getSurfaceStateBaseAddress() const { return (TheStructure.Common.SurfaceStateBaseAddress << SURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setDynamicStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.DynamicStateBaseAddressModifyEnable = value; } - inline bool getDynamicStateBaseAddressModifyEnable(void) const { + inline bool getDynamicStateBaseAddressModifyEnable() const { return (TheStructure.Common.DynamicStateBaseAddressModifyEnable); } inline void setDynamicStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getDynamicStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved); } inline void setDynamicStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getDynamicStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagDYNAMICSTATEBASEADDRESS { @@ -3474,25 +3474,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setDynamicStateBaseAddress(const uint64_t value) { TheStructure.Common.DynamicStateBaseAddress = value >> DYNAMICSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getDynamicStateBaseAddress(void) const { + inline uint64_t getDynamicStateBaseAddress() const { return (TheStructure.Common.DynamicStateBaseAddress << DYNAMICSTATEBASEADDRESS_BIT_SHIFT); } inline void setIndirectObjectBaseAddressModifyEnable(const bool value) { TheStructure.Common.IndirectObjectBaseAddressModifyEnable = value; } - inline bool getIndirectObjectBaseAddressModifyEnable(void) const { + inline bool getIndirectObjectBaseAddressModifyEnable() const { return (TheStructure.Common.IndirectObjectBaseAddressModifyEnable); } inline void setIndirectObjectMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.IndirectObjectMemoryObjectControlState_Reserved = value; } - inline uint64_t getIndirectObjectMemoryObjectControlStateReserved(void) const { + inline uint64_t getIndirectObjectMemoryObjectControlStateReserved() const { return (TheStructure.Common.IndirectObjectMemoryObjectControlState_Reserved); } inline void setIndirectObjectMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.IndirectObjectMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getIndirectObjectMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getIndirectObjectMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.IndirectObjectMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagINDIRECTOBJECTBASEADDRESS { @@ -3502,25 +3502,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setIndirectObjectBaseAddress(const uint64_t value) { TheStructure.Common.IndirectObjectBaseAddress = value >> INDIRECTOBJECTBASEADDRESS_BIT_SHIFT; } - inline uint64_t getIndirectObjectBaseAddress(void) const { + inline uint64_t getIndirectObjectBaseAddress() const { return (TheStructure.Common.IndirectObjectBaseAddress << INDIRECTOBJECTBASEADDRESS_BIT_SHIFT); } inline void setInstructionBaseAddressModifyEnable(const bool value) { TheStructure.Common.InstructionBaseAddressModifyEnable = value; } - inline bool getInstructionBaseAddressModifyEnable(void) const { + inline bool getInstructionBaseAddressModifyEnable() const { return (TheStructure.Common.InstructionBaseAddressModifyEnable); } inline void setInstructionMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = value; } - inline uint64_t getInstructionMemoryObjectControlStateReserved(void) const { + inline uint64_t getInstructionMemoryObjectControlStateReserved() const { return (TheStructure.Common.InstructionMemoryObjectControlState_Reserved); } inline void setInstructionMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getInstructionMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getInstructionMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables << 1); } inline void setInstructionMemoryObjectControlState(const uint32_t value) { @@ -3528,7 +3528,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = val; TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables = (val >> 1); } - inline uint32_t getInstructionMemoryObjectControlState(void) const { + inline uint32_t getInstructionMemoryObjectControlState() const { uint64_t mocs = TheStructure.Common.InstructionMemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables << 1); return static_cast(mocs); @@ -3540,73 +3540,73 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setInstructionBaseAddress(const uint64_t value) { TheStructure.Common.InstructionBaseAddress = value >> INSTRUCTIONBASEADDRESS_BIT_SHIFT; } - inline uint64_t getInstructionBaseAddress(void) const { + inline uint64_t getInstructionBaseAddress() const { return (TheStructure.Common.InstructionBaseAddress << INSTRUCTIONBASEADDRESS_BIT_SHIFT); } inline void setGeneralStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.GeneralStateBufferSizeModifyEnable = value; } - inline bool getGeneralStateBufferSizeModifyEnable(void) const { + inline bool getGeneralStateBufferSizeModifyEnable() const { return (TheStructure.Common.GeneralStateBufferSizeModifyEnable); } inline void setGeneralStateBufferSize(const uint32_t value) { TheStructure.Common.GeneralStateBufferSize = value; } - inline uint32_t getGeneralStateBufferSize(void) const { + inline uint32_t getGeneralStateBufferSize() const { return (TheStructure.Common.GeneralStateBufferSize); } inline void setDynamicStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.DynamicStateBufferSizeModifyEnable = value; } - inline bool getDynamicStateBufferSizeModifyEnable(void) const { + inline bool getDynamicStateBufferSizeModifyEnable() const { return (TheStructure.Common.DynamicStateBufferSizeModifyEnable); } inline void setDynamicStateBufferSize(const uint32_t value) { TheStructure.Common.DynamicStateBufferSize = value; } - inline uint32_t getDynamicStateBufferSize(void) const { + inline uint32_t getDynamicStateBufferSize() const { return (TheStructure.Common.DynamicStateBufferSize); } inline void setIndirectObjectBufferSizeModifyEnable(const bool value) { TheStructure.Common.IndirectObjectBufferSizeModifyEnable = value; } - inline bool getIndirectObjectBufferSizeModifyEnable(void) const { + inline bool getIndirectObjectBufferSizeModifyEnable() const { return (TheStructure.Common.IndirectObjectBufferSizeModifyEnable); } inline void setIndirectObjectBufferSize(const uint32_t value) { TheStructure.Common.IndirectObjectBufferSize = value; } - inline uint32_t getIndirectObjectBufferSize(void) const { + inline uint32_t getIndirectObjectBufferSize() const { return (TheStructure.Common.IndirectObjectBufferSize); } inline void setInstructionBufferSizeModifyEnable(const bool value) { TheStructure.Common.InstructionBufferSizeModifyEnable = value; } - inline bool getInstructionBufferSizeModifyEnable(void) const { + inline bool getInstructionBufferSizeModifyEnable() const { return (TheStructure.Common.InstructionBufferSizeModifyEnable); } inline void setInstructionBufferSize(const uint32_t value) { TheStructure.Common.InstructionBufferSize = value; } - inline uint32_t getInstructionBufferSize(void) const { + inline uint32_t getInstructionBufferSize() const { return (TheStructure.Common.InstructionBufferSize); } inline void setBindlessSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.BindlessSurfaceStateBaseAddressModifyEnable = value; } - inline bool getBindlessSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getBindlessSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.BindlessSurfaceStateBaseAddressModifyEnable); } inline void setBindlessSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_Reserved); } inline void setBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagBINDLESSSURFACESTATEBASEADDRESS { @@ -3616,31 +3616,31 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setBindlessSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateBaseAddress = value >> BINDLESSSURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindlessSurfaceStateBaseAddress(void) const { + inline uint64_t getBindlessSurfaceStateBaseAddress() const { return (TheStructure.Common.BindlessSurfaceStateBaseAddress << BINDLESSSURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setBindlessSurfaceStateSize(const uint32_t value) { TheStructure.Common.BindlessSurfaceStateSize = value; } - inline uint32_t getBindlessSurfaceStateSize(void) const { + inline uint32_t getBindlessSurfaceStateSize() const { return (TheStructure.Common.BindlessSurfaceStateSize); } inline void setBindlessSamplerStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.BindlessSamplerStateBaseAddressModifyEnable = value; } - inline bool getBindlessSamplerStateBaseAddressModifyEnable(void) const { + inline bool getBindlessSamplerStateBaseAddressModifyEnable() const { return (TheStructure.Common.BindlessSamplerStateBaseAddressModifyEnable); } inline void setBindlessSamplerStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getBindlessSamplerStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getBindlessSamplerStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_Reserved); } inline void setBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagBINDLESSSAMPLERSTATEBASEADDRESS { @@ -3650,13 +3650,13 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setBindlessSamplerStateBaseAddress(const uint64_t value) { TheStructure.Common.BindlessSamplerStateBaseAddress = value >> BINDLESSSAMPLERSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindlessSamplerStateBaseAddress(void) const { + inline uint64_t getBindlessSamplerStateBaseAddress() const { return (TheStructure.Common.BindlessSamplerStateBaseAddress << BINDLESSSAMPLERSTATEBASEADDRESS_BIT_SHIFT); } inline void setBindlessSamplerStateBufferSize(const uint32_t value) { TheStructure.Common.BindlessSamplerStateBufferSize = value; } - inline uint32_t getBindlessSamplerStateBufferSize(void) const { + inline uint32_t getBindlessSamplerStateBufferSize() const { return (TheStructure.Common.BindlessSamplerStateBufferSize); } } STATE_BASE_ADDRESS; @@ -3690,13 +3690,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_REPORT_PERF_COUNT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_REPORT_PERF_COUNT sInit(void) { + static tagMI_REPORT_PERF_COUNT sInit() { MI_REPORT_PERF_COUNT state; state.init(); return state; @@ -3708,13 +3708,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } inline void setCoreModeEnable(const bool value) { TheStructure.Common.CoreModeEnable = value; } - inline bool getCoreModeEnable(void) const { + inline bool getCoreModeEnable() const { return TheStructure.Common.CoreModeEnable; } typedef enum tagMEMORYADDRESS { @@ -3725,13 +3725,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { UNRECOVERABLE_IF(value > 0xffffffffffffffffL); TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT; } inline void setReportId(const uint32_t value) { TheStructure.Common.ReportId = value; } - inline uint32_t getReportId(void) const { + inline uint32_t getReportId() const { return TheStructure.Common.ReportId; } } MI_REPORT_PERF_COUNT; @@ -3782,7 +3782,7 @@ typedef struct tagSTATE_COMPUTE_MODE { typedef enum tagBINDING_TABLE_ALIGNMENT { BINDING_TABLE_ALIGNMENT_LEGACY = 0x0, } BINDING_TABLE_ALIGNMENT; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_COMPUTE_MODE; @@ -3792,7 +3792,7 @@ typedef struct tagSTATE_COMPUTE_MODE { TheStructure.Common.ForceNonCoherent = FORCE_NON_COHERENT_FORCE_DISABLED; TheStructure.Common.BindingTableAlignment = BINDING_TABLE_ALIGNMENT_LEGACY; } - static tagSTATE_COMPUTE_MODE sInit(void) { + static tagSTATE_COMPUTE_MODE sInit() { STATE_COMPUTE_MODE state; state.init(); return state; @@ -3804,32 +3804,32 @@ typedef struct tagSTATE_COMPUTE_MODE { inline void setForceNonCoherent(const FORCE_NON_COHERENT value) { TheStructure.Common.ForceNonCoherent = value; } - inline FORCE_NON_COHERENT getForceNonCoherent(void) const { + inline FORCE_NON_COHERENT getForceNonCoherent() const { return static_cast(TheStructure.Common.ForceNonCoherent); } inline void setBindingTableAlignment(const BINDING_TABLE_ALIGNMENT value) { TheStructure.Common.BindingTableAlignment = value; } - inline BINDING_TABLE_ALIGNMENT getBindingTableAlignment(void) const { + inline BINDING_TABLE_ALIGNMENT getBindingTableAlignment() const { return static_cast(TheStructure.Common.BindingTableAlignment); } inline void setCoherentAccessL1CacheDisable(const bool value) { TheStructure.Common.CoherentAccessL1CacheDisable = value; } - inline bool getCoherentAccessL1CacheDisable(void) const { + inline bool getCoherentAccessL1CacheDisable() const { return TheStructure.Common.CoherentAccessL1CacheDisable; } inline void setDisableL1InvalidateForNonL1CacheableWrites(const bool value) { TheStructure.Common.DisableL1InvalidateForNonL1CacheableWrites = value; } - inline bool getDisableL1InvalidateForNonL1CacheableWrites(void) const { + inline bool getDisableL1InvalidateForNonL1CacheableWrites() const { return TheStructure.Common.DisableL1InvalidateForNonL1CacheableWrites; } inline void setMaskBits(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.Mask = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return TheStructure.Common.Mask; } } STATE_COMPUTE_MODE; @@ -3851,12 +3851,12 @@ typedef struct tagMI_USER_INTERRUPT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_USER_INTERRUPT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_USER_INTERRUPT sInit(void) { + static tagMI_USER_INTERRUPT sInit() { MI_USER_INTERRUPT state; state.init(); return state; @@ -3938,7 +3938,7 @@ typedef struct tagXY_SRC_COPY_BLT { typedef enum tagDWORD_LENGTH { DWORD_LENGTH_EXCLUDES_DWORD_0_1 = 0x8, } DWORD_LENGTH; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DestTilingEnable = DEST_TILING_ENABLE_TILING_DISABLED_LINEAR_BLIT; TheStructure.Common.SrcTilingEnable = SRC_TILING_ENABLE_TILING_DISABLED_LINEAR; @@ -3949,7 +3949,7 @@ typedef struct tagXY_SRC_COPY_BLT { TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.RasterOperation = 0xCC; } - static tagXY_SRC_COPY_BLT sInit(void) { + static tagXY_SRC_COPY_BLT sInit() { XY_SRC_COPY_BLT state; state.init(); return state; @@ -3961,119 +3961,119 @@ typedef struct tagXY_SRC_COPY_BLT { inline void setDestTilingEnable(const DEST_TILING_ENABLE value) { TheStructure.Common.DestTilingEnable = value; } - inline DEST_TILING_ENABLE getDestTilingEnable(void) const { + inline DEST_TILING_ENABLE getDestTilingEnable() const { return static_cast(TheStructure.Common.DestTilingEnable); } inline void setSrcTilingEnable(const SRC_TILING_ENABLE value) { TheStructure.Common.SrcTilingEnable = value; } - inline SRC_TILING_ENABLE getSrcTilingEnable(void) const { + inline SRC_TILING_ENABLE getSrcTilingEnable() const { return static_cast(TheStructure.Common.SrcTilingEnable); } inline void set32BppByteMask(const _32BPP_BYTE_MASK value) { TheStructure.Common._32BppByteMask = value; } - inline _32BPP_BYTE_MASK get32BppByteMask(void) const { + inline _32BPP_BYTE_MASK get32BppByteMask() const { return static_cast<_32BPP_BYTE_MASK>(TheStructure.Common._32BppByteMask); } inline void setInstructionTargetOpcode(const uint32_t value) { UNRECOVERABLE_IF(value > 0x7f); TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return TheStructure.Common.InstructionTarget_Opcode; } inline void setClient(const CLIENT value) { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } inline void setDestinationPitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationPitch = value; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return TheStructure.Common.DestinationPitch; } inline void setRasterOperation(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff); TheStructure.Common.RasterOperation = value; } - inline uint32_t getRasterOperation(void) const { + inline uint32_t getRasterOperation() const { return TheStructure.Common.RasterOperation; } inline void setColorDepth(const COLOR_DEPTH value) { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } inline void setClippingEnabled(const CLIPPING_ENABLED value) { TheStructure.Common.ClippingEnabled = value; } - inline CLIPPING_ENABLED getClippingEnabled(void) const { + inline CLIPPING_ENABLED getClippingEnabled() const { return static_cast(TheStructure.Common.ClippingEnabled); } inline void setDestinationX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return TheStructure.Common.DestinationX1Coordinate_Left; } inline void setDestinationY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return TheStructure.Common.DestinationY1Coordinate_Top; } inline void setDestinationX2CoordinateRight(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return TheStructure.Common.DestinationX2Coordinate_Right; } inline void setDestinationY2CoordinateBottom(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return TheStructure.Common.DestinationY2Coordinate_Bottom; } inline void setDestinationBaseAddress(const uint64_t value) { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return TheStructure.Common.DestinationBaseAddress; } inline void setSourceX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourceX1Coordinate_Left = value; } - inline uint32_t getSourceX1CoordinateLeft(void) const { + inline uint32_t getSourceX1CoordinateLeft() const { return TheStructure.Common.SourceX1Coordinate_Left; } inline void setSourceY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourceY1Coordinate_Top = value; } - inline uint32_t getSourceY1CoordinateTop(void) const { + inline uint32_t getSourceY1CoordinateTop() const { return TheStructure.Common.SourceY1Coordinate_Top; } inline void setSourcePitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourcePitch = value; } - inline uint32_t getSourcePitch(void) const { + inline uint32_t getSourcePitch() const { return TheStructure.Common.SourcePitch; } inline void setSourceBaseAddress(const uint64_t value) { TheStructure.Common.SourceBaseAddress = value; } - inline uint64_t getSourceBaseAddress(void) const { + inline uint64_t getSourceBaseAddress() const { return TheStructure.Common.SourceBaseAddress; } } XY_SRC_COPY_BLT; @@ -4124,7 +4124,7 @@ typedef struct tagMI_FLUSH_DW { DESTINATION_ADDRESS_TYPE_PPGTT = 0x0, DESTINATION_ADDRESS_TYPE_GGTT = 0x1, } DESTINATION_ADDRESS_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH::DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.PostSyncOperation = POST_SYNC_OPERATION_NO_WRITE; @@ -4132,7 +4132,7 @@ typedef struct tagMI_FLUSH_DW { TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; TheStructure.Common.DestinationAddressType = DESTINATION_ADDRESS_TYPE_PPGTT; } - static tagMI_FLUSH_DW sInit(void) { + static tagMI_FLUSH_DW sInit() { MI_FLUSH_DW state; state.init(); return state; @@ -4144,37 +4144,37 @@ typedef struct tagMI_FLUSH_DW { inline void setNotifyEnable(const bool value) { TheStructure.Common.NotifyEnable = value; } - inline bool getNotifyEnable(void) const { + inline bool getNotifyEnable() const { return TheStructure.Common.NotifyEnable; } inline void setFlushLlc(const bool value) { TheStructure.Common.FlushLlc = value; } - inline bool getFlushLlc(void) const { + inline bool getFlushLlc() const { return TheStructure.Common.FlushLlc; } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setTlbInvalidate(const bool value) { TheStructure.Common.TlbInvalidate = value; } - inline bool getTlbInvalidate(void) const { + inline bool getTlbInvalidate() const { return TheStructure.Common.TlbInvalidate; } inline void setStoreDataIndex(const bool value) { TheStructure.Common.StoreDataIndex = value; } - inline bool getStoreDataIndex(void) const { + inline bool getStoreDataIndex() const { return TheStructure.Common.StoreDataIndex; } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } typedef enum tagDESTINATIONADDRESS { @@ -4185,13 +4185,13 @@ typedef struct tagMI_FLUSH_DW { UNRECOVERABLE_IF(value > 0xffffffffffffL); TheStructure.Common.DestinationAddress = value >> DESTINATIONADDRESS_BIT_SHIFT; } - inline uint64_t getDestinationAddress(void) const { + inline uint64_t getDestinationAddress() const { return TheStructure.Common.DestinationAddress << DESTINATIONADDRESS_BIT_SHIFT; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } } MI_FLUSH_DW; @@ -4346,7 +4346,7 @@ typedef struct tagMEDIA_SURFACE_STATE { TILED_RESOURCE_MODE_TRMODE_TILEYF = 0x1, TILED_RESOURCE_MODE_TRMODE_TILEYS = 0x2, } TILED_RESOURCE_MODE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.Rotation = ROTATION_NO_ROTATION_OR_0_DEGREE; TheStructure.Common.PictureStructure = PICTURE_STRUCTURE_FRAME_PICTURE; @@ -4356,7 +4356,7 @@ typedef struct tagMEDIA_SURFACE_STATE { TheStructure.Common.SurfaceFormat = SURFACE_FORMAT_YCRCB_NORMAL; TheStructure.Common.TiledResourceMode = TILED_RESOURCE_MODE_TRMODE_NONE; } - static tagMEDIA_SURFACE_STATE sInit(void) { + static tagMEDIA_SURFACE_STATE sInit() { MEDIA_SURFACE_STATE state; state.init(); return state; @@ -4368,141 +4368,141 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setRotation(const ROTATION value) { TheStructure.Common.Rotation = value; } - inline ROTATION getRotation(void) const { + inline ROTATION getRotation() const { return static_cast(TheStructure.Common.Rotation); } inline void setCrVCbUPixelOffsetVDirection(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3); TheStructure.Common.Cr_VCb_UPixelOffsetVDirection = value; } - inline uint32_t getCrVCbUPixelOffsetVDirection(void) const { + inline uint32_t getCrVCbUPixelOffsetVDirection() const { return TheStructure.Common.Cr_VCb_UPixelOffsetVDirection; } inline void setPictureStructure(const PICTURE_STRUCTURE value) { TheStructure.Common.PictureStructure = value; } - inline PICTURE_STRUCTURE getPictureStructure(void) const { + inline PICTURE_STRUCTURE getPictureStructure() const { return static_cast(TheStructure.Common.PictureStructure); } inline void setWidth(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return TheStructure.Common.Width + 1; } inline void setHeight(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return TheStructure.Common.Height + 1; } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setHalfPitchForChroma(const bool value) { TheStructure.Common.HalfPitchForChroma = value; } - inline bool getHalfPitchForChroma(void) const { + inline bool getHalfPitchForChroma() const { return TheStructure.Common.HalfPitchForChroma; } inline void setSurfacePitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3ffff); TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return TheStructure.Common.SurfacePitch + 1; } inline void setAddressControl(const ADDRESS_CONTROL value) { TheStructure.Common.AddressControl = value; } - inline ADDRESS_CONTROL getAddressControl(void) const { + inline ADDRESS_CONTROL getAddressControl() const { return static_cast(TheStructure.Common.AddressControl); } inline void setMemoryCompressionEnable(const bool value) { TheStructure.Common.MemoryCompressionEnable = value; } - inline bool getMemoryCompressionEnable(void) const { + inline bool getMemoryCompressionEnable() const { return TheStructure.Common.MemoryCompressionEnable; } inline void setMemoryCompressionType(const MEMORY_COMPRESSION_TYPE value) { TheStructure.Common.MemoryCompressionType = value; } - inline MEMORY_COMPRESSION_TYPE getMemoryCompressionType(void) const { + inline MEMORY_COMPRESSION_TYPE getMemoryCompressionType() const { return static_cast(TheStructure.Common.MemoryCompressionType); } inline void setCrVCbUPixelOffsetVDirectionMsb(const bool value) { TheStructure.Common.Cr_VCb_UPixelOffsetVDirectionMsb = value; } - inline bool getCrVCbUPixelOffsetVDirectionMsb(void) const { + inline bool getCrVCbUPixelOffsetVDirectionMsb() const { return TheStructure.Common.Cr_VCb_UPixelOffsetVDirectionMsb; } inline void setCrVCbUPixelOffsetUDirection(const bool value) { TheStructure.Common.Cr_VCb_UPixelOffsetUDirection = value; } - inline bool getCrVCbUPixelOffsetUDirection(void) const { + inline bool getCrVCbUPixelOffsetUDirection() const { return TheStructure.Common.Cr_VCb_UPixelOffsetUDirection; } inline void setInterleaveChroma(const bool value) { TheStructure.Common.InterleaveChroma = value; } - inline bool getInterleaveChroma(void) const { + inline bool getInterleaveChroma() const { return TheStructure.Common.InterleaveChroma; } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setYOffsetForUCb(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure.Common.YOffsetForU_Cb = value; } - inline uint32_t getYOffsetForUCb(void) const { + inline uint32_t getYOffsetForUCb() const { return TheStructure.Common.YOffsetForU_Cb; } inline void setXOffsetForUCb(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure.Common.XOffsetForU_Cb = value; } - inline uint32_t getXOffsetForUCb(void) const { + inline uint32_t getXOffsetForUCb() const { return TheStructure.Common.XOffsetForU_Cb; } inline void setSurfaceMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3f); TheStructure.Common.SurfaceMemoryObjectControlStateIndexToMocsTables = value; } - inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables() const { return TheStructure.Common.SurfaceMemoryObjectControlStateIndexToMocsTables; } inline void setTiledResourceMode(const TILED_RESOURCE_MODE value) { TheStructure.Common.TiledResourceMode = value; } - inline TILED_RESOURCE_MODE getTiledResourceMode(void) const { + inline TILED_RESOURCE_MODE getTiledResourceMode() const { return static_cast(TheStructure.Common.TiledResourceMode); } inline void setVerticalLineStrideOffset(const bool value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline bool getVerticalLineStrideOffset(void) const { + inline bool getVerticalLineStrideOffset() const { return TheStructure.Common.VerticalLineStrideOffset; } inline void setVerticalLineStride(const bool value) { TheStructure.Common.VerticalLineStride = value; } - inline bool getVerticalLineStride(void) const { + inline bool getVerticalLineStride() const { return TheStructure.Common.VerticalLineStride; } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddressLow = static_cast(value & 0xffffffff); TheStructure.Common.SurfaceBaseAddressHigh = (value >> 32) & 0xffffffff; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return (TheStructure.Common.SurfaceBaseAddressLow | static_cast(TheStructure.Common.SurfaceBaseAddressHigh) << 32); } @@ -4510,35 +4510,35 @@ typedef struct tagMEDIA_SURFACE_STATE { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SurfaceBaseAddressHigh = value; } - inline uint32_t getSurfaceBaseAddressHigh(void) const { + inline uint32_t getSurfaceBaseAddressHigh() const { return TheStructure.Common.SurfaceBaseAddressHigh; } inline void setYOffset(const uint32_t value) { UNRECOVERABLE_IF(value > 0xf); TheStructure.SurfaceFormatIsOneOfPlanarFormats.YOffset = value; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return TheStructure.SurfaceFormatIsOneOfPlanarFormats.YOffset; } inline void setXOffset(const uint32_t value) { UNRECOVERABLE_IF(value > 0x7f); TheStructure.SurfaceFormatIsOneOfPlanarFormats.XOffset = value; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return TheStructure.SurfaceFormatIsOneOfPlanarFormats.XOffset; } inline void setYOffsetForVCr(const uint32_t value) { UNRECOVERABLE_IF(value > 0x7fff); TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr = value; } - inline uint32_t getYOffsetForVCr(void) const { + inline uint32_t getYOffsetForVCr() const { return TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr; } inline void setXOffsetForVCr(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr = value; } - inline uint32_t getXOffsetForVCr(void) const { + inline uint32_t getXOffsetForVCr() const { return TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr; } } MEDIA_SURFACE_STATE; @@ -4660,7 +4660,7 @@ typedef struct tagPIPE_CONTROL { DESTINATION_ADDRESS_TYPE_PPGTT = 0x0, DESTINATION_ADDRESS_TYPE_GGTT = 0x1, } DESTINATION_ADDRESS_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_PIPE_CONTROL; @@ -4673,7 +4673,7 @@ typedef struct tagPIPE_CONTROL { TheStructure.Common.DestinationAddressType = DESTINATION_ADDRESS_TYPE_PPGTT; TheStructure.Common.CommandStreamerStallEnable = 1u; } - static tagPIPE_CONTROL sInit(void) { + static tagPIPE_CONTROL sInit() { PIPE_CONTROL state; state.init(); return state; @@ -4685,181 +4685,181 @@ typedef struct tagPIPE_CONTROL { inline void setHdcPipelineFlush(const bool value) { TheStructure.Common.HdcPipelineFlush = value; } - inline bool getHdcPipelineFlush(void) const { + inline bool getHdcPipelineFlush() const { return TheStructure.Common.HdcPipelineFlush; } inline void setDepthCacheFlushEnable(const bool value) { TheStructure.Common.DepthCacheFlushEnable = value; } - inline bool getDepthCacheFlushEnable(void) const { + inline bool getDepthCacheFlushEnable() const { return TheStructure.Common.DepthCacheFlushEnable; } inline void setStallAtPixelScoreboard(const bool value) { TheStructure.Common.StallAtPixelScoreboard = value; } - inline bool getStallAtPixelScoreboard(void) const { + inline bool getStallAtPixelScoreboard() const { return TheStructure.Common.StallAtPixelScoreboard; } inline void setStateCacheInvalidationEnable(const bool value) { TheStructure.Common.StateCacheInvalidationEnable = value; } - inline bool getStateCacheInvalidationEnable(void) const { + inline bool getStateCacheInvalidationEnable() const { return TheStructure.Common.StateCacheInvalidationEnable; } inline void setConstantCacheInvalidationEnable(const bool value) { TheStructure.Common.ConstantCacheInvalidationEnable = value; } - inline bool getConstantCacheInvalidationEnable(void) const { + inline bool getConstantCacheInvalidationEnable() const { return TheStructure.Common.ConstantCacheInvalidationEnable; } inline void setVfCacheInvalidationEnable(const bool value) { TheStructure.Common.VfCacheInvalidationEnable = value; } - inline bool getVfCacheInvalidationEnable(void) const { + inline bool getVfCacheInvalidationEnable() const { return TheStructure.Common.VfCacheInvalidationEnable; } inline void setDcFlushEnable(const bool value) { TheStructure.Common.DcFlushEnable = value; } - inline bool getDcFlushEnable(void) const { + inline bool getDcFlushEnable() const { return TheStructure.Common.DcFlushEnable; } inline void setProtectedMemoryApplicationId(const uint32_t value) { TheStructure.Common.ProtectedMemoryApplicationId = value; } - inline uint32_t getProtectedMemoryApplicationId(void) const { + inline uint32_t getProtectedMemoryApplicationId() const { return (TheStructure.Common.ProtectedMemoryApplicationId); } inline void setPipeControlFlushEnable(const bool value) { TheStructure.Common.PipeControlFlushEnable = value; } - inline bool getPipeControlFlushEnable(void) const { + inline bool getPipeControlFlushEnable() const { return TheStructure.Common.PipeControlFlushEnable; } inline void setNotifyEnable(const bool value) { TheStructure.Common.NotifyEnable = value; } - inline bool getNotifyEnable(void) const { + inline bool getNotifyEnable() const { return TheStructure.Common.NotifyEnable; } inline void setIndirectStatePointersDisable(const bool value) { TheStructure.Common.IndirectStatePointersDisable = value; } - inline bool getIndirectStatePointersDisable(void) const { + inline bool getIndirectStatePointersDisable() const { return TheStructure.Common.IndirectStatePointersDisable; } inline void setTextureCacheInvalidationEnable(const bool value) { TheStructure.Common.TextureCacheInvalidationEnable = value; } - inline bool getTextureCacheInvalidationEnable(void) const { + inline bool getTextureCacheInvalidationEnable() const { return TheStructure.Common.TextureCacheInvalidationEnable; } inline void setInstructionCacheInvalidateEnable(const bool value) { TheStructure.Common.InstructionCacheInvalidateEnable = value; } - inline bool getInstructionCacheInvalidateEnable(void) const { + inline bool getInstructionCacheInvalidateEnable() const { return TheStructure.Common.InstructionCacheInvalidateEnable; } inline void setRenderTargetCacheFlushEnable(const bool value) { TheStructure.Common.RenderTargetCacheFlushEnable = value; } - inline bool getRenderTargetCacheFlushEnable(void) const { + inline bool getRenderTargetCacheFlushEnable() const { return TheStructure.Common.RenderTargetCacheFlushEnable; } inline void setDepthStallEnable(const bool value) { TheStructure.Common.DepthStallEnable = value; } - inline bool getDepthStallEnable(void) const { + inline bool getDepthStallEnable() const { return TheStructure.Common.DepthStallEnable; } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setGenericMediaStateClear(const bool value) { TheStructure.Common.GenericMediaStateClear = value; } - inline bool getGenericMediaStateClear(void) const { + inline bool getGenericMediaStateClear() const { return TheStructure.Common.GenericMediaStateClear; } inline void setPsdSyncEnable(const bool value) { TheStructure.Common.PsdSyncEnable = value; } - inline bool getPsdSyncEnable(void) const { + inline bool getPsdSyncEnable() const { return TheStructure.Common.PsdSyncEnable; } inline void setTlbInvalidate(const bool value) { TheStructure.Common.TlbInvalidate = value; } - inline bool getTlbInvalidate(void) const { + inline bool getTlbInvalidate() const { return TheStructure.Common.TlbInvalidate; } inline void setGlobalSnapshotCountReset(const GLOBAL_SNAPSHOT_COUNT_RESET value) { TheStructure.Common.GlobalSnapshotCountReset = value; } - inline GLOBAL_SNAPSHOT_COUNT_RESET getGlobalSnapshotCountReset(void) const { + inline GLOBAL_SNAPSHOT_COUNT_RESET getGlobalSnapshotCountReset() const { return static_cast(TheStructure.Common.GlobalSnapshotCountReset); } inline void setCommandStreamerStallEnable(const bool value) { TheStructure.Common.CommandStreamerStallEnable = value; } - inline bool getCommandStreamerStallEnable(void) const { + inline bool getCommandStreamerStallEnable() const { return TheStructure.Common.CommandStreamerStallEnable; } inline void setStoreDataIndex(const bool value) { TheStructure.Common.StoreDataIndex = value; } - inline bool getStoreDataIndex(void) const { + inline bool getStoreDataIndex() const { return TheStructure.Common.StoreDataIndex; } inline void setLriPostSyncOperation(const LRI_POST_SYNC_OPERATION value) { TheStructure.Common.LriPostSyncOperation = value; } - inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation(void) const { + inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation() const { return static_cast(TheStructure.Common.LriPostSyncOperation); } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } inline void setAmfsFlushEnable(const bool value) { TheStructure.Common.AmfsFlushEnable = value; } - inline bool getAmfsFlushEnable(void) const { + inline bool getAmfsFlushEnable() const { return TheStructure.Common.AmfsFlushEnable; } inline void setFlushLlc(const bool value) { TheStructure.Common.FlushLlc = value; } - inline bool getFlushLlc(void) const { + inline bool getFlushLlc() const { return TheStructure.Common.FlushLlc; } inline void setProtectedMemoryDisable(const uint32_t value) { TheStructure.Common.ProtectedMemoryDisable = value; } - inline uint32_t getProtectedMemoryDisable(void) const { + inline uint32_t getProtectedMemoryDisable() const { return (TheStructure.Common.ProtectedMemoryDisable); } inline void setTileCacheFlushEnable(const bool value) { TheStructure.Common.TileCacheFlushEnable = value; } - inline bool getTileCacheFlushEnable(void) const { + inline bool getTileCacheFlushEnable() const { return TheStructure.Common.TileCacheFlushEnable; } inline void setCommandCacheInvalidateEnable(const bool value) { TheStructure.Common.CommandCacheInvalidateEnable = value; } - inline bool getCommandCacheInvalidateEnable(void) const { + inline bool getCommandCacheInvalidateEnable() const { return TheStructure.Common.CommandCacheInvalidateEnable; } inline void setL3FabricFlush(const bool value) { TheStructure.Common.L3FabricFlush = value; } - inline bool getL3FabricFlush(void) const { + inline bool getL3FabricFlush() const { return TheStructure.Common.L3FabricFlush; } typedef enum tagADDRESS { @@ -4870,19 +4870,19 @@ typedef struct tagPIPE_CONTROL { UNRECOVERABLE_IF(value > 0xffffffff); TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint32_t getAddress(void) const { + inline uint32_t getAddress() const { return TheStructure.Common.Address << ADDRESS_BIT_SHIFT; } inline void setAddressHigh(const uint32_t value) { TheStructure.Common.AddressHigh = value; } - inline uint32_t getAddressHigh(void) const { + inline uint32_t getAddressHigh() const { return TheStructure.Common.AddressHigh; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } } PIPE_CONTROL; @@ -4942,7 +4942,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.CompareOperation = COMPARE_OPERATION_SAD_GREATER_THAN_SDD; @@ -4952,7 +4952,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_SEMAPHORE_WAIT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_SEMAPHORE_WAIT sInit(void) { + static tagMI_SEMAPHORE_WAIT sInit() { MI_SEMAPHORE_WAIT state; state.init(); return state; @@ -4964,31 +4964,31 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setCompareOperation(const COMPARE_OPERATION value) { TheStructure.Common.CompareOperation = value; } - inline COMPARE_OPERATION getCompareOperation(void) const { + inline COMPARE_OPERATION getCompareOperation() const { return static_cast(TheStructure.Common.CompareOperation); } inline void setWaitMode(const WAIT_MODE value) { TheStructure.Common.WaitMode = value; } - inline WAIT_MODE getWaitMode(void) const { + inline WAIT_MODE getWaitMode() const { return static_cast(TheStructure.Common.WaitMode); } inline void setRegisterPollMode(const REGISTER_POLL_MODE value) { TheStructure.Common.RegisterPollMode = value; } - inline REGISTER_POLL_MODE getRegisterPollMode(void) const { + inline REGISTER_POLL_MODE getRegisterPollMode() const { return static_cast(TheStructure.Common.RegisterPollMode); } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } inline void setSemaphoreDataDword(const uint32_t value) { TheStructure.Common.SemaphoreDataDword = value; } - inline uint32_t getSemaphoreDataDword(void) const { + inline uint32_t getSemaphoreDataDword() const { return TheStructure.Common.SemaphoreDataDword; } typedef enum tagSEMAPHOREADDRESS { @@ -4998,14 +4998,14 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setSemaphoreGraphicsAddress(const uint64_t value) { TheStructure.Common.SemaphoreAddress = value >> SEMAPHOREADDRESS_BIT_SHIFT; } - inline uint64_t getSemaphoreGraphicsAddress(void) const { + inline uint64_t getSemaphoreGraphicsAddress() const { return TheStructure.Common.SemaphoreAddress << SEMAPHOREADDRESS_BIT_SHIFT; } inline void setWaitTokenNumber(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1f); TheStructure.Common.WaitTokenNumber = value; } - inline uint32_t getWaitTokenNumber(void) const { + inline uint32_t getWaitTokenNumber() const { return TheStructure.Common.WaitTokenNumber; } } MI_SEMAPHORE_WAIT; @@ -5042,13 +5042,13 @@ typedef struct tagMI_STORE_DATA_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_STORE_DWORD; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_DATA_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_DATA_IMM sInit(void) { + static tagMI_STORE_DATA_IMM sInit() { MI_STORE_DATA_IMM state; state.init(); return state; @@ -5060,25 +5060,25 @@ typedef struct tagMI_STORE_DATA_IMM { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setStoreQword(const bool value) { TheStructure.Common.StoreQword = value; } - inline bool getStoreQword(void) const { + inline bool getStoreQword() const { return TheStructure.Common.StoreQword; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } inline void setCoreModeEnable(const bool value) { TheStructure.Common.CoreModeEnable = value; } - inline bool getCoreModeEnable(void) const { + inline bool getCoreModeEnable() const { return TheStructure.Common.CoreModeEnable; } typedef enum tagADDRESS { @@ -5089,19 +5089,19 @@ typedef struct tagMI_STORE_DATA_IMM { UNRECOVERABLE_IF(value > 0x3fffffffffffffffL); TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint64_t getAddress(void) const { + inline uint64_t getAddress() const { return TheStructure.Common.Address << ADDRESS_BIT_SHIFT; } inline void setDataDword0(const uint32_t value) { TheStructure.Common.DataDword0 = value; } - inline uint32_t getDataDword0(void) const { + inline uint32_t getDataDword0() const { return TheStructure.Common.DataDword0; } inline void setDataDword1(const uint32_t value) { TheStructure.Common.DataDword1 = value; } - inline uint32_t getDataDword1(void) const { + inline uint32_t getDataDword1() const { return TheStructure.Common.DataDword1; } } MI_STORE_DATA_IMM; @@ -5138,7 +5138,7 @@ typedef struct tagSTATE_SIP { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_SIP; @@ -5146,7 +5146,7 @@ typedef struct tagSTATE_SIP { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagSTATE_SIP sInit(void) { + static tagSTATE_SIP sInit() { STATE_SIP state; state.init(); return state; @@ -5163,7 +5163,7 @@ typedef struct tagSTATE_SIP { UNRECOVERABLE_IF(value > 0xffffffffffffffffL); TheStructure.Common.SystemInstructionPointer = value >> SYSTEMINSTRUCTIONPOINTER_BIT_SHIFT; } - inline uint64_t getSystemInstructionPointer(void) const { + inline uint64_t getSystemInstructionPointer() const { return (uint64_t)TheStructure.Common.SystemInstructionPointer << SYSTEMINSTRUCTIONPOINTER_BIT_SHIFT; } } STATE_SIP; @@ -5200,7 +5200,7 @@ typedef struct tagGPGPU_CSR_BASE_ADDRESS { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_LENGTH_1; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_GPGPU_CSR_BASE_ADDRESS; @@ -5208,7 +5208,7 @@ typedef struct tagGPGPU_CSR_BASE_ADDRESS { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagGPGPU_CSR_BASE_ADDRESS sInit(void) { + static tagGPGPU_CSR_BASE_ADDRESS sInit() { GPGPU_CSR_BASE_ADDRESS state; state.init(); return state; @@ -5225,7 +5225,7 @@ typedef struct tagGPGPU_CSR_BASE_ADDRESS { UNRECOVERABLE_IF(value > 0xffffffffffffffffL); TheStructure.Common.GpgpuCsrBaseAddress = value >> GPGPUCSRBASEADDRESS_BIT_SHIFT; } - inline uint64_t getGpgpuCsrBaseAddress(void) const { + inline uint64_t getGpgpuCsrBaseAddress() const { return (uint64_t)TheStructure.Common.GpgpuCsrBaseAddress << GPGPUCSRBASEADDRESS_BIT_SHIFT; } } GPGPU_CSR_BASE_ADDRESS; @@ -5399,7 +5399,7 @@ struct L3_CONTROL_BASE { typedef enum tagTYPE { TYPE_GFXPIPE = 0x3, } TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.PostSyncOperation = POST_SYNC_OPERATION_NO_WRITE; TheStructure.Common.PostSyncOperationL3CacheabilityControl = POST_SYNC_OPERATION_L3_CACHEABILITY_CONTROL_DEFAULT_MOCS; @@ -5409,7 +5409,7 @@ struct L3_CONTROL_BASE { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_3D; TheStructure.Common.Type = TYPE_GFXPIPE; } - static L3_CONTROL_BASE sInit(void) { + static L3_CONTROL_BASE sInit() { L3_CONTROL_BASE state; state.init(); return state; @@ -5421,55 +5421,55 @@ struct L3_CONTROL_BASE { inline void setLength(const LENGTH value) { TheStructure.Common.Length = value; } - inline LENGTH getLength(void) const { + inline LENGTH getLength() const { return (LENGTH)TheStructure.Common.Length; } inline void setDepthCacheFlush(const bool value) { TheStructure.Common.DepthCacheFlush = value; } - inline bool getDepthCacheFlush(void) const { + inline bool getDepthCacheFlush() const { return TheStructure.Common.DepthCacheFlush; } inline void setRenderTargetCacheFlushEnable(const bool value) { TheStructure.Common.RenderTargetCacheFlushEnable = value; } - inline bool getRenderTargetCacheFlushEnable(void) const { + inline bool getRenderTargetCacheFlushEnable() const { return TheStructure.Common.RenderTargetCacheFlushEnable; } inline void setHdcPipelineFlush(const bool value) { TheStructure.Common.HdcPipelineFlush = value; } - inline bool getHdcPipelineFlush(void) const { + inline bool getHdcPipelineFlush() const { return TheStructure.Common.HdcPipelineFlush; } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setPostSyncOperationL3CacheabilityControl(const POST_SYNC_OPERATION_L3_CACHEABILITY_CONTROL value) { TheStructure.Common.PostSyncOperationL3CacheabilityControl = value; } - inline POST_SYNC_OPERATION_L3_CACHEABILITY_CONTROL getPostSyncOperationL3CacheabilityControl(void) const { + inline POST_SYNC_OPERATION_L3_CACHEABILITY_CONTROL getPostSyncOperationL3CacheabilityControl() const { return static_cast(TheStructure.Common.PostSyncOperationL3CacheabilityControl); } inline void setCommandStreamerStallEnable(const bool value) { TheStructure.Common.CommandStreamerStallEnable = value; } - inline bool getCommandStreamerStallEnable(void) const { + inline bool getCommandStreamerStallEnable() const { return TheStructure.Common.CommandStreamerStallEnable; } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } inline void setType(const TYPE value) { TheStructure.Common.Type = value; } - inline TYPE getType(void) const { + inline TYPE getType() const { return static_cast(TheStructure.Common.Type); } }; @@ -5485,7 +5485,7 @@ struct L3_CONTROL_POST_SYNC_DATA { uint32_t RawData[4]; } TheStructure; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); } @@ -5497,13 +5497,13 @@ struct L3_CONTROL_POST_SYNC_DATA { UNRECOVERABLE_IF(value > 0xfffffffffff8L); TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint64_t getAddress(void) const { + inline uint64_t getAddress() const { return TheStructure.Common.Address << ADDRESS_BIT_SHIFT; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } }; @@ -5518,7 +5518,7 @@ struct L3_CONTROL { uint32_t RawData[7]; } TheStructure; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); getBase().init(); getPostSyncData().init(); @@ -5529,14 +5529,14 @@ struct L3_CONTROL { inline void setL3FlushAddressRange(const L3_FLUSH_ADDRESS_RANGE &value) { TheStructure.Common.L3FlushAddressRange = value; } - inline L3_FLUSH_ADDRESS_RANGE &getL3FlushAddressRange(void) { + inline L3_FLUSH_ADDRESS_RANGE &getL3FlushAddressRange() { return TheStructure.Common.L3FlushAddressRange; } - inline const L3_FLUSH_ADDRESS_RANGE &getL3FlushAddressRange(void) const { + inline const L3_FLUSH_ADDRESS_RANGE &getL3FlushAddressRange() const { return TheStructure.Common.L3FlushAddressRange; } - static L3_CONTROL sInit(void) { + static L3_CONTROL sInit() { L3_CONTROL state; state.init(); return state; @@ -5566,7 +5566,7 @@ struct L3_CONTROL { getPostSyncData().setAddress(value); } - inline uint64_t getPostSyncAddress(void) const { + inline uint64_t getPostSyncAddress() const { return getPostSyncData().getAddress(); } @@ -5574,7 +5574,7 @@ struct L3_CONTROL { getPostSyncData().setImmediateData(value); } - inline uint64_t getPostSyncImmediateData(void) const { + inline uint64_t getPostSyncImmediateData() const { return getPostSyncData().getImmediateData(); } }; @@ -5654,7 +5654,7 @@ typedef struct tagXY_BLOCK_COPY_BLT { enum INSTRUCTIONTARGET_OPCODE { INSTRUCTIONTARGET_OPCODE_OPCODE = 0x41, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.ColorDepth = COLOR_DEPTH_8_BIT_COLOR; @@ -5663,7 +5663,7 @@ typedef struct tagXY_BLOCK_COPY_BLT { TheStructure.Common.DestinationTiling = DESTINATION_TILING_LINEAR; TheStructure.Common.SourceTiling = SOURCE_TILING_LINEAR; } - static tagXY_BLOCK_COPY_BLT sInit(void) { + static tagXY_BLOCK_COPY_BLT sInit() { XY_BLOCK_COPY_BLT state; state.init(); return state; @@ -5676,142 +5676,142 @@ typedef struct tagXY_BLOCK_COPY_BLT { inline void setColorDepth(const COLOR_DEPTH value) { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } inline void setInstructionTargetOpcode(const uint32_t value) { UNRECOVERABLE_IF(value > 0x7f); TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return TheStructure.Common.InstructionTarget_Opcode; } inline void setClient(const CLIENT value) { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } inline void setDestinationPitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3ffff); TheStructure.Common.DestinationPitch = value - 1; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return TheStructure.Common.DestinationPitch + 1; } inline void setDestinationMOCS(const uint32_t value) { UNRECOVERABLE_IF(value > 0x7f); TheStructure.Common.DestinationMOCS = value; } - inline uint32_t getDestinationMOCS(void) const { + inline uint32_t getDestinationMOCS() const { return TheStructure.Common.DestinationMOCS; } inline void setDestinationTiling(const DESTINATION_TILING value) { TheStructure.Common.DestinationTiling = value; } - inline DESTINATION_TILING getDestinationTiling(void) const { + inline DESTINATION_TILING getDestinationTiling() const { return static_cast(TheStructure.Common.DestinationTiling); } inline void setDestinationX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return TheStructure.Common.DestinationX1Coordinate_Left; } inline void setDestinationY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return TheStructure.Common.DestinationY1Coordinate_Top; } inline void setDestinationX2CoordinateRight(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return TheStructure.Common.DestinationX2Coordinate_Right; } inline void setDestinationY2CoordinateBottom(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return TheStructure.Common.DestinationY2Coordinate_Bottom; } inline void setDestinationBaseAddress(const uint64_t value) { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return TheStructure.Common.DestinationBaseAddress; } inline void setDestinationXOffset(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure.Common.DestinationXOffset = value; } - inline uint32_t getDestinationXOffset(void) const { + inline uint32_t getDestinationXOffset() const { return TheStructure.Common.DestinationXOffset; } inline void setDestinationYOffset(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure.Common.DestinationYOffset = value; } - inline uint32_t getDestinationYOffset(void) const { + inline uint32_t getDestinationYOffset() const { return TheStructure.Common.DestinationYOffset; } inline void setSourceX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourceX1Coordinate_Left = value; } - inline uint32_t getSourceX1CoordinateLeft(void) const { + inline uint32_t getSourceX1CoordinateLeft() const { return TheStructure.Common.SourceX1Coordinate_Left; } inline void setSourceY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourceY1Coordinate_Top = value; } - inline uint32_t getSourceY1CoordinateTop(void) const { + inline uint32_t getSourceY1CoordinateTop() const { return TheStructure.Common.SourceY1Coordinate_Top; } inline void setSourcePitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3ffff); TheStructure.Common.SourcePitch = value - 1; } - inline uint32_t getSourcePitch(void) const { + inline uint32_t getSourcePitch() const { return TheStructure.Common.SourcePitch + 1; } inline void setSourceMocs(const uint32_t value) { UNRECOVERABLE_IF(value > 0x7f); TheStructure.Common.SourceMocs = value; } - inline uint32_t getSourceMocs(void) const { + inline uint32_t getSourceMocs() const { return TheStructure.Common.SourceMocs; } inline void setSourceTiling(const SOURCE_TILING value) { TheStructure.Common.SourceTiling = value; } - inline SOURCE_TILING getSourceTiling(void) const { + inline SOURCE_TILING getSourceTiling() const { return static_cast(TheStructure.Common.SourceTiling); } inline void setSourceBaseAddress(const uint64_t value) { TheStructure.Common.SourceBaseAddress = value; } - inline uint64_t getSourceBaseAddress(void) const { + inline uint64_t getSourceBaseAddress() const { return TheStructure.Common.SourceBaseAddress; } inline void setSourceXOffset(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure.Common.SourceXOffset = value; } - inline uint32_t getSourceXOffset(void) const { + inline uint32_t getSourceXOffset() const { return TheStructure.Common.SourceXOffset; } inline void setSourceYOffset(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure.Common.SourceYOffset = value; } - inline uint32_t getSourceYOffset(void) const { + inline uint32_t getSourceYOffset() const { return TheStructure.Common.SourceYOffset; } } XY_BLOCK_COPY_BLT; @@ -5873,14 +5873,14 @@ typedef struct tagXY_FAST_COLOR_BLT { typedef enum tagINSTRUCTIONTARGET_OPCODE { INSTRUCTIONTARGET_OPCODE_OPCODE = 0x44, } INSTRUCTIONTARGET_OPCODE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.ColorDepth = COLOR_DEPTH_8_BIT_COLOR; TheStructure.Common.Client = CLIENT_2D_PROCESSOR; TheStructure.Common.InstructionTarget_Opcode = INSTRUCTIONTARGET_OPCODE::INSTRUCTIONTARGET_OPCODE_OPCODE; } - static tagXY_FAST_COLOR_BLT sInit(void) { + static tagXY_FAST_COLOR_BLT sInit() { XY_FAST_COLOR_BLT state; state.init(); return state; @@ -5892,87 +5892,87 @@ typedef struct tagXY_FAST_COLOR_BLT { inline void setColorDepth(const COLOR_DEPTH value) { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } inline void setInstructionTargetOpcode(const uint32_t value) { UNRECOVERABLE_IF(value > 0x7f); TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return TheStructure.Common.InstructionTarget_Opcode; } inline void setClient(const CLIENT value) { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } inline void setDestinationPitch(const uint32_t value) { TheStructure.Common.DestinationPitch = value - 1; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return TheStructure.Common.DestinationPitch + 1; } inline void setDestinationMOCS(const uint32_t value) { UNRECOVERABLE_IF(value > 0x7f); TheStructure.Common.DestinationMOCS = value; } - inline uint32_t getDestinationMOCS(void) const { + inline uint32_t getDestinationMOCS() const { return TheStructure.Common.DestinationMOCS; } inline void setDestinationTiling(const DESTINATION_TILING value) { TheStructure.Common.DestinationTiling = value; } - inline DESTINATION_TILING getDestinationTiling(void) const { + inline DESTINATION_TILING getDestinationTiling() const { return static_cast(TheStructure.Common.DestinationTiling); } inline void setDestinationX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return TheStructure.Common.DestinationX1Coordinate_Left; } inline void setDestinationY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return TheStructure.Common.DestinationY1Coordinate_Top; } inline void setDestinationX2CoordinateRight(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return TheStructure.Common.DestinationX2Coordinate_Right; } inline void setDestinationY2CoordinateBottom(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return TheStructure.Common.DestinationY2Coordinate_Bottom; } inline void setDestinationBaseAddress(const uint64_t value) { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return TheStructure.Common.DestinationBaseAddress; } inline void setDestinationXOffset(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure.Common.DestinationXOffset = value; } - inline uint32_t getDestinationXOffset(void) const { + inline uint32_t getDestinationXOffset() const { return TheStructure.Common.DestinationXOffset; } inline void setDestinationYOffset(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure.Common.DestinationYOffset = value; } - inline uint32_t getDestinationYOffset(void) const { + inline uint32_t getDestinationYOffset() const { return TheStructure.Common.DestinationYOffset; } inline void setFillColor(const uint32_t *value) { @@ -5985,7 +5985,7 @@ typedef struct tagXY_FAST_COLOR_BLT { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationClearAddressHigh = value; } - inline uint32_t getDestinationClearAddressHigh(void) const { + inline uint32_t getDestinationClearAddressHigh() const { return TheStructure.Common.DestinationClearAddressHigh; } } XY_FAST_COLOR_BLT; @@ -6005,14 +6005,14 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { } Common; uint32_t RawData[4]; } TheStructure; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.BorderColorRed = 0.0; TheStructure.Common.BorderColorGreen = 0.0; TheStructure.Common.BorderColorBlue = 0.0; TheStructure.Common.BorderColorAlpha = 0.0; } - static tagSAMPLER_BORDER_COLOR_STATE sInit(void) { + static tagSAMPLER_BORDER_COLOR_STATE sInit() { SAMPLER_BORDER_COLOR_STATE state; state.init(); return state; @@ -6024,25 +6024,25 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { inline void setBorderColorRed(const float value) { TheStructure.Common.BorderColorRed = value; } - inline float getBorderColorRed(void) const { + inline float getBorderColorRed() const { return TheStructure.Common.BorderColorRed; } inline void setBorderColorGreen(const float value) { TheStructure.Common.BorderColorGreen = value; } - inline float getBorderColorGreen(void) const { + inline float getBorderColorGreen() const { return TheStructure.Common.BorderColorGreen; } inline void setBorderColorBlue(const float value) { TheStructure.Common.BorderColorBlue = value; } - inline float getBorderColorBlue(void) const { + inline float getBorderColorBlue() const { return TheStructure.Common.BorderColorBlue; } inline void setBorderColorAlpha(const float value) { TheStructure.Common.BorderColorAlpha = value; } - inline float getBorderColorAlpha(void) const { + inline float getBorderColorAlpha() const { return TheStructure.Common.BorderColorAlpha; } } SAMPLER_BORDER_COLOR_STATE; diff --git a/shared/source/generated/gen8/hw_cmds_generated_gen8.inl b/shared/source/generated/gen8/hw_cmds_generated_gen8.inl index 433e82f086..beea0c0866 100644 --- a/shared/source/generated/gen8/hw_cmds_generated_gen8.inl +++ b/shared/source/generated/gen8/hw_cmds_generated_gen8.inl @@ -18,10 +18,10 @@ typedef struct tagBINDING_TABLE_STATE { SURFACESTATEPOINTER_BYTEOFFSET = 0x0, SURFACESTATEPOINTER_INDEX = 0x0, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); } - static tagBINDING_TABLE_STATE sInit(void) { + static tagBINDING_TABLE_STATE sInit() { BINDING_TABLE_STATE state; state.init(); return state; @@ -42,7 +42,7 @@ typedef struct tagBINDING_TABLE_STATE { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SurfaceStatePointer = (uint32_t)value >> SURFACESTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSurfaceStatePointer(void) const { + inline uint32_t getSurfaceStatePointer() const { return (TheStructure.Common.SurfaceStatePointer << SURFACESTATEPOINTER_BIT_SHIFT); } } BINDING_TABLE_STATE; @@ -110,7 +110,7 @@ typedef struct tagGPGPU_WALKER { INDIRECTDATASTARTADDRESS_BYTEOFFSET = 0xc, INDIRECTDATASTARTADDRESS_INDEX = 0x3, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_GPGPU_WALKER_SUBOP; @@ -119,7 +119,7 @@ typedef struct tagGPGPU_WALKER { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.SimdSize = SIMD_SIZE_SIMD8; } - static tagGPGPU_WALKER sInit(void) { + static tagGPGPU_WALKER sInit() { GPGPU_WALKER state; state.init(); return state; @@ -131,25 +131,25 @@ typedef struct tagGPGPU_WALKER { inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return (TheStructure.Common.PredicateEnable); } inline void setIndirectParameterEnable(const bool value) { TheStructure.Common.IndirectParameterEnable = value; } - inline bool getIndirectParameterEnable(void) const { + inline bool getIndirectParameterEnable() const { return (TheStructure.Common.IndirectParameterEnable); } inline void setInterfaceDescriptorOffset(const uint32_t value) { TheStructure.Common.InterfaceDescriptorOffset = value; } - inline uint32_t getInterfaceDescriptorOffset(void) const { + inline uint32_t getInterfaceDescriptorOffset() const { return (TheStructure.Common.InterfaceDescriptorOffset); } inline void setIndirectDataLength(const uint32_t value) { TheStructure.Common.IndirectDataLength = value; } - inline uint32_t getIndirectDataLength(void) const { + inline uint32_t getIndirectDataLength() const { return (TheStructure.Common.IndirectDataLength); } typedef enum tagINDIRECTDATASTARTADDRESS { @@ -159,79 +159,79 @@ typedef struct tagGPGPU_WALKER { inline void setIndirectDataStartAddress(const uint32_t value) { TheStructure.Common.IndirectDataStartAddress = value >> INDIRECTDATASTARTADDRESS_BIT_SHIFT; } - inline uint32_t getIndirectDataStartAddress(void) const { + inline uint32_t getIndirectDataStartAddress() const { return (TheStructure.Common.IndirectDataStartAddress << INDIRECTDATASTARTADDRESS_BIT_SHIFT); } inline void setThreadWidthCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadWidthCounterMaximum = value - 1; } - inline uint32_t getThreadWidthCounterMaximum(void) const { + inline uint32_t getThreadWidthCounterMaximum() const { return (TheStructure.Common.ThreadWidthCounterMaximum + 1); } inline void setThreadHeightCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadHeightCounterMaximum = value - 1; } - inline uint32_t getThreadHeightCounterMaximum(void) const { + inline uint32_t getThreadHeightCounterMaximum() const { return (TheStructure.Common.ThreadHeightCounterMaximum + 1); } inline void setThreadDepthCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadDepthCounterMaximum = value; } - inline uint32_t getThreadDepthCounterMaximum(void) const { + inline uint32_t getThreadDepthCounterMaximum() const { return (TheStructure.Common.ThreadDepthCounterMaximum); } inline void setSimdSize(const SIMD_SIZE value) { TheStructure.Common.SimdSize = value; } - inline SIMD_SIZE getSimdSize(void) const { + inline SIMD_SIZE getSimdSize() const { return static_cast(TheStructure.Common.SimdSize); } inline void setThreadGroupIdStartingX(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingX = value; } - inline uint32_t getThreadGroupIdStartingX(void) const { + inline uint32_t getThreadGroupIdStartingX() const { return (TheStructure.Common.ThreadGroupIdStartingX); } inline void setThreadGroupIdXDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdXDimension = value; } - inline uint32_t getThreadGroupIdXDimension(void) const { + inline uint32_t getThreadGroupIdXDimension() const { return (TheStructure.Common.ThreadGroupIdXDimension); } inline void setThreadGroupIdStartingY(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingY = value; } - inline uint32_t getThreadGroupIdStartingY(void) const { + inline uint32_t getThreadGroupIdStartingY() const { return (TheStructure.Common.ThreadGroupIdStartingY); } inline void setThreadGroupIdYDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdYDimension = value; } - inline uint32_t getThreadGroupIdYDimension(void) const { + inline uint32_t getThreadGroupIdYDimension() const { return (TheStructure.Common.ThreadGroupIdYDimension); } inline void setThreadGroupIdStartingResumeZ(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingResumeZ = value; } - inline uint32_t getThreadGroupIdStartingResumeZ(void) const { + inline uint32_t getThreadGroupIdStartingResumeZ() const { return (TheStructure.Common.ThreadGroupIdStartingResumeZ); } inline void setThreadGroupIdZDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdZDimension = value; } - inline uint32_t getThreadGroupIdZDimension(void) const { + inline uint32_t getThreadGroupIdZDimension() const { return (TheStructure.Common.ThreadGroupIdZDimension); } inline void setRightExecutionMask(const uint32_t value) { TheStructure.Common.RightExecutionMask = value; } - inline uint32_t getRightExecutionMask(void) const { + inline uint32_t getRightExecutionMask() const { return (TheStructure.Common.RightExecutionMask); } inline void setBottomExecutionMask(const uint32_t value) { TheStructure.Common.BottomExecutionMask = value; } - inline uint32_t getBottomExecutionMask(void) const { + inline uint32_t getBottomExecutionMask() const { return (TheStructure.Common.BottomExecutionMask); } } GPGPU_WALKER; @@ -322,7 +322,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { BINDINGTABLEPOINTER_BYTEOFFSET = 0x10, BINDINGTABLEPOINTER_INDEX = 0x4, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.FloatingPointMode = FLOATING_POINT_MODE_IEEE_754; TheStructure.Common.ThreadPriority = THREAD_PRIORITY_NORMAL_PRIORITY; @@ -332,7 +332,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { TheStructure.Common.SharedLocalMemorySize = SHARED_LOCAL_MEMORY_SIZE_ENCODES_0K; TheStructure.Common.RoundingMode = ROUNDING_MODE_RTNE; } - static tagINTERFACE_DESCRIPTOR_DATA sInit(void) { + static tagINTERFACE_DESCRIPTOR_DATA sInit() { INTERFACE_DESCRIPTOR_DATA state; state.init(); return state; @@ -349,61 +349,61 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.KernelStartPointer = (uint32_t)value >> KERNELSTARTPOINTER_BIT_SHIFT; } - inline uint32_t getKernelStartPointer(void) const { + inline uint32_t getKernelStartPointer() const { return (TheStructure.Common.KernelStartPointer << KERNELSTARTPOINTER_BIT_SHIFT); } inline void setKernelStartPointerHigh(const uint32_t value) { TheStructure.Common.KernelStartPointerHigh = value; } - inline uint32_t getKernelStartPointerHigh(void) const { + inline uint32_t getKernelStartPointerHigh() const { return (TheStructure.Common.KernelStartPointerHigh); } inline void setSoftwareExceptionEnable(const bool value) { TheStructure.Common.SoftwareExceptionEnable = value; } - inline bool getSoftwareExceptionEnable(void) const { + inline bool getSoftwareExceptionEnable() const { return (TheStructure.Common.SoftwareExceptionEnable); } inline void setMaskStackExceptionEnable(const bool value) { TheStructure.Common.MaskStackExceptionEnable = value; } - inline bool getMaskStackExceptionEnable(void) const { + inline bool getMaskStackExceptionEnable() const { return (TheStructure.Common.MaskStackExceptionEnable); } inline void setIllegalOpcodeExceptionEnable(const bool value) { TheStructure.Common.IllegalOpcodeExceptionEnable = value; } - inline bool getIllegalOpcodeExceptionEnable(void) const { + inline bool getIllegalOpcodeExceptionEnable() const { return (TheStructure.Common.IllegalOpcodeExceptionEnable); } inline void setFloatingPointMode(const FLOATING_POINT_MODE value) { TheStructure.Common.FloatingPointMode = value; } - inline FLOATING_POINT_MODE getFloatingPointMode(void) const { + inline FLOATING_POINT_MODE getFloatingPointMode() const { return static_cast(TheStructure.Common.FloatingPointMode); } inline void setThreadPriority(const THREAD_PRIORITY value) { TheStructure.Common.ThreadPriority = value; } - inline THREAD_PRIORITY getThreadPriority(void) const { + inline THREAD_PRIORITY getThreadPriority() const { return static_cast(TheStructure.Common.ThreadPriority); } inline void setSingleProgramFlow(const SINGLE_PROGRAM_FLOW value) { TheStructure.Common.SingleProgramFlow = value; } - inline SINGLE_PROGRAM_FLOW getSingleProgramFlow(void) const { + inline SINGLE_PROGRAM_FLOW getSingleProgramFlow() const { return static_cast(TheStructure.Common.SingleProgramFlow); } inline void setDenormMode(const DENORM_MODE value) { TheStructure.Common.DenormMode = value; } - inline DENORM_MODE getDenormMode(void) const { + inline DENORM_MODE getDenormMode() const { return static_cast(TheStructure.Common.DenormMode); } inline void setSamplerCount(const SAMPLER_COUNT value) { TheStructure.Common.SamplerCount = value; } - inline SAMPLER_COUNT getSamplerCount(void) const { + inline SAMPLER_COUNT getSamplerCount() const { return static_cast(TheStructure.Common.SamplerCount); } typedef enum tagSAMPLERSTATEPOINTER { @@ -414,13 +414,13 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SamplerStatePointer = (uint32_t)value >> SAMPLERSTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSamplerStatePointer(void) const { + inline uint32_t getSamplerStatePointer() const { return (TheStructure.Common.SamplerStatePointer << SAMPLERSTATEPOINTER_BIT_SHIFT); } inline void setBindingTableEntryCount(const uint32_t value) { TheStructure.Common.BindingTableEntryCount = value; } - inline uint32_t getBindingTableEntryCount(void) const { + inline uint32_t getBindingTableEntryCount() const { return (TheStructure.Common.BindingTableEntryCount); } typedef enum tagBINDINGTABLEPOINTER { @@ -431,49 +431,49 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.BindingTablePointer = (uint32_t)value >> BINDINGTABLEPOINTER_BIT_SHIFT; } - inline uint32_t getBindingTablePointer(void) const { + inline uint32_t getBindingTablePointer() const { return (TheStructure.Common.BindingTablePointer << BINDINGTABLEPOINTER_BIT_SHIFT); } inline void setConstantUrbEntryReadOffset(const uint32_t value) { TheStructure.Common.ConstantUrbEntryReadOffset = value; } - inline uint32_t getConstantUrbEntryReadOffset(void) const { + inline uint32_t getConstantUrbEntryReadOffset() const { return (TheStructure.Common.ConstantUrbEntryReadOffset); } inline void setConstantIndirectUrbEntryReadLength(const uint32_t value) { TheStructure.Common.ConstantIndirectUrbEntryReadLength = value; } - inline uint32_t getConstantIndirectUrbEntryReadLength(void) const { + inline uint32_t getConstantIndirectUrbEntryReadLength() const { return (TheStructure.Common.ConstantIndirectUrbEntryReadLength); } inline void setNumberOfThreadsInGpgpuThreadGroup(const uint32_t value) { TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup = value; } - inline uint32_t getNumberOfThreadsInGpgpuThreadGroup(void) const { + inline uint32_t getNumberOfThreadsInGpgpuThreadGroup() const { return (TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup); } inline void setSharedLocalMemorySize(const SHARED_LOCAL_MEMORY_SIZE value) { TheStructure.Common.SharedLocalMemorySize = value; } - inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize(void) const { + inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize() const { return static_cast(TheStructure.Common.SharedLocalMemorySize); } inline void setBarrierEnable(const uint32_t value) { TheStructure.Common.BarrierEnable = (value > 0u) ? 1u : 0u; } - inline bool getBarrierEnable(void) const { + inline bool getBarrierEnable() const { return (TheStructure.Common.BarrierEnable); } inline void setRoundingMode(const ROUNDING_MODE value) { TheStructure.Common.RoundingMode = value; } - inline ROUNDING_MODE getRoundingMode(void) const { + inline ROUNDING_MODE getRoundingMode() const { return static_cast(TheStructure.Common.RoundingMode); } inline void setCrossThreadConstantDataReadLength(const uint32_t value) { TheStructure.Common.Cross_ThreadConstantDataReadLength = value; } - inline uint32_t getCrossThreadConstantDataReadLength(void) const { + inline uint32_t getCrossThreadConstantDataReadLength() const { return (TheStructure.Common.Cross_ThreadConstantDataReadLength); } } INTERFACE_DESCRIPTOR_DATA; @@ -513,7 +513,7 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { INTERFACEDESCRIPTORDATASTARTADDRESS_BYTEOFFSET = 0xc, INTERFACEDESCRIPTORDATASTARTADDRESS_INDEX = 0x3, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_INTERFACE_DESCRIPTOR_LOAD_SUBOP; @@ -521,7 +521,7 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { TheStructure.Common.Pipeline = PIPELINE_MEDIA; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagMEDIA_INTERFACE_DESCRIPTOR_LOAD sInit(void) { + static tagMEDIA_INTERFACE_DESCRIPTOR_LOAD sInit() { MEDIA_INTERFACE_DESCRIPTOR_LOAD state; state.init(); return state; @@ -533,13 +533,13 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { inline void setInterfaceDescriptorTotalLength(const uint32_t value) { TheStructure.Common.InterfaceDescriptorTotalLength = value; } - inline uint32_t getInterfaceDescriptorTotalLength(void) const { + inline uint32_t getInterfaceDescriptorTotalLength() const { return (TheStructure.Common.InterfaceDescriptorTotalLength); } inline void setInterfaceDescriptorDataStartAddress(const uint32_t value) { TheStructure.Common.InterfaceDescriptorDataStartAddress = value; } - inline uint32_t getInterfaceDescriptorDataStartAddress(void) const { + inline uint32_t getInterfaceDescriptorDataStartAddress() const { return (TheStructure.Common.InterfaceDescriptorDataStartAddress); } } MEDIA_INTERFACE_DESCRIPTOR_LOAD; @@ -575,7 +575,7 @@ typedef struct tagMEDIA_STATE_FLUSH { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_STATE_FLUSH_SUBOP; @@ -583,7 +583,7 @@ typedef struct tagMEDIA_STATE_FLUSH { TheStructure.Common.Pipeline = PIPELINE_MEDIA; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagMEDIA_STATE_FLUSH sInit(void) { + static tagMEDIA_STATE_FLUSH sInit() { MEDIA_STATE_FLUSH state; state.init(); return state; @@ -595,19 +595,19 @@ typedef struct tagMEDIA_STATE_FLUSH { inline void setInterfaceDescriptorOffset(const uint32_t value) { TheStructure.Common.InterfaceDescriptorOffset = value; } - inline uint32_t getInterfaceDescriptorOffset(void) const { + inline uint32_t getInterfaceDescriptorOffset() const { return (TheStructure.Common.InterfaceDescriptorOffset); } inline void setWatermarkRequired(const uint32_t value) { TheStructure.Common.WatermarkRequired = value; } - inline uint32_t getWatermarkRequired(void) const { + inline uint32_t getWatermarkRequired() const { return (TheStructure.Common.WatermarkRequired); } inline void setFlushToGo(const bool value) { TheStructure.Common.FlushToGo = value; } - inline bool getFlushToGo(void) const { + inline bool getFlushToGo() const { return (TheStructure.Common.FlushToGo); } } MEDIA_STATE_FLUSH; @@ -697,7 +697,7 @@ typedef struct tagMEDIA_VFE_STATE { SCRATCHSPACEBASEPOINTERHIGH_BYTEOFFSET = 0x8, SCRATCHSPACEBASEPOINTERHIGH_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_VFE_STATE_SUBOP; @@ -709,7 +709,7 @@ typedef struct tagMEDIA_VFE_STATE { TheStructure.Common.SliceDisable = SLICE_DISABLE_ALL_SUBSLICES_ENABLED; TheStructure.Common.ScoreboardType = SCOREBOARD_TYPE_STALLING_SCOREBOARD; } - static tagMEDIA_VFE_STATE sInit(void) { + static tagMEDIA_VFE_STATE sInit() { MEDIA_VFE_STATE state; state.init(); return state; @@ -721,13 +721,13 @@ typedef struct tagMEDIA_VFE_STATE { inline void setPerThreadScratchSpace(const uint32_t value) { TheStructure.Common.PerThreadScratchSpace = value; } - inline uint32_t getPerThreadScratchSpace(void) const { + inline uint32_t getPerThreadScratchSpace() const { return (TheStructure.Common.PerThreadScratchSpace); } inline void setStackSize(const uint32_t value) { TheStructure.Common.StackSize = value; } - inline uint32_t getStackSize(void) const { + inline uint32_t getStackSize() const { return (TheStructure.Common.StackSize); } typedef enum tagSCRATCHSPACEBASEPOINTER { @@ -737,169 +737,169 @@ typedef struct tagMEDIA_VFE_STATE { inline void setScratchSpaceBasePointer(const uint32_t value) { TheStructure.Common.ScratchSpaceBasePointer = value >> SCRATCHSPACEBASEPOINTER_BIT_SHIFT; } - inline uint32_t getScratchSpaceBasePointer(void) const { + inline uint32_t getScratchSpaceBasePointer() const { return (TheStructure.Common.ScratchSpaceBasePointer << SCRATCHSPACEBASEPOINTER_BIT_SHIFT); } inline void setScratchSpaceBasePointerHigh(const uint32_t value) { TheStructure.Common.ScratchSpaceBasePointerHigh = value; } - inline uint32_t getScratchSpaceBasePointerHigh(void) const { + inline uint32_t getScratchSpaceBasePointerHigh() const { return (TheStructure.Common.ScratchSpaceBasePointerHigh); } inline void setBypassGatewayControl(const BYPASS_GATEWAY_CONTROL value) { TheStructure.Common.BypassGatewayControl = value; } - inline BYPASS_GATEWAY_CONTROL getBypassGatewayControl(void) const { + inline BYPASS_GATEWAY_CONTROL getBypassGatewayControl() const { return static_cast(TheStructure.Common.BypassGatewayControl); } inline void setResetGatewayTimer(const RESET_GATEWAY_TIMER value) { TheStructure.Common.ResetGatewayTimer = value; } - inline RESET_GATEWAY_TIMER getResetGatewayTimer(void) const { + inline RESET_GATEWAY_TIMER getResetGatewayTimer() const { return static_cast(TheStructure.Common.ResetGatewayTimer); } inline void setNumberOfUrbEntries(const uint32_t value) { TheStructure.Common.NumberOfUrbEntries = value; } - inline uint32_t getNumberOfUrbEntries(void) const { + inline uint32_t getNumberOfUrbEntries() const { return (TheStructure.Common.NumberOfUrbEntries); } inline void setMaximumNumberOfThreads(const uint32_t value) { TheStructure.Common.MaximumNumberOfThreads = value - 1; } - inline uint32_t getMaximumNumberOfThreads(void) const { + inline uint32_t getMaximumNumberOfThreads() const { return (TheStructure.Common.MaximumNumberOfThreads + 1); } inline void setSliceDisable(const SLICE_DISABLE value) { TheStructure.Common.SliceDisable = value; } - inline SLICE_DISABLE getSliceDisable(void) const { + inline SLICE_DISABLE getSliceDisable() const { return static_cast(TheStructure.Common.SliceDisable); } inline void setCurbeAllocationSize(const uint32_t value) { TheStructure.Common.CurbeAllocationSize = value; } - inline uint32_t getCurbeAllocationSize(void) const { + inline uint32_t getCurbeAllocationSize() const { return (TheStructure.Common.CurbeAllocationSize); } inline void setUrbEntryAllocationSize(const uint32_t value) { TheStructure.Common.UrbEntryAllocationSize = value; } - inline uint32_t getUrbEntryAllocationSize(void) const { + inline uint32_t getUrbEntryAllocationSize() const { return (TheStructure.Common.UrbEntryAllocationSize); } inline void setScoreboardMask(const uint32_t value) { TheStructure.Common.ScoreboardMask = value; } - inline uint32_t getScoreboardMask(void) const { + inline uint32_t getScoreboardMask() const { return (TheStructure.Common.ScoreboardMask); } inline void setScoreboardType(const SCOREBOARD_TYPE value) { TheStructure.Common.ScoreboardType = value; } - inline SCOREBOARD_TYPE getScoreboardType(void) const { + inline SCOREBOARD_TYPE getScoreboardType() const { return static_cast(TheStructure.Common.ScoreboardType); } inline void setScoreboardEnable(const bool value) { TheStructure.Common.ScoreboardEnable = value; } - inline bool getScoreboardEnable(void) const { + inline bool getScoreboardEnable() const { return (TheStructure.Common.ScoreboardEnable); } inline void setScoreboard0DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard0DeltaX = value; } - inline uint32_t getScoreboard0DeltaX(void) const { + inline uint32_t getScoreboard0DeltaX() const { return (TheStructure.Common.Scoreboard0DeltaX); } inline void setScoreboard0DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard0DeltaY = value; } - inline uint32_t getScoreboard0DeltaY(void) const { + inline uint32_t getScoreboard0DeltaY() const { return (TheStructure.Common.Scoreboard0DeltaY); } inline void setScoreboard1DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard1DeltaX = value; } - inline uint32_t getScoreboard1DeltaX(void) const { + inline uint32_t getScoreboard1DeltaX() const { return (TheStructure.Common.Scoreboard1DeltaX); } inline void setScoreboard1DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard1DeltaY = value; } - inline uint32_t getScoreboard1DeltaY(void) const { + inline uint32_t getScoreboard1DeltaY() const { return (TheStructure.Common.Scoreboard1DeltaY); } inline void setScoreboard2DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard2DeltaX = value; } - inline uint32_t getScoreboard2DeltaX(void) const { + inline uint32_t getScoreboard2DeltaX() const { return (TheStructure.Common.Scoreboard2DeltaX); } inline void setScoreboard2DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard2DeltaY = value; } - inline uint32_t getScoreboard2DeltaY(void) const { + inline uint32_t getScoreboard2DeltaY() const { return (TheStructure.Common.Scoreboard2DeltaY); } inline void setScoreboard3DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard3DeltaX = value; } - inline uint32_t getScoreboard3DeltaX(void) const { + inline uint32_t getScoreboard3DeltaX() const { return (TheStructure.Common.Scoreboard3DeltaX); } inline void setScoreboard3DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard3DeltaY = value; } - inline uint32_t getScoreboard3DeltaY(void) const { + inline uint32_t getScoreboard3DeltaY() const { return (TheStructure.Common.Scoreboard3DeltaY); } inline void setScoreboard4DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard4DeltaX = value; } - inline uint32_t getScoreboard4DeltaX(void) const { + inline uint32_t getScoreboard4DeltaX() const { return (TheStructure.Common.Scoreboard4DeltaX); } inline void setScoreboard4DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard4DeltaY = value; } - inline uint32_t getScoreboard4DeltaY(void) const { + inline uint32_t getScoreboard4DeltaY() const { return (TheStructure.Common.Scoreboard4DeltaY); } inline void setScoreboard5DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard5DeltaX = value; } - inline uint32_t getScoreboard5DeltaX(void) const { + inline uint32_t getScoreboard5DeltaX() const { return (TheStructure.Common.Scoreboard5DeltaX); } inline void setScoreboard5DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard5DeltaY = value; } - inline uint32_t getScoreboard5DeltaY(void) const { + inline uint32_t getScoreboard5DeltaY() const { return (TheStructure.Common.Scoreboard5DeltaY); } inline void setScoreboard6DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard6DeltaX = value; } - inline uint32_t getScoreboard6DeltaX(void) const { + inline uint32_t getScoreboard6DeltaX() const { return (TheStructure.Common.Scoreboard6DeltaX); } inline void setScoreboard6DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard6DeltaY = value; } - inline uint32_t getScoreboard6DeltaY(void) const { + inline uint32_t getScoreboard6DeltaY() const { return (TheStructure.Common.Scoreboard6DeltaY); } inline void setScoreboard7DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard7DeltaX = value; } - inline uint32_t getScoreboard7DeltaX(void) const { + inline uint32_t getScoreboard7DeltaX() const { return (TheStructure.Common.Scoreboard7DeltaX); } inline void setScoreboard7DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard7DeltaY = value; } - inline uint32_t getScoreboard7DeltaY(void) const { + inline uint32_t getScoreboard7DeltaY() const { return (TheStructure.Common.Scoreboard7DeltaY); } } MEDIA_VFE_STATE; @@ -920,12 +920,12 @@ typedef struct tagMI_ARB_CHECK { typedef enum tagMI_INSTRUCTION_TYPE { MI_INSTRUCTION_TYPE_MI_INSTRUCTION = 0x0, } MI_INSTRUCTION_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiInstructionOpcode = MI_INSTRUCTION_OPCODE_MI_ARB_CHECK; TheStructure.Common.MiInstructionType = MI_INSTRUCTION_TYPE_MI_INSTRUCTION; } - static tagMI_ARB_CHECK sInit(void) { + static tagMI_ARB_CHECK sInit() { MI_ARB_CHECK state; state.init(); return state; @@ -937,13 +937,13 @@ typedef struct tagMI_ARB_CHECK { inline void setMiInstructionOpcode(const MI_INSTRUCTION_OPCODE value) { TheStructure.Common.MiInstructionOpcode = value; } - inline MI_INSTRUCTION_OPCODE getMiInstructionOpcode(void) const { + inline MI_INSTRUCTION_OPCODE getMiInstructionOpcode() const { return static_cast(TheStructure.Common.MiInstructionOpcode); } inline void setMiInstructionType(const MI_INSTRUCTION_TYPE value) { TheStructure.Common.MiInstructionType = value; } - inline MI_INSTRUCTION_TYPE getMiInstructionType(void) const { + inline MI_INSTRUCTION_TYPE getMiInstructionType() const { return static_cast(TheStructure.Common.MiInstructionType); } } MI_ARB_CHECK; @@ -1012,7 +1012,7 @@ typedef struct tagMI_ATOMIC { ATOMIC_8B_INCREMENT = 0x25, ATOMIC_8B_DECREMENT = 0x26, } ATOMIC_OPCODES; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_INLINE_DATA_0; TheStructure.Common.DataSize = DATA_SIZE_DWORD; @@ -1021,7 +1021,7 @@ typedef struct tagMI_ATOMIC { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_ATOMIC; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_ATOMIC sInit(void) { + static tagMI_ATOMIC sInit() { MI_ATOMIC state; state.init(); return state; @@ -1033,49 +1033,49 @@ typedef struct tagMI_ATOMIC { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setAtomicOpcode(const uint32_t value) { TheStructure.Common.AtomicOpcode = value; } - inline uint32_t getAtomicOpcode(void) const { + inline uint32_t getAtomicOpcode() const { return (TheStructure.Common.AtomicOpcode); } inline void setReturnDataControl(const uint32_t value) { TheStructure.Common.ReturnDataControl = value; } - inline uint32_t getReturnDataControl(void) const { + inline uint32_t getReturnDataControl() const { return (TheStructure.Common.ReturnDataControl); } inline void setCsStall(const uint32_t value) { TheStructure.Common.CsStall = value; } - inline uint32_t getCsStall(void) const { + inline uint32_t getCsStall() const { return (TheStructure.Common.CsStall); } inline void setInlineData(const uint32_t value) { TheStructure.Common.InlineData = value; } - inline uint32_t getInlineData(void) const { + inline uint32_t getInlineData() const { return (TheStructure.Common.InlineData); } inline void setDataSize(const DATA_SIZE value) { TheStructure.Common.DataSize = value; } - inline DATA_SIZE getDataSize(void) const { + inline DATA_SIZE getDataSize() const { return static_cast(TheStructure.Common.DataSize); } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.Post_SyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.Post_SyncOperation); } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } typedef enum tagMEMORYADDRESS { @@ -1085,61 +1085,61 @@ typedef struct tagMI_ATOMIC { inline void setMemoryAddress(const uint32_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint32_t getMemoryAddress(void) const { + inline uint32_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } inline void setMemoryAddressHigh(const uint32_t value) { TheStructure.Common.MemoryAddressHigh = value; } - inline uint32_t getMemoryAddressHigh(void) const { + inline uint32_t getMemoryAddressHigh() const { return (TheStructure.Common.MemoryAddressHigh); } inline void setOperand1DataDword0(const uint32_t value) { TheStructure.Common.Operand1DataDword0 = value; } - inline uint32_t getOperand1DataDword0(void) const { + inline uint32_t getOperand1DataDword0() const { return (TheStructure.Common.Operand1DataDword0); } inline void setOperand2DataDword0(const uint32_t value) { TheStructure.Common.Operand2DataDword0 = value; } - inline uint32_t getOperand2DataDword0(void) const { + inline uint32_t getOperand2DataDword0() const { return (TheStructure.Common.Operand2DataDword0); } inline void setOperand1DataDword1(const uint32_t value) { TheStructure.Common.Operand1DataDword1 = value; } - inline uint32_t getOperand1DataDword1(void) const { + inline uint32_t getOperand1DataDword1() const { return (TheStructure.Common.Operand1DataDword1); } inline void setOperand2DataDword1(const uint32_t value) { TheStructure.Common.Operand2DataDword1 = value; } - inline uint32_t getOperand2DataDword1(void) const { + inline uint32_t getOperand2DataDword1() const { return (TheStructure.Common.Operand2DataDword1); } inline void setOperand1DataDword2(const uint32_t value) { TheStructure.Common.Operand1DataDword2 = value; } - inline uint32_t getOperand1DataDword2(void) const { + inline uint32_t getOperand1DataDword2() const { return (TheStructure.Common.Operand1DataDword2); } inline void setOperand2DataDword2(const uint32_t value) { TheStructure.Common.Operand2DataDword2 = value; } - inline uint32_t getOperand2DataDword2(void) const { + inline uint32_t getOperand2DataDword2() const { return (TheStructure.Common.Operand2DataDword2); } inline void setOperand1DataDword3(const uint32_t value) { TheStructure.Common.Operand1DataDword3 = value; } - inline uint32_t getOperand1DataDword3(void) const { + inline uint32_t getOperand1DataDword3() const { return (TheStructure.Common.Operand1DataDword3); } inline void setOperand2DataDword3(const uint32_t value) { TheStructure.Common.Operand2DataDword3 = value; } - inline uint32_t getOperand2DataDword3(void) const { + inline uint32_t getOperand2DataDword3() const { return (TheStructure.Common.Operand2DataDword3); } } MI_ATOMIC; @@ -1160,12 +1160,12 @@ typedef struct tagMI_BATCH_BUFFER_END { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_BATCH_BUFFER_END; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_BATCH_BUFFER_END sInit(void) { + static tagMI_BATCH_BUFFER_END sInit() { MI_BATCH_BUFFER_END state; state.init(); return state; @@ -1215,7 +1215,7 @@ typedef struct tagMI_BATCH_BUFFER_START { BATCHBUFFERSTARTADDRESSHIGH_BYTEOFFSET = 0x8, BATCHBUFFERSTARTADDRESSHIGH_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.AddressSpaceIndicator = ADDRESS_SPACE_INDICATOR_GGTT; @@ -1223,7 +1223,7 @@ typedef struct tagMI_BATCH_BUFFER_START { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_BATCH_BUFFER_START; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_BATCH_BUFFER_START sInit(void) { + static tagMI_BATCH_BUFFER_START sInit() { MI_BATCH_BUFFER_START state; state.init(); return state; @@ -1235,13 +1235,13 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setAddressSpaceIndicator(const ADDRESS_SPACE_INDICATOR value) { TheStructure.Common.AddressSpaceIndicator = value; } - inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator(void) const { + inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator() const { return static_cast(TheStructure.Common.AddressSpaceIndicator); } inline void set2NdLevelBatchBuffer(const _2ND_LEVEL_BATCH_BUFFER value) { TheStructure.Common._2NdLevelBatchBuffer = value; } - inline _2ND_LEVEL_BATCH_BUFFER get2NdLevelBatchBuffer(void) const { + inline _2ND_LEVEL_BATCH_BUFFER get2NdLevelBatchBuffer() const { return static_cast<_2ND_LEVEL_BATCH_BUFFER>(TheStructure.Common._2NdLevelBatchBuffer); } typedef enum tag_SECOND_LEVEL_BATCH_BUFFER { @@ -1251,7 +1251,7 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setSecondLevelBatchBuffer(const SECOND_LEVEL_BATCH_BUFFER value) { TheStructure.Common._2NdLevelBatchBuffer = (_2ND_LEVEL_BATCH_BUFFER)value; } - inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer(void) const { + inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer() const { return static_cast(TheStructure.Common._2NdLevelBatchBuffer); } typedef enum tagBATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2 { @@ -1261,7 +1261,7 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setBatchBufferStartAddressGraphicsaddress472(const uint64_t value) { TheStructure.Common.BatchBufferStartAddress_Graphicsaddress47_2 = value >> BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddressGraphicsaddress472(void) const { + inline uint64_t getBatchBufferStartAddressGraphicsaddress472() const { return (TheStructure.Common.BatchBufferStartAddress_Graphicsaddress47_2 << BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT); } typedef enum tagBATCHBUFFERSTARTADDRESS_RESERVED { @@ -1271,7 +1271,7 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setBatchBufferStartAddressReserved(const uint64_t value) { TheStructure.Common.BatchBufferStartAddress_Reserved = value >> BATCHBUFFERSTARTADDRESS_RESERVED_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddressReserved(void) const { + inline uint64_t getBatchBufferStartAddressReserved() const { return (TheStructure.Common.BatchBufferStartAddress_Reserved << BATCHBUFFERSTARTADDRESS_RESERVED_BIT_SHIFT); } } MI_BATCH_BUFFER_START; @@ -1301,13 +1301,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_IMM sInit(void) { + static tagMI_LOAD_REGISTER_IMM sInit() { MI_LOAD_REGISTER_IMM state; state.init(); return state; @@ -1319,7 +1319,7 @@ typedef struct tagMI_LOAD_REGISTER_IMM { inline void setByteWriteDisables(const uint32_t value) { TheStructure.Common.ByteWriteDisables = value; } - inline uint32_t getByteWriteDisables(void) const { + inline uint32_t getByteWriteDisables() const { return (TheStructure.Common.ByteWriteDisables); } typedef enum tagREGISTEROFFSET { @@ -1329,13 +1329,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { inline void setRegisterOffset(const uint32_t value) { TheStructure.Common.RegisterOffset = value >> REGISTEROFFSET_BIT_SHIFT; } - inline uint32_t getRegisterOffset(void) const { + inline uint32_t getRegisterOffset() const { return (TheStructure.Common.RegisterOffset << REGISTEROFFSET_BIT_SHIFT); } inline void setDataDword(const uint32_t value) { TheStructure.Common.DataDword = value; } - inline uint32_t getDataDword(void) const { + inline uint32_t getDataDword() const { return (TheStructure.Common.DataDword); } } MI_LOAD_REGISTER_IMM; @@ -1371,13 +1371,13 @@ typedef struct tagMI_LOAD_REGISTER_MEM { MEMORYADDRESS_BYTEOFFSET = 0x8, MEMORYADDRESS_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_MEM sInit(void) { + static tagMI_LOAD_REGISTER_MEM sInit() { MI_LOAD_REGISTER_MEM state; state.init(); return state; @@ -1389,13 +1389,13 @@ typedef struct tagMI_LOAD_REGISTER_MEM { inline void setAsyncModeEnable(const bool value) { TheStructure.Common.AsyncModeEnable = value; } - inline bool getAsyncModeEnable(void) const { + inline bool getAsyncModeEnable() const { return (TheStructure.Common.AsyncModeEnable); } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } typedef enum tagREGISTERADDRESS { @@ -1405,7 +1405,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { inline void setRegisterAddress(const uint32_t value) { TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return (TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT); } typedef enum tagMEMORYADDRESS { @@ -1415,7 +1415,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } } MI_LOAD_REGISTER_MEM; @@ -1446,13 +1446,13 @@ typedef struct tagMI_LOAD_REGISTER_REG { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_REG; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_REG sInit(void) { + static tagMI_LOAD_REGISTER_REG sInit() { MI_LOAD_REGISTER_REG state; state.init(); return state; @@ -1468,7 +1468,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { inline void setSourceRegisterAddress(const uint32_t value) { TheStructure.Common.SourceRegisterAddress = value >> SOURCEREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getSourceRegisterAddress(void) const { + inline uint32_t getSourceRegisterAddress() const { return (TheStructure.Common.SourceRegisterAddress << SOURCEREGISTERADDRESS_BIT_SHIFT); } typedef enum tagDESTINATIONREGISTERADDRESS { @@ -1478,7 +1478,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { inline void setDestinationRegisterAddress(const uint32_t value) { TheStructure.Common.DestinationRegisterAddress = value >> DESTINATIONREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getDestinationRegisterAddress(void) const { + inline uint32_t getDestinationRegisterAddress() const { return (TheStructure.Common.DestinationRegisterAddress << DESTINATIONREGISTERADDRESS_BIT_SHIFT); } } MI_LOAD_REGISTER_REG; @@ -1500,12 +1500,12 @@ typedef struct tagMI_NOOP { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_NOOP; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_NOOP sInit(void) { + static tagMI_NOOP sInit() { MI_NOOP state; state.init(); return state; @@ -1517,13 +1517,13 @@ typedef struct tagMI_NOOP { inline void setIdentificationNumber(const uint32_t value) { TheStructure.Common.IdentificationNumber = value; } - inline uint32_t getIdentificationNumber(void) const { + inline uint32_t getIdentificationNumber() const { return (TheStructure.Common.IdentificationNumber); } inline void setIdentificationNumberRegisterWriteEnable(const bool value) { TheStructure.Common.IdentificationNumberRegisterWriteEnable = value; } - inline bool getIdentificationNumberRegisterWriteEnable(void) const { + inline bool getIdentificationNumberRegisterWriteEnable() const { return (TheStructure.Common.IdentificationNumberRegisterWriteEnable); } } MI_NOOP; @@ -1559,13 +1559,13 @@ typedef struct tagMI_STORE_REGISTER_MEM { MEMORYADDRESS_BYTEOFFSET = 0x8, MEMORYADDRESS_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_REGISTER_MEM sInit(void) { + static tagMI_STORE_REGISTER_MEM sInit() { MI_STORE_REGISTER_MEM state; state.init(); return state; @@ -1577,13 +1577,13 @@ typedef struct tagMI_STORE_REGISTER_MEM { inline void setPredicateEnable(const uint32_t value) { TheStructure.Common.PredicateEnable = value; } - inline uint32_t getPredicateEnable(void) const { + inline uint32_t getPredicateEnable() const { return (TheStructure.Common.PredicateEnable); } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } typedef enum tagREGISTERADDRESS { @@ -1593,7 +1593,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { inline void setRegisterAddress(const uint32_t value) { TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return (TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT); } typedef enum tagMEMORYADDRESS { @@ -1603,7 +1603,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } } MI_STORE_REGISTER_MEM; @@ -1638,7 +1638,7 @@ typedef struct tagPIPELINE_SELECT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.PipelineSelection = PIPELINE_SELECTION_3D; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_PIPELINE_SELECT; @@ -1646,7 +1646,7 @@ typedef struct tagPIPELINE_SELECT { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_SINGLE_DW; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagPIPELINE_SELECT sInit(void) { + static tagPIPELINE_SELECT sInit() { PIPELINE_SELECT state; state.init(); return state; @@ -1657,13 +1657,13 @@ typedef struct tagPIPELINE_SELECT { } inline void setMaskBits(const uint32_t value) { } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return 0x3; } inline void setPipelineSelection(const PIPELINE_SELECTION value) { TheStructure.Common.PipelineSelection = value; } - inline PIPELINE_SELECTION getPipelineSelection(void) const { + inline PIPELINE_SELECTION getPipelineSelection() const { return static_cast(TheStructure.Common.PipelineSelection); } } PIPELINE_SELECT; @@ -1751,7 +1751,7 @@ typedef struct tagPIPE_CONTROL { ADDRESSHIGH_BYTEOFFSET = 0xc, ADDRESSHIGH_INDEX = 0x3, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_PIPE_CONTROL; @@ -1763,7 +1763,7 @@ typedef struct tagPIPE_CONTROL { TheStructure.Common.LriPostSyncOperation = LRI_POST_SYNC_OPERATION_NO_LRI_OPERATION; TheStructure.Common.DestinationAddressType = DESTINATION_ADDRESS_TYPE_PPGTT; } - static tagPIPE_CONTROL sInit(void) { + static tagPIPE_CONTROL sInit() { PIPE_CONTROL state; state.init(); return state; @@ -1775,139 +1775,139 @@ typedef struct tagPIPE_CONTROL { inline void setDepthCacheFlushEnable(const bool value) { TheStructure.Common.DepthCacheFlushEnable = value; } - inline bool getDepthCacheFlushEnable(void) const { + inline bool getDepthCacheFlushEnable() const { return (TheStructure.Common.DepthCacheFlushEnable); } inline void setStallAtPixelScoreboard(const bool value) { TheStructure.Common.StallAtPixelScoreboard = value; } - inline bool getStallAtPixelScoreboard(void) const { + inline bool getStallAtPixelScoreboard() const { return (TheStructure.Common.StallAtPixelScoreboard); } inline void setStateCacheInvalidationEnable(const bool value) { TheStructure.Common.StateCacheInvalidationEnable = value; } - inline bool getStateCacheInvalidationEnable(void) const { + inline bool getStateCacheInvalidationEnable() const { return (TheStructure.Common.StateCacheInvalidationEnable); } inline void setConstantCacheInvalidationEnable(const bool value) { TheStructure.Common.ConstantCacheInvalidationEnable = value; } - inline bool getConstantCacheInvalidationEnable(void) const { + inline bool getConstantCacheInvalidationEnable() const { return (TheStructure.Common.ConstantCacheInvalidationEnable); } inline void setVfCacheInvalidationEnable(const bool value) { TheStructure.Common.VfCacheInvalidationEnable = value; } - inline bool getVfCacheInvalidationEnable(void) const { + inline bool getVfCacheInvalidationEnable() const { return (TheStructure.Common.VfCacheInvalidationEnable); } inline void setDcFlushEnable(const bool value) { TheStructure.Common.DcFlushEnable = value; } - inline bool getDcFlushEnable(void) const { + inline bool getDcFlushEnable() const { return (TheStructure.Common.DcFlushEnable); } inline void setProtectedMemoryApplicationId(const uint32_t value) { TheStructure.Common.ProtectedMemoryApplicationId = value; } - inline uint32_t getProtectedMemoryApplicationId(void) const { + inline uint32_t getProtectedMemoryApplicationId() const { return (TheStructure.Common.ProtectedMemoryApplicationId); } inline void setPipeControlFlushEnable(const bool value) { TheStructure.Common.PipeControlFlushEnable = value; } - inline bool getPipeControlFlushEnable(void) const { + inline bool getPipeControlFlushEnable() const { return (TheStructure.Common.PipeControlFlushEnable); } inline void setNotifyEnable(const bool value) { TheStructure.Common.NotifyEnable = value; } - inline bool getNotifyEnable(void) const { + inline bool getNotifyEnable() const { return (TheStructure.Common.NotifyEnable); } inline void setIndirectStatePointersDisable(const bool value) { TheStructure.Common.IndirectStatePointersDisable = value; } - inline bool getIndirectStatePointersDisable(void) const { + inline bool getIndirectStatePointersDisable() const { return (TheStructure.Common.IndirectStatePointersDisable); } inline void setTextureCacheInvalidationEnable(const bool value) { TheStructure.Common.TextureCacheInvalidationEnable = value; } - inline bool getTextureCacheInvalidationEnable(void) const { + inline bool getTextureCacheInvalidationEnable() const { return (TheStructure.Common.TextureCacheInvalidationEnable); } inline void setInstructionCacheInvalidateEnable(const bool value) { TheStructure.Common.InstructionCacheInvalidateEnable = value; } - inline bool getInstructionCacheInvalidateEnable(void) const { + inline bool getInstructionCacheInvalidateEnable() const { return (TheStructure.Common.InstructionCacheInvalidateEnable); } inline void setRenderTargetCacheFlushEnable(const bool value) { TheStructure.Common.RenderTargetCacheFlushEnable = value; } - inline bool getRenderTargetCacheFlushEnable(void) const { + inline bool getRenderTargetCacheFlushEnable() const { return (TheStructure.Common.RenderTargetCacheFlushEnable); } inline void setDepthStallEnable(const bool value) { TheStructure.Common.DepthStallEnable = value; } - inline bool getDepthStallEnable(void) const { + inline bool getDepthStallEnable() const { return (TheStructure.Common.DepthStallEnable); } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setGenericMediaStateClear(const bool value) { TheStructure.Common.GenericMediaStateClear = value; } - inline bool getGenericMediaStateClear(void) const { + inline bool getGenericMediaStateClear() const { return (TheStructure.Common.GenericMediaStateClear); } inline void setTlbInvalidate(const uint32_t value) { TheStructure.Common.TlbInvalidate = value; } - inline uint32_t getTlbInvalidate(void) const { + inline uint32_t getTlbInvalidate() const { return (TheStructure.Common.TlbInvalidate); } inline void setGlobalSnapshotCountReset(const GLOBAL_SNAPSHOT_COUNT_RESET value) { TheStructure.Common.GlobalSnapshotCountReset = value; } - inline GLOBAL_SNAPSHOT_COUNT_RESET getGlobalSnapshotCountReset(void) const { + inline GLOBAL_SNAPSHOT_COUNT_RESET getGlobalSnapshotCountReset() const { return static_cast(TheStructure.Common.GlobalSnapshotCountReset); } inline void setCommandStreamerStallEnable(const uint32_t value) { TheStructure.Common.CommandStreamerStallEnable = value; } - inline uint32_t getCommandStreamerStallEnable(void) const { + inline uint32_t getCommandStreamerStallEnable() const { return (TheStructure.Common.CommandStreamerStallEnable); } inline void setStoreDataIndex(const uint32_t value) { TheStructure.Common.StoreDataIndex = value; } - inline uint32_t getStoreDataIndex(void) const { + inline uint32_t getStoreDataIndex() const { return (TheStructure.Common.StoreDataIndex); } inline void setLriPostSyncOperation(const LRI_POST_SYNC_OPERATION value) { TheStructure.Common.LriPostSyncOperation = value; } - inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation(void) const { + inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation() const { return static_cast(TheStructure.Common.LriPostSyncOperation); } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } inline void setProtectedMemoryDisable(const uint32_t value) { TheStructure.Common.ProtectedMemoryDisable = value; } - inline uint32_t getProtectedMemoryDisable(void) const { + inline uint32_t getProtectedMemoryDisable() const { return (TheStructure.Common.ProtectedMemoryDisable); } typedef enum tagADDRESS { @@ -1917,19 +1917,19 @@ typedef struct tagPIPE_CONTROL { inline void setAddress(const uint32_t value) { TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint32_t getAddress(void) const { + inline uint32_t getAddress() const { return (TheStructure.Common.Address << ADDRESS_BIT_SHIFT); } inline void setAddressHigh(const uint32_t value) { TheStructure.Common.AddressHigh = value; } - inline uint32_t getAddressHigh(void) const { + inline uint32_t getAddressHigh() const { return (TheStructure.Common.AddressHigh); } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return (TheStructure.Common.ImmediateData); } } PIPE_CONTROL; @@ -2480,7 +2480,7 @@ typedef struct tagRENDER_SURFACE_STATE { AUXILIARYSURFACEBASEADDRESS_BYTEOFFSET = 0x28, AUXILIARYSURFACEBASEADDRESS_INDEX = 0xa, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MediaBoundaryPixelMode = MEDIA_BOUNDARY_PIXEL_MODE_NORMAL_MODE; TheStructure.Common.RenderCacheReadWriteMode = RENDER_CACHE_READ_WRITE_MODE_WRITE_ONLY_CACHE; @@ -2502,7 +2502,7 @@ typedef struct tagRENDER_SURFACE_STATE { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetAndSampleUnormRotation = RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION_0DEG; TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode = AUXILIARY_SURFACE_MODE_AUX_NONE; } - static tagRENDER_SURFACE_STATE sInit(void) { + static tagRENDER_SURFACE_STATE sInit() { RENDER_SURFACE_STATE state; state.init(); return state; @@ -2514,67 +2514,67 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setMediaBoundaryPixelMode(const MEDIA_BOUNDARY_PIXEL_MODE value) { TheStructure.Common.MediaBoundaryPixelMode = value; } - inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode(void) const { + inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode() const { return static_cast(TheStructure.Common.MediaBoundaryPixelMode); } inline void setRenderCacheReadWriteMode(const RENDER_CACHE_READ_WRITE_MODE value) { TheStructure.Common.RenderCacheReadWriteMode = value; } - inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode(void) const { + inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode() const { return static_cast(TheStructure.Common.RenderCacheReadWriteMode); } inline void setSamplerL2OutOfOrderModeDisable(const bool value) { TheStructure.Common.SamplerL2OutOfOrderModeDisable = value; } - inline bool getSamplerL2OutOfOrderModeDisable(void) const { + inline bool getSamplerL2OutOfOrderModeDisable() const { return (TheStructure.Common.SamplerL2OutOfOrderModeDisable); } inline void setVerticalLineStrideOffset(const uint32_t value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline uint32_t getVerticalLineStrideOffset(void) const { + inline uint32_t getVerticalLineStrideOffset() const { return (TheStructure.Common.VerticalLineStrideOffset); } inline void setVerticalLineStride(const uint32_t value) { TheStructure.Common.VerticalLineStride = value; } - inline uint32_t getVerticalLineStride(void) const { + inline uint32_t getVerticalLineStride() const { return (TheStructure.Common.VerticalLineStride); } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setSurfaceHorizontalAlignment(const SURFACE_HORIZONTAL_ALIGNMENT value) { TheStructure.Common.SurfaceHorizontalAlignment = value; } - inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment(void) const { + inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment() const { return static_cast(TheStructure.Common.SurfaceHorizontalAlignment); } inline void setSurfaceVerticalAlignment(const SURFACE_VERTICAL_ALIGNMENT value) { TheStructure.Common.SurfaceVerticalAlignment = value; } - inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment(void) const { + inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment() const { return static_cast(TheStructure.Common.SurfaceVerticalAlignment); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setSurfaceArray(const bool value) { TheStructure.Common.SurfaceArray = value; } - inline bool getSurfaceArray(void) const { + inline bool getSurfaceArray() const { return (TheStructure.Common.SurfaceArray); } inline void setSurfaceType(const SURFACE_TYPE value) { TheStructure.Common.SurfaceType = value; } - inline SURFACE_TYPE getSurfaceType(void) const { + inline SURFACE_TYPE getSurfaceType() const { return static_cast(TheStructure.Common.SurfaceType); } typedef enum tagSURFACEQPITCH { @@ -2584,37 +2584,37 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setSurfaceQpitch(const uint32_t value) { TheStructure.Common.SurfaceQpitch = value >> SURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getSurfaceQpitch(void) const { + inline uint32_t getSurfaceQpitch() const { return (TheStructure.Common.SurfaceQpitch << SURFACEQPITCH_BIT_SHIFT); } inline void setBaseMipLevel(const uint32_t value) { TheStructure.Common.BaseMipLevel = value; } - inline uint32_t getBaseMipLevel(void) const { + inline uint32_t getBaseMipLevel() const { return (TheStructure.Common.BaseMipLevel); } inline void setMemoryObjectControlStateAgeForQuadlru(const uint32_t value) { TheStructure.Common.MemoryObjectControlState_AgeForQuadlru = value; } - inline uint32_t getMemoryObjectControlStateAgeForQuadlru(void) const { + inline uint32_t getMemoryObjectControlStateAgeForQuadlru() const { return (TheStructure.Common.MemoryObjectControlState_AgeForQuadlru); } inline void setMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.MemoryObjectControlState_Reserved = value; } - inline uint32_t getMemoryObjectControlStateReserved(void) const { + inline uint32_t getMemoryObjectControlStateReserved() const { return (TheStructure.Common.MemoryObjectControlState_Reserved); } inline void setMemoryObjectControlStateTargetCache(const uint32_t value) { TheStructure.Common.MemoryObjectControlState_TargetCache = value; } - inline uint32_t getMemoryObjectControlStateTargetCache(void) const { + inline uint32_t getMemoryObjectControlStateTargetCache() const { return (TheStructure.Common.MemoryObjectControlState_TargetCache); } inline void setMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(const uint32_t value) { TheStructure.Common.MemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = value; } - inline uint32_t getMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(void) const { + inline uint32_t getMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl() const { return (TheStructure.Common.MemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl); } inline void setMemoryObjectControlState(const uint32_t value) { @@ -2623,7 +2623,7 @@ typedef struct tagRENDER_SURFACE_STATE { TheStructure.Common.MemoryObjectControlState_TargetCache = (value >> 3); TheStructure.Common.MemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = (value >> 5); } - inline uint32_t getMemoryObjectControlState(void) const { + inline uint32_t getMemoryObjectControlState() const { int32_t mocs = TheStructure.Common.MemoryObjectControlState_AgeForQuadlru; mocs |= (TheStructure.Common.MemoryObjectControlState_Reserved << 2); mocs |= (TheStructure.Common.MemoryObjectControlState_TargetCache << 3); @@ -2633,56 +2633,56 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setWidth(const uint32_t value) { TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return (TheStructure.Common.Width + 1); } inline void setHeight(const uint32_t value) { TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return (TheStructure.Common.Height + 1); } inline void setSurfacePitch(const uint32_t value) { TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return (TheStructure.Common.SurfacePitch + 1); } inline void setDepth(const uint32_t value) { TheStructure.Common.Depth = value - 1; } - inline uint32_t getDepth(void) const { + inline uint32_t getDepth() const { return (TheStructure.Common.Depth + 1); } inline void setMipCountLod(const uint32_t value) { TheStructure.Common.MipCountLod = value; } - inline uint32_t getMipCountLod(void) const { + inline uint32_t getMipCountLod() const { return (TheStructure.Common.MipCountLod); } inline void setMipTailStartLod(const uint32_t value) { UNRECOVERABLE_IF(true); } - inline uint32_t getMipTailStartLod(void) const { + inline uint32_t getMipTailStartLod() const { UNRECOVERABLE_IF(true); return 0; } inline void setSurfaceMinLod(const uint32_t value) { TheStructure.Common.SurfaceMinLod = value; } - inline uint32_t getSurfaceMinLod(void) const { + inline uint32_t getSurfaceMinLod() const { return (TheStructure.Common.SurfaceMinLod); } inline void setCoherencyType(const COHERENCY_TYPE value) { TheStructure.Common.CoherencyType = value; } - inline COHERENCY_TYPE getCoherencyType(void) const { + inline COHERENCY_TYPE getCoherencyType() const { return static_cast(TheStructure.Common.CoherencyType); } inline void setEwaDisableForCube(const bool value) { TheStructure.Common.EwaDisableForCube = value; } - inline bool getEwaDisableForCube(void) const { + inline bool getEwaDisableForCube() const { return (TheStructure.Common.EwaDisableForCube); } typedef enum tagYOFFSET { @@ -2692,7 +2692,7 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setYOffset(const uint32_t value) { TheStructure.Common.YOffset = value >> YOFFSET_BIT_SHIFT; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return (TheStructure.Common.YOffset << YOFFSET_BIT_SHIFT); } typedef enum tagXOFFSET { @@ -2702,181 +2702,181 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setXOffset(const uint32_t value) { TheStructure.Common.XOffset = value >> XOFFSET_BIT_SHIFT; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return (TheStructure.Common.XOffset << XOFFSET_BIT_SHIFT); } inline void setResourceMinLod(const uint32_t value) { TheStructure.Common.ResourceMinLod = value; } - inline uint32_t getResourceMinLod(void) const { + inline uint32_t getResourceMinLod() const { return (TheStructure.Common.ResourceMinLod); } inline void setShaderChannelSelectAlpha(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectAlpha = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha() const { return static_cast(TheStructure.Common.ShaderChannelSelectAlpha); } inline void setShaderChannelSelectBlue(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectBlue = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue() const { return static_cast(TheStructure.Common.ShaderChannelSelectBlue); } inline void setShaderChannelSelectGreen(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectGreen = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen() const { return static_cast(TheStructure.Common.ShaderChannelSelectGreen); } inline void setShaderChannelSelectRed(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectRed = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed() const { return static_cast(TheStructure.Common.ShaderChannelSelectRed); } inline void setAlphaClearColor(const ALPHA_CLEAR_COLOR value) { TheStructure.Common.AlphaClearColor = value; } - inline ALPHA_CLEAR_COLOR getAlphaClearColor(void) const { + inline ALPHA_CLEAR_COLOR getAlphaClearColor() const { return static_cast(TheStructure.Common.AlphaClearColor); } inline void setBlueClearColor(const BLUE_CLEAR_COLOR value) { TheStructure.Common.BlueClearColor = value; } - inline BLUE_CLEAR_COLOR getBlueClearColor(void) const { + inline BLUE_CLEAR_COLOR getBlueClearColor() const { return static_cast(TheStructure.Common.BlueClearColor); } inline void setGreenClearColor(const GREEN_CLEAR_COLOR value) { TheStructure.Common.GreenClearColor = value; } - inline GREEN_CLEAR_COLOR getGreenClearColor(void) const { + inline GREEN_CLEAR_COLOR getGreenClearColor() const { return static_cast(TheStructure.Common.GreenClearColor); } inline void setRedClearColor(const RED_CLEAR_COLOR value) { TheStructure.Common.RedClearColor = value; } - inline RED_CLEAR_COLOR getRedClearColor(void) const { + inline RED_CLEAR_COLOR getRedClearColor() const { return static_cast(TheStructure.Common.RedClearColor); } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddress = value; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return (TheStructure.Common.SurfaceBaseAddress); } inline void setCubeFaceEnablePositiveZ(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveZ = value; } - inline bool getCubeFaceEnablePositiveZ(void) const { + inline bool getCubeFaceEnablePositiveZ() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveZ); } inline void setCubeFaceEnableNegativeZ(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeZ = value; } - inline bool getCubeFaceEnableNegativeZ(void) const { + inline bool getCubeFaceEnableNegativeZ() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeZ); } inline void setCubeFaceEnablePositiveY(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveY = value; } - inline bool getCubeFaceEnablePositiveY(void) const { + inline bool getCubeFaceEnablePositiveY() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveY); } inline void setCubeFaceEnableNegativeY(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeY = value; } - inline bool getCubeFaceEnableNegativeY(void) const { + inline bool getCubeFaceEnableNegativeY() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeY); } inline void setCubeFaceEnablePositiveX(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveX = value; } - inline bool getCubeFaceEnablePositiveX(void) const { + inline bool getCubeFaceEnablePositiveX() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveX); } inline void setCubeFaceEnableNegativeX(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeX = value; } - inline bool getCubeFaceEnableNegativeX(void) const { + inline bool getCubeFaceEnableNegativeX() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeX); } inline void setMultisamplePositionPaletteIndex(const uint32_t value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisamplePositionPaletteIndex = value; } - inline uint32_t getMultisamplePositionPaletteIndex(void) const { + inline uint32_t getMultisamplePositionPaletteIndex() const { return (TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisamplePositionPaletteIndex); } inline void setNumberOfMultisamples(const NUMBER_OF_MULTISAMPLES value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.NumberOfMultisamples = value; } - inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples(void) const { + inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples() const { return static_cast(TheStructure.SurfaceTypeIsnotSurftype_Strbuf.NumberOfMultisamples); } inline void setMultisampledSurfaceStorageFormat(const MULTISAMPLED_SURFACE_STORAGE_FORMAT value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisampledSurfaceStorageFormat = value; } - inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat(void) const { + inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat() const { return static_cast(TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisampledSurfaceStorageFormat); } inline void setRenderTargetViewExtent(const uint32_t value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetViewExtent = value - 1; } - inline uint32_t getRenderTargetViewExtent(void) const { + inline uint32_t getRenderTargetViewExtent() const { return (TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetViewExtent + 1); } inline void setMinimumArrayElement(const uint32_t value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MinimumArrayElement = value; } - inline uint32_t getMinimumArrayElement(void) const { + inline uint32_t getMinimumArrayElement() const { return (TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MinimumArrayElement); } inline void setRenderTargetAndSampleUnormRotation(const RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetAndSampleUnormRotation = value; } - inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation(void) const { + inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation() const { return static_cast(TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetAndSampleUnormRotation); } inline void setYOffsetForUOrUvPlane(const uint32_t value) { TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane = value; } - inline uint32_t getYOffsetForUOrUvPlane(void) const { + inline uint32_t getYOffsetForUOrUvPlane() const { return (TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane); } inline void setXOffsetForUOrUvPlane(const uint32_t value) { TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane = value; } - inline uint32_t getXOffsetForUOrUvPlane(void) const { + inline uint32_t getXOffsetForUOrUvPlane() const { return (TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane); } inline void setSeparateUvPlaneEnable(const bool value) { TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable = value; } - inline bool getSeparateUvPlaneEnable(void) const { + inline bool getSeparateUvPlaneEnable() const { return (TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable); } inline void setYOffsetForVPlane(const uint64_t value) { TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane = value; } - inline uint64_t getYOffsetForVPlane(void) const { + inline uint64_t getYOffsetForVPlane() const { return (TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane); } inline void setXOffsetForVPlane(const uint64_t value) { TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane = value; } - inline uint64_t getXOffsetForVPlane(void) const { + inline uint64_t getXOffsetForVPlane() const { return (TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane); } inline void setAuxiliarySurfaceMode(const AUXILIARY_SURFACE_MODE value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode = value; } - inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode(void) const { + inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode() const { return static_cast(TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode); } inline void setAuxiliarySurfacePitch(const uint32_t value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch = value - 1; } - inline uint32_t getAuxiliarySurfacePitch(void) const { + inline uint32_t getAuxiliarySurfacePitch() const { return (TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch + 1); } typedef enum tagAUXILIARYSURFACEQPITCH { @@ -2886,7 +2886,7 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setAuxiliarySurfaceQpitch(const uint32_t value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch = value >> AUXILIARYSURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getAuxiliarySurfaceQpitch(void) const { + inline uint32_t getAuxiliarySurfaceQpitch() const { return (TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch << AUXILIARYSURFACEQPITCH_BIT_SHIFT); } typedef enum tagAUXILIARYSURFACEBASEADDRESS { @@ -2896,13 +2896,13 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setAuxiliarySurfaceBaseAddress(const uint64_t value) { TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress = value >> AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getAuxiliarySurfaceBaseAddress(void) const { + inline uint64_t getAuxiliarySurfaceBaseAddress() const { return (TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress << AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT); } inline void setAuxiliaryTableIndexForMediaCompressedSurface(const uint64_t value) { TheStructure.MemoryCompressionEnableIs1.AuxiliaryTableIndexForMediaCompressedSurface = value; } - inline uint64_t getAuxiliaryTableIndexForMediaCompressedSurface(void) const { + inline uint64_t getAuxiliaryTableIndexForMediaCompressedSurface() const { return (TheStructure.MemoryCompressionEnableIs1.AuxiliaryTableIndexForMediaCompressedSurface); } } RENDER_SURFACE_STATE; @@ -3026,7 +3026,7 @@ typedef struct tagSAMPLER_STATE { MAXIMUM_ANISOTROPY_RATIO_141 = 0x6, MAXIMUM_ANISOTROPY_RATIO_161 = 0x7, } MAXIMUM_ANISOTROPY; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.LodAlgorithm = LOD_ALGORITHM_LEGACY; TheStructure.Common.MinModeFilter = MIN_MODE_FILTER_NEAREST; @@ -3044,7 +3044,7 @@ typedef struct tagSAMPLER_STATE { TheStructure.Common.TrilinearFilterQuality = TRILINEAR_FILTER_QUALITY_FULL; TheStructure.Common.MaximumAnisotropy = MAXIMUM_ANISOTROPY_RATIO_21; } - static tagSAMPLER_STATE sInit(void) { + static tagSAMPLER_STATE sInit() { SAMPLER_STATE state; state.init(); return state; @@ -3056,103 +3056,103 @@ typedef struct tagSAMPLER_STATE { inline void setLodAlgorithm(const LOD_ALGORITHM value) { TheStructure.Common.LodAlgorithm = value; } - inline LOD_ALGORITHM getLodAlgorithm(void) const { + inline LOD_ALGORITHM getLodAlgorithm() const { return static_cast(TheStructure.Common.LodAlgorithm); } inline void setTextureLodBias(const uint32_t value) { TheStructure.Common.TextureLodBias = value; } - inline uint32_t getTextureLodBias(void) const { + inline uint32_t getTextureLodBias() const { return (TheStructure.Common.TextureLodBias); } inline void setMinModeFilter(const MIN_MODE_FILTER value) { TheStructure.Common.MinModeFilter = value; } - inline MIN_MODE_FILTER getMinModeFilter(void) const { + inline MIN_MODE_FILTER getMinModeFilter() const { return static_cast(TheStructure.Common.MinModeFilter); } inline void setMagModeFilter(const MAG_MODE_FILTER value) { TheStructure.Common.MagModeFilter = value; } - inline MAG_MODE_FILTER getMagModeFilter(void) const { + inline MAG_MODE_FILTER getMagModeFilter() const { return static_cast(TheStructure.Common.MagModeFilter); } inline void setMipModeFilter(const MIP_MODE_FILTER value) { TheStructure.Common.MipModeFilter = value; } - inline MIP_MODE_FILTER getMipModeFilter(void) const { + inline MIP_MODE_FILTER getMipModeFilter() const { return static_cast(TheStructure.Common.MipModeFilter); } inline void setBaseMipLevel(const uint32_t value) { TheStructure.Common.BaseMipLevel = value; } - inline uint32_t getBaseMipLevel(void) const { + inline uint32_t getBaseMipLevel() const { return (TheStructure.Common.BaseMipLevel); } inline void setLodPreclampMode(const LOD_PRECLAMP_MODE value) { TheStructure.Common.LodPreclampMode = value; } - inline LOD_PRECLAMP_MODE getLodPreclampMode(void) const { + inline LOD_PRECLAMP_MODE getLodPreclampMode() const { return static_cast(TheStructure.Common.LodPreclampMode); } inline void setTextureBorderColorMode(const TEXTURE_BORDER_COLOR_MODE value) { TheStructure.Common.TextureBorderColorMode = value; } - inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode(void) const { + inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode() const { return static_cast(TheStructure.Common.TextureBorderColorMode); } inline void setSamplerDisable(const bool value) { TheStructure.Common.SamplerDisable = value; } - inline bool getSamplerDisable(void) const { + inline bool getSamplerDisable() const { return (TheStructure.Common.SamplerDisable); } inline void setCubeSurfaceControlMode(const CUBE_SURFACE_CONTROL_MODE value) { TheStructure.Common.CubeSurfaceControlMode = value; } - inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode(void) const { + inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode() const { return static_cast(TheStructure.Common.CubeSurfaceControlMode); } inline void setShadowFunction(const SHADOW_FUNCTION value) { TheStructure.Common.ShadowFunction = value; } - inline SHADOW_FUNCTION getShadowFunction(void) const { + inline SHADOW_FUNCTION getShadowFunction() const { return static_cast(TheStructure.Common.ShadowFunction); } inline void setChromakeyMode(const CHROMAKEY_MODE value) { TheStructure.Common.ChromakeyMode = value; } - inline CHROMAKEY_MODE getChromakeyMode(void) const { + inline CHROMAKEY_MODE getChromakeyMode() const { return static_cast(TheStructure.Common.ChromakeyMode); } inline void setChromakeyIndex(const uint32_t value) { TheStructure.Common.ChromakeyIndex = value; } - inline uint32_t getChromakeyIndex(void) const { + inline uint32_t getChromakeyIndex() const { return (TheStructure.Common.ChromakeyIndex); } inline void setChromakeyEnable(const bool value) { TheStructure.Common.ChromakeyEnable = value; } - inline bool getChromakeyEnable(void) const { + inline bool getChromakeyEnable() const { return (TheStructure.Common.ChromakeyEnable); } inline void setMaxLod(const uint32_t value) { TheStructure.Common.MaxLod = value; } - inline uint32_t getMaxLod(void) const { + inline uint32_t getMaxLod() const { return (TheStructure.Common.MaxLod); } inline void setMinLod(const uint32_t value) { TheStructure.Common.MinLod = value; } - inline uint32_t getMinLod(void) const { + inline uint32_t getMinLod() const { return (TheStructure.Common.MinLod); } inline void setLodClampMagnificationMode(const LOD_CLAMP_MAGNIFICATION_MODE value) { TheStructure.Common.LodClampMagnificationMode = value; } - inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode(void) const { + inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode() const { return static_cast(TheStructure.Common.LodClampMagnificationMode); } typedef enum tagINDIRECTSTATEPOINTER { @@ -3168,73 +3168,73 @@ typedef struct tagSAMPLER_STATE { inline void setTczAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TczAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTczAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTczAddressControlMode() const { return static_cast(TheStructure.Common.TczAddressControlMode); } inline void setTcyAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcyAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode() const { return static_cast(TheStructure.Common.TcyAddressControlMode); } inline void setTcxAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcxAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode() const { return static_cast(TheStructure.Common.TcxAddressControlMode); } inline void setNonNormalizedCoordinateEnable(const bool value) { TheStructure.Common.Non_NormalizedCoordinateEnable = value; } - inline bool getNonNormalizedCoordinateEnable(void) const { + inline bool getNonNormalizedCoordinateEnable() const { return (TheStructure.Common.Non_NormalizedCoordinateEnable); } inline void setTrilinearFilterQuality(const TRILINEAR_FILTER_QUALITY value) { TheStructure.Common.TrilinearFilterQuality = value; } - inline TRILINEAR_FILTER_QUALITY getTrilinearFilterQuality(void) const { + inline TRILINEAR_FILTER_QUALITY getTrilinearFilterQuality() const { return static_cast(TheStructure.Common.TrilinearFilterQuality); } inline void setRAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMinFilterRoundingEnable = value; } - inline bool getRAddressMinFilterRoundingEnable(void) const { + inline bool getRAddressMinFilterRoundingEnable() const { return (TheStructure.Common.RAddressMinFilterRoundingEnable); } inline void setRAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMagFilterRoundingEnable = value; } - inline bool getRAddressMagFilterRoundingEnable(void) const { + inline bool getRAddressMagFilterRoundingEnable() const { return (TheStructure.Common.RAddressMagFilterRoundingEnable); } inline void setVAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMinFilterRoundingEnable = value; } - inline bool getVAddressMinFilterRoundingEnable(void) const { + inline bool getVAddressMinFilterRoundingEnable() const { return (TheStructure.Common.VAddressMinFilterRoundingEnable); } inline void setVAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMagFilterRoundingEnable = value; } - inline bool getVAddressMagFilterRoundingEnable(void) const { + inline bool getVAddressMagFilterRoundingEnable() const { return (TheStructure.Common.VAddressMagFilterRoundingEnable); } inline void setUAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMinFilterRoundingEnable = value; } - inline bool getUAddressMinFilterRoundingEnable(void) const { + inline bool getUAddressMinFilterRoundingEnable() const { return (TheStructure.Common.UAddressMinFilterRoundingEnable); } inline void setUAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMagFilterRoundingEnable = value; } - inline bool getUAddressMagFilterRoundingEnable(void) const { + inline bool getUAddressMagFilterRoundingEnable() const { return (TheStructure.Common.UAddressMagFilterRoundingEnable); } inline void setMaximumAnisotropy(const MAXIMUM_ANISOTROPY value) { TheStructure.Common.MaximumAnisotropy = value; } - inline MAXIMUM_ANISOTROPY getMaximumAnisotropy(void) const { + inline MAXIMUM_ANISOTROPY getMaximumAnisotropy() const { return static_cast(TheStructure.Common.MaximumAnisotropy); } } SAMPLER_STATE; @@ -3337,7 +3337,7 @@ typedef struct tagSTATE_BASE_ADDRESS { INSTRUCTIONBASEADDRESS_BYTEOFFSET = 0x28, INSTRUCTIONBASEADDRESS_INDEX = 0xa, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_BASE_ADDRESS; @@ -3345,7 +3345,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagSTATE_BASE_ADDRESS sInit(void) { + static tagSTATE_BASE_ADDRESS sInit() { STATE_BASE_ADDRESS state; state.init(); return state; @@ -3357,31 +3357,31 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.GeneralStateBaseAddressModifyEnable = value; } - inline bool getGeneralStateBaseAddressModifyEnable(void) const { + inline bool getGeneralStateBaseAddressModifyEnable() const { return (TheStructure.Common.GeneralStateBaseAddressModifyEnable); } inline void setGeneralStateMemoryObjectControlStateAgeForQuadlru(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_AgeForQuadlru = value; } - inline uint64_t getGeneralStateMemoryObjectControlStateAgeForQuadlru(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateAgeForQuadlru() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_AgeForQuadlru); } inline void setGeneralStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getGeneralStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved); } inline void setGeneralStateMemoryObjectControlStateTargetCache(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_TargetCache = value; } - inline uint64_t getGeneralStateMemoryObjectControlStateTargetCache(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateTargetCache() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_TargetCache); } inline void setGeneralStateMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = value; } - inline uint64_t getGeneralStateMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl); } typedef enum tagGENERALSTATEBASEADDRESS { @@ -3391,31 +3391,31 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddress(const uint64_t value) { TheStructure.Common.GeneralStateBaseAddress = value >> GENERALSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getGeneralStateBaseAddress(void) const { + inline uint64_t getGeneralStateBaseAddress() const { return (TheStructure.Common.GeneralStateBaseAddress << GENERALSTATEBASEADDRESS_BIT_SHIFT); } inline void setStatelessDataPortAccessMemoryObjectControlStateAgeForQuadlru(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_AgeForQuadlru = value; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateAgeForQuadlru(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateAgeForQuadlru() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_AgeForQuadlru); } inline void setStatelessDataPortAccessMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved); } inline void setStatelessDataPortAccessMemoryObjectControlStateTargetCache(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_TargetCache = value; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateTargetCache(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateTargetCache() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_TargetCache); } inline void setStatelessDataPortAccessMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = value; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl); } inline void setStatelessDataPortAccessMemoryObjectControlState(const uint32_t value) { @@ -3424,7 +3424,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_TargetCache = (value >> 3); TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = (value >> 5); } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlState(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlState() const { int32_t mocs = TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_AgeForQuadlru; mocs |= (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved << 2); mocs |= (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_TargetCache << 3); @@ -3434,31 +3434,31 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.SurfaceStateBaseAddressModifyEnable = value; } - inline bool getSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.SurfaceStateBaseAddressModifyEnable); } inline void setSurfaceStateMemoryObjectControlStateAgeForQuadlru(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_AgeForQuadlru = value; } - inline uint64_t getSurfaceStateMemoryObjectControlStateAgeForQuadlru(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateAgeForQuadlru() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_AgeForQuadlru); } inline void setSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved); } inline void setSurfaceStateMemoryObjectControlStateTargetCache(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_TargetCache = value; } - inline uint64_t getSurfaceStateMemoryObjectControlStateTargetCache(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateTargetCache() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_TargetCache); } inline void setSurfaceStateMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = value; } - inline uint64_t getSurfaceStateMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl); } typedef enum tagSURFACESTATEBASEADDRESS { @@ -3468,37 +3468,37 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceStateBaseAddress = value >> SURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getSurfaceStateBaseAddress(void) const { + inline uint64_t getSurfaceStateBaseAddress() const { return (TheStructure.Common.SurfaceStateBaseAddress << SURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setDynamicStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.DynamicStateBaseAddressModifyEnable = value; } - inline bool getDynamicStateBaseAddressModifyEnable(void) const { + inline bool getDynamicStateBaseAddressModifyEnable() const { return (TheStructure.Common.DynamicStateBaseAddressModifyEnable); } inline void setDynamicStateMemoryObjectControlStateAgeForQuadlru(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_AgeForQuadlru = value; } - inline uint64_t getDynamicStateMemoryObjectControlStateAgeForQuadlru(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateAgeForQuadlru() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_AgeForQuadlru); } inline void setDynamicStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getDynamicStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved); } inline void setDynamicStateMemoryObjectControlStateTargetCache(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_TargetCache = value; } - inline uint64_t getDynamicStateMemoryObjectControlStateTargetCache(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateTargetCache() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_TargetCache); } inline void setDynamicStateMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = value; } - inline uint64_t getDynamicStateMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl); } typedef enum tagDYNAMICSTATEBASEADDRESS { @@ -3508,37 +3508,37 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setDynamicStateBaseAddress(const uint64_t value) { TheStructure.Common.DynamicStateBaseAddress = value >> DYNAMICSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getDynamicStateBaseAddress(void) const { + inline uint64_t getDynamicStateBaseAddress() const { return (TheStructure.Common.DynamicStateBaseAddress << DYNAMICSTATEBASEADDRESS_BIT_SHIFT); } inline void setIndirectObjectBaseAddressModifyEnable(const bool value) { TheStructure.Common.IndirectObjectBaseAddressModifyEnable = value; } - inline bool getIndirectObjectBaseAddressModifyEnable(void) const { + inline bool getIndirectObjectBaseAddressModifyEnable() const { return (TheStructure.Common.IndirectObjectBaseAddressModifyEnable); } inline void setIndirectObjectMemoryObjectControlStateAgeForQuadlru(const uint64_t value) { TheStructure.Common.IndirectObjectMemoryObjectControlState_AgeForQuadlru = value; } - inline uint64_t getIndirectObjectMemoryObjectControlStateAgeForQuadlru(void) const { + inline uint64_t getIndirectObjectMemoryObjectControlStateAgeForQuadlru() const { return (TheStructure.Common.IndirectObjectMemoryObjectControlState_AgeForQuadlru); } inline void setIndirectObjectMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.IndirectObjectMemoryObjectControlState_Reserved = value; } - inline uint64_t getIndirectObjectMemoryObjectControlStateReserved(void) const { + inline uint64_t getIndirectObjectMemoryObjectControlStateReserved() const { return (TheStructure.Common.IndirectObjectMemoryObjectControlState_Reserved); } inline void setIndirectObjectMemoryObjectControlStateTargetCache(const uint64_t value) { TheStructure.Common.IndirectObjectMemoryObjectControlState_TargetCache = value; } - inline uint64_t getIndirectObjectMemoryObjectControlStateTargetCache(void) const { + inline uint64_t getIndirectObjectMemoryObjectControlStateTargetCache() const { return (TheStructure.Common.IndirectObjectMemoryObjectControlState_TargetCache); } inline void setIndirectObjectMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(const uint64_t value) { TheStructure.Common.IndirectObjectMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = value; } - inline uint64_t getIndirectObjectMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(void) const { + inline uint64_t getIndirectObjectMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl() const { return (TheStructure.Common.IndirectObjectMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl); } typedef enum tagINDIRECTOBJECTBASEADDRESS { @@ -3548,37 +3548,37 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setIndirectObjectBaseAddress(const uint64_t value) { TheStructure.Common.IndirectObjectBaseAddress = value >> INDIRECTOBJECTBASEADDRESS_BIT_SHIFT; } - inline uint64_t getIndirectObjectBaseAddress(void) const { + inline uint64_t getIndirectObjectBaseAddress() const { return (TheStructure.Common.IndirectObjectBaseAddress << INDIRECTOBJECTBASEADDRESS_BIT_SHIFT); } inline void setInstructionBaseAddressModifyEnable(const bool value) { TheStructure.Common.InstructionBaseAddressModifyEnable = value; } - inline bool getInstructionBaseAddressModifyEnable(void) const { + inline bool getInstructionBaseAddressModifyEnable() const { return (TheStructure.Common.InstructionBaseAddressModifyEnable); } inline void setInstructionMemoryObjectControlStateAgeForQuadlru(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_AgeForQuadlru = value; } - inline uint64_t getInstructionMemoryObjectControlStateAgeForQuadlru(void) const { + inline uint64_t getInstructionMemoryObjectControlStateAgeForQuadlru() const { return (TheStructure.Common.InstructionMemoryObjectControlState_AgeForQuadlru); } inline void setInstructionMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = value; } - inline uint64_t getInstructionMemoryObjectControlStateReserved(void) const { + inline uint64_t getInstructionMemoryObjectControlStateReserved() const { return (TheStructure.Common.InstructionMemoryObjectControlState_Reserved); } inline void setInstructionMemoryObjectControlStateTargetCache(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_TargetCache = value; } - inline uint64_t getInstructionMemoryObjectControlStateTargetCache(void) const { + inline uint64_t getInstructionMemoryObjectControlStateTargetCache() const { return (TheStructure.Common.InstructionMemoryObjectControlState_TargetCache); } inline void setInstructionMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = value; } - inline uint64_t getInstructionMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(void) const { + inline uint64_t getInstructionMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl() const { return (TheStructure.Common.InstructionMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl); } typedef enum tagINSTRUCTIONBASEADDRESS { @@ -3588,55 +3588,55 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setInstructionBaseAddress(const uint64_t value) { TheStructure.Common.InstructionBaseAddress = value >> INSTRUCTIONBASEADDRESS_BIT_SHIFT; } - inline uint64_t getInstructionBaseAddress(void) const { + inline uint64_t getInstructionBaseAddress() const { return (TheStructure.Common.InstructionBaseAddress << INSTRUCTIONBASEADDRESS_BIT_SHIFT); } inline void setGeneralStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.GeneralStateBufferSizeModifyEnable = value; } - inline bool getGeneralStateBufferSizeModifyEnable(void) const { + inline bool getGeneralStateBufferSizeModifyEnable() const { return (TheStructure.Common.GeneralStateBufferSizeModifyEnable); } inline void setGeneralStateBufferSize(const uint32_t value) { TheStructure.Common.GeneralStateBufferSize = value; } - inline uint32_t getGeneralStateBufferSize(void) const { + inline uint32_t getGeneralStateBufferSize() const { return (TheStructure.Common.GeneralStateBufferSize); } inline void setDynamicStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.DynamicStateBufferSizeModifyEnable = value; } - inline bool getDynamicStateBufferSizeModifyEnable(void) const { + inline bool getDynamicStateBufferSizeModifyEnable() const { return (TheStructure.Common.DynamicStateBufferSizeModifyEnable); } inline void setDynamicStateBufferSize(const uint32_t value) { TheStructure.Common.DynamicStateBufferSize = value; } - inline uint32_t getDynamicStateBufferSize(void) const { + inline uint32_t getDynamicStateBufferSize() const { return (TheStructure.Common.DynamicStateBufferSize); } inline void setIndirectObjectBufferSizeModifyEnable(const bool value) { TheStructure.Common.IndirectObjectBufferSizeModifyEnable = value; } - inline bool getIndirectObjectBufferSizeModifyEnable(void) const { + inline bool getIndirectObjectBufferSizeModifyEnable() const { return (TheStructure.Common.IndirectObjectBufferSizeModifyEnable); } inline void setIndirectObjectBufferSize(const uint32_t value) { TheStructure.Common.IndirectObjectBufferSize = value; } - inline uint32_t getIndirectObjectBufferSize(void) const { + inline uint32_t getIndirectObjectBufferSize() const { return (TheStructure.Common.IndirectObjectBufferSize); } inline void setInstructionBufferSizeModifyEnable(const bool value) { TheStructure.Common.InstructionBufferSizeModifyEnable = value; } - inline bool getInstructionBufferSizeModifyEnable(void) const { + inline bool getInstructionBufferSizeModifyEnable() const { return (TheStructure.Common.InstructionBufferSizeModifyEnable); } inline void setInstructionBufferSize(const uint32_t value) { TheStructure.Common.InstructionBufferSize = value; } - inline uint32_t getInstructionBufferSize(void) const { + inline uint32_t getInstructionBufferSize() const { return (TheStructure.Common.InstructionBufferSize); } inline void setStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { @@ -3646,7 +3646,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.RawData[3] = 0x00790000; } } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables() const { return (uint32_t)(((TheStructure.RawData[3] & 0x007f0000u) == 0x00710000u) ? 0 : 2); } inline void setInstructionMemoryObjectControlState(const uint32_t value) { @@ -3655,7 +3655,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.InstructionMemoryObjectControlState_TargetCache = (value >> 3); TheStructure.Common.InstructionMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = (value >> 5); } - inline uint32_t getInstructionMemoryObjectControlState(void) const { + inline uint32_t getInstructionMemoryObjectControlState() const { int32_t mocs = TheStructure.Common.InstructionMemoryObjectControlState_AgeForQuadlru; mocs |= (TheStructure.Common.InstructionMemoryObjectControlState_Reserved << 2); mocs |= (TheStructure.Common.InstructionMemoryObjectControlState_TargetCache << 3); @@ -3694,13 +3694,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { MEMORYADDRESS_BYTEOFFSET = 0x4, MEMORYADDRESS_INDEX = 0x1, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_REPORT_PERF_COUNT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_REPORT_PERF_COUNT sInit(void) { + static tagMI_REPORT_PERF_COUNT sInit() { MI_REPORT_PERF_COUNT state; state.init(); return state; @@ -3712,13 +3712,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } inline void setCoreModeEnable(const uint64_t value) { TheStructure.Common.CoreModeEnable = value; } - inline uint64_t getCoreModeEnable(void) const { + inline uint64_t getCoreModeEnable() const { return (TheStructure.Common.CoreModeEnable); } typedef enum tagMEMORYADDRESS { @@ -3728,13 +3728,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } inline void setReportId(const uint32_t value) { TheStructure.Common.ReportId = value; } - inline uint32_t getReportId(void) const { + inline uint32_t getReportId() const { return (TheStructure.Common.ReportId); } } MI_REPORT_PERF_COUNT; @@ -3755,11 +3755,11 @@ struct MI_USER_INTERRUPT { enum COMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MICommandOpcode = MI_COMMAND_OPCODE_MI_USER_INTERRUPT; } - static MI_USER_INTERRUPT sInit(void) { + static MI_USER_INTERRUPT sInit() { MI_USER_INTERRUPT state; state.init(); return state; @@ -3816,7 +3816,7 @@ typedef struct tagMI_FLUSH_DW { DESTINATION_ADDRESS_TYPE_PPGTT = 0x0, DESTINATION_ADDRESS_TYPE_GGTT = 0x1, } DESTINATION_ADDRESS_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.PostSyncOperation = POST_SYNC_OPERATION_NO_WRITE; @@ -3824,7 +3824,7 @@ typedef struct tagMI_FLUSH_DW { TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; TheStructure.Common.DestinationAddressType = DESTINATION_ADDRESS_TYPE_PPGTT; } - static tagMI_FLUSH_DW sInit(void) { + static tagMI_FLUSH_DW sInit() { MI_FLUSH_DW state; state.init(); return state; @@ -3836,31 +3836,31 @@ typedef struct tagMI_FLUSH_DW { inline void setNotifyEnable(const bool value) { TheStructure.Common.NotifyEnable = value; } - inline bool getNotifyEnable(void) const { + inline bool getNotifyEnable() const { return TheStructure.Common.NotifyEnable; } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setTlbInvalidate(const bool value) { TheStructure.Common.TlbInvalidate = value; } - inline bool getTlbInvalidate(void) const { + inline bool getTlbInvalidate() const { return TheStructure.Common.TlbInvalidate; } inline void setStoreDataIndex(const bool value) { TheStructure.Common.StoreDataIndex = value; } - inline bool getStoreDataIndex(void) const { + inline bool getStoreDataIndex() const { return TheStructure.Common.StoreDataIndex; } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } typedef enum tagDESTINATIONADDRESS { @@ -3871,13 +3871,13 @@ typedef struct tagMI_FLUSH_DW { UNRECOVERABLE_IF(value > 0xfffffffffff8L); TheStructure.Common.DestinationAddress = value >> DESTINATIONADDRESS_BIT_SHIFT; } - inline uint64_t getDestinationAddress(void) const { + inline uint64_t getDestinationAddress() const { return TheStructure.Common.DestinationAddress << DESTINATIONADDRESS_BIT_SHIFT; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } } MI_FLUSH_DW; @@ -3953,7 +3953,7 @@ typedef struct tagXY_SRC_COPY_BLT { typedef enum tagDWORD_LENGTH { DWORD_LENGTH_EXCLUDES_DWORD_0_1 = 0x8, } DWORD_LENGTH; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DestTilingEnable = DEST_TILING_ENABLE_TILING_DISABLED_LINEAR_BLIT; TheStructure.Common.SrcTilingEnable = SRC_TILING_ENABLE_TILING_DISABLED_LINEAR; @@ -3964,7 +3964,7 @@ typedef struct tagXY_SRC_COPY_BLT { TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.RasterOperation = 0xCC; } - static tagXY_SRC_COPY_BLT sInit(void) { + static tagXY_SRC_COPY_BLT sInit() { XY_SRC_COPY_BLT state; state.init(); return state; @@ -3976,119 +3976,119 @@ typedef struct tagXY_SRC_COPY_BLT { inline void setDestTilingEnable(const DEST_TILING_ENABLE value) { TheStructure.Common.DestTilingEnable = value; } - inline DEST_TILING_ENABLE getDestTilingEnable(void) const { + inline DEST_TILING_ENABLE getDestTilingEnable() const { return static_cast(TheStructure.Common.DestTilingEnable); } inline void setSrcTilingEnable(const SRC_TILING_ENABLE value) { TheStructure.Common.SrcTilingEnable = value; } - inline SRC_TILING_ENABLE getSrcTilingEnable(void) const { + inline SRC_TILING_ENABLE getSrcTilingEnable() const { return static_cast(TheStructure.Common.SrcTilingEnable); } inline void set32BppByteMask(const _32BPP_BYTE_MASK value) { TheStructure.Common._32BppByteMask = value; } - inline _32BPP_BYTE_MASK get32BppByteMask(void) const { + inline _32BPP_BYTE_MASK get32BppByteMask() const { return static_cast<_32BPP_BYTE_MASK>(TheStructure.Common._32BppByteMask); } inline void setInstructionTargetOpcode(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1fc00000); TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return TheStructure.Common.InstructionTarget_Opcode; } inline void setClient(const CLIENT value) { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } inline void setDestinationPitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationPitch = value; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return TheStructure.Common.DestinationPitch; } inline void setRasterOperation(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff0000); TheStructure.Common.RasterOperation = value; } - inline uint32_t getRasterOperation(void) const { + inline uint32_t getRasterOperation() const { return TheStructure.Common.RasterOperation; } inline void setColorDepth(const COLOR_DEPTH value) { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } inline void setClippingEnabled(const CLIPPING_ENABLED value) { TheStructure.Common.ClippingEnabled = value; } - inline CLIPPING_ENABLED getClippingEnabled(void) const { + inline CLIPPING_ENABLED getClippingEnabled() const { return static_cast(TheStructure.Common.ClippingEnabled); } inline void setDestinationX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return TheStructure.Common.DestinationX1Coordinate_Left; } inline void setDestinationY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return TheStructure.Common.DestinationY1Coordinate_Top; } inline void setDestinationX2CoordinateRight(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return TheStructure.Common.DestinationX2Coordinate_Right; } inline void setDestinationY2CoordinateBottom(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return TheStructure.Common.DestinationY2Coordinate_Bottom; } inline void setDestinationBaseAddress(const uint64_t value) { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return TheStructure.Common.DestinationBaseAddress; } inline void setSourceX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourceX1Coordinate_Left = value; } - inline uint32_t getSourceX1CoordinateLeft(void) const { + inline uint32_t getSourceX1CoordinateLeft() const { return TheStructure.Common.SourceX1Coordinate_Left; } inline void setSourceY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.SourceY1Coordinate_Top = value; } - inline uint32_t getSourceY1CoordinateTop(void) const { + inline uint32_t getSourceY1CoordinateTop() const { return TheStructure.Common.SourceY1Coordinate_Top; } inline void setSourcePitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourcePitch = value; } - inline uint32_t getSourcePitch(void) const { + inline uint32_t getSourcePitch() const { return TheStructure.Common.SourcePitch; } inline void setSourceBaseAddress(const uint64_t value) { TheStructure.Common.SourceBaseAddress = value; } - inline uint64_t getSourceBaseAddress(void) const { + inline uint64_t getSourceBaseAddress() const { return TheStructure.Common.SourceBaseAddress; } } XY_SRC_COPY_BLT; @@ -4153,7 +4153,7 @@ typedef struct tagXY_COLOR_BLT { typedef enum tagDWORD_LENGTH { DWORD_LENGTH_EXCLUDES_DWORD_0_1 = 0x5, } DWORD_LENGTH; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DestTilingEnable = DEST_TILING_ENABLE_TILING_DISABLED_LINEAR_BLIT; TheStructure.Common.Client = CLIENT_2D_PROCESSOR; @@ -4163,7 +4163,7 @@ typedef struct tagXY_COLOR_BLT { TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.RasterOperation = 0xF0; } - static tagXY_COLOR_BLT sInit(void) { + static tagXY_COLOR_BLT sInit() { XY_COLOR_BLT state; state.init(); return state; @@ -4175,86 +4175,86 @@ typedef struct tagXY_COLOR_BLT { inline void setDestTilingEnable(const DEST_TILING_ENABLE value) { TheStructure.Common.DestTilingEnable = value; } - inline DEST_TILING_ENABLE getDestTilingEnable(void) const { + inline DEST_TILING_ENABLE getDestTilingEnable() const { return static_cast(TheStructure.Common.DestTilingEnable); } inline void set32BppByteMask(const _32BPP_BYTE_MASK value) { TheStructure.Common._32BppByteMask = value; } - inline _32BPP_BYTE_MASK get32BppByteMask(void) const { + inline _32BPP_BYTE_MASK get32BppByteMask() const { return static_cast<_32BPP_BYTE_MASK>(TheStructure.Common._32BppByteMask); } inline void setInstructionTargetOpcode(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1fc00000); TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return TheStructure.Common.InstructionTarget_Opcode; } inline void setClient(const CLIENT value) { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } inline void setDestinationPitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationPitch = value; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return TheStructure.Common.DestinationPitch; } inline void setRasterOperation(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff0000); TheStructure.Common.RasterOperation = value; } - inline uint32_t getRasterOperation(void) const { + inline uint32_t getRasterOperation() const { return TheStructure.Common.RasterOperation; } inline void setColorDepth(const COLOR_DEPTH value) { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } inline void setClippingEnabled(const CLIPPING_ENABLED value) { TheStructure.Common.ClippingEnabled = value; } - inline CLIPPING_ENABLED getClippingEnabled(void) const { + inline CLIPPING_ENABLED getClippingEnabled() const { return static_cast(TheStructure.Common.ClippingEnabled); } inline void setDestinationX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return TheStructure.Common.DestinationX1Coordinate_Left; } inline void setDestinationY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return TheStructure.Common.DestinationY1Coordinate_Top; } inline void setDestinationX2CoordinateRight(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return TheStructure.Common.DestinationX2Coordinate_Right; } inline void setDestinationY2CoordinateBottom(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return TheStructure.Common.DestinationY2Coordinate_Bottom; } inline void setDestinationBaseAddress(const uint64_t value) { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return TheStructure.Common.DestinationBaseAddress; } inline void setFillColor(const uint32_t *value) { @@ -4363,14 +4363,14 @@ typedef struct tagMEDIA_SURFACE_STATE { SURFACEBASEADDRESSHIGH_BYTEOFFSET = 0x1c, SURFACEBASEADDRESSHIGH_INDEX = 0x7, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.PictureStructure = PICTURE_STRUCTURE_FRAME_PICTURE; TheStructure.Common.TileMode = TILE_MODE_TILEMODE_LINEAR; TheStructure.Common.AddressControl = ADDRESS_CONTROL_CLAMP; TheStructure.Common.SurfaceFormat = SURFACE_FORMAT_YCRCB_NORMAL; } - static tagMEDIA_SURFACE_STATE sInit(void) { + static tagMEDIA_SURFACE_STATE sInit() { MEDIA_SURFACE_STATE state; state.init(); return state; @@ -4382,135 +4382,135 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setCrVCbUPixelOffsetVDirection(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetVDirection = value; } - inline uint32_t getCrVCbUPixelOffsetVDirection(void) const { + inline uint32_t getCrVCbUPixelOffsetVDirection() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetVDirection); } inline void setPictureStructure(const PICTURE_STRUCTURE value) { TheStructure.Common.PictureStructure = value; } - inline PICTURE_STRUCTURE getPictureStructure(void) const { + inline PICTURE_STRUCTURE getPictureStructure() const { return static_cast(TheStructure.Common.PictureStructure); } inline void setWidth(const uint32_t value) { TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return (TheStructure.Common.Width + 1); } inline void setHeight(const uint32_t value) { TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return (TheStructure.Common.Height + 1); } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setHalfPitchForChroma(const bool value) { TheStructure.Common.HalfPitchForChroma = value; } - inline bool getHalfPitchForChroma(void) const { + inline bool getHalfPitchForChroma() const { return (TheStructure.Common.HalfPitchForChroma); } inline void setSurfacePitch(const uint32_t value) { TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return (TheStructure.Common.SurfacePitch + 1); } inline void setAddressControl(const ADDRESS_CONTROL value) { TheStructure.Common.AddressControl = value; } - inline ADDRESS_CONTROL getAddressControl(void) const { + inline ADDRESS_CONTROL getAddressControl() const { return static_cast(TheStructure.Common.AddressControl); } inline void setInterleaveChroma(const bool value) { TheStructure.Common.InterleaveChroma = value; } - inline bool getInterleaveChroma(void) const { + inline bool getInterleaveChroma() const { return (TheStructure.Common.InterleaveChroma); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setYOffsetForUCb(const uint32_t value) { TheStructure.Common.YOffsetForU_Cb = value; } - inline uint32_t getYOffsetForUCb(void) const { + inline uint32_t getYOffsetForUCb() const { return (TheStructure.Common.YOffsetForU_Cb); } inline void setXOffsetForUCb(const uint32_t value) { TheStructure.Common.XOffsetForU_Cb = value; } - inline uint32_t getXOffsetForUCb(void) const { + inline uint32_t getXOffsetForUCb() const { return (TheStructure.Common.XOffsetForU_Cb); } inline void setSurfaceMemoryObjectControlStateAgeForQuadlru(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_AgeForQuadlru = value; } - inline uint32_t getSurfaceMemoryObjectControlStateAgeForQuadlru(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateAgeForQuadlru() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_AgeForQuadlru); } inline void setSurfaceMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_Reserved = value; } - inline uint32_t getSurfaceMemoryObjectControlStateReserved(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_Reserved); } inline void setSurfaceMemoryObjectControlStateTargetCache(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_TargetCache = value; } - inline uint32_t getSurfaceMemoryObjectControlStateTargetCache(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateTargetCache() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_TargetCache); } inline void setSurfaceMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl = value; } - inline uint32_t getSurfaceMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateMemoryTypeLlcEllcCacheabilityControl() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_MemoryTypeLlcEllcCacheabilityControl); } inline void setVerticalLineStrideOffset(const uint32_t value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline uint32_t getVerticalLineStrideOffset(void) const { + inline uint32_t getVerticalLineStrideOffset() const { return (TheStructure.Common.VerticalLineStrideOffset); } inline void setVerticalLineStride(const uint32_t value) { TheStructure.Common.VerticalLineStride = value; } - inline uint32_t getVerticalLineStride(void) const { + inline uint32_t getVerticalLineStride() const { return (TheStructure.Common.VerticalLineStride); } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddressLow = static_cast(value); TheStructure.Common.SurfaceBaseAddressHigh = value >> 32; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return (TheStructure.Common.SurfaceBaseAddressLow | static_cast(TheStructure.Common.SurfaceBaseAddressHigh) << 32); } inline void setSurfaceBaseAddressHigh(const uint32_t value) { TheStructure.Common.SurfaceBaseAddressHigh = value; } - inline uint32_t getSurfaceBaseAddressHigh(void) const { + inline uint32_t getSurfaceBaseAddressHigh() const { return (TheStructure.Common.SurfaceBaseAddressHigh); } inline void setYOffsetForVCr(const uint32_t value) { TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr = value; } - inline uint32_t getYOffsetForVCr(void) const { + inline uint32_t getYOffsetForVCr() const { return (TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr); } inline void setXOffsetForVCr(const uint32_t value) { TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr = value; } - inline uint32_t getXOffsetForVCr(void) const { + inline uint32_t getXOffsetForVCr() const { return (TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr); } } MEDIA_SURFACE_STATE; @@ -4586,7 +4586,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.CompareOperation = COMPARE_OPERATION_SAD_GREATER_THAN_SDD; @@ -4595,7 +4595,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_SEMAPHORE_WAIT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_SEMAPHORE_WAIT sInit(void) { + static tagMI_SEMAPHORE_WAIT sInit() { MI_SEMAPHORE_WAIT state; state.init(); return state; @@ -4607,25 +4607,25 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setCompareOperation(const COMPARE_OPERATION value) { TheStructure.Common.CompareOperation = value; } - inline COMPARE_OPERATION getCompareOperation(void) const { + inline COMPARE_OPERATION getCompareOperation() const { return static_cast(TheStructure.Common.CompareOperation); } inline void setWaitMode(const WAIT_MODE value) { TheStructure.Common.WaitMode = value; } - inline WAIT_MODE getWaitMode(void) const { + inline WAIT_MODE getWaitMode() const { return static_cast(TheStructure.Common.WaitMode); } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } inline void setSemaphoreDataDword(const uint32_t value) { TheStructure.Common.SemaphoreDataDword = value; } - inline uint32_t getSemaphoreDataDword(void) const { + inline uint32_t getSemaphoreDataDword() const { return (TheStructure.Common.SemaphoreDataDword); } typedef enum tagSEMAPHOREADDRESS_GRAPHICSADDRESS { @@ -4635,7 +4635,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setSemaphoreGraphicsAddress(const uint64_t value) { TheStructure.Common.SemaphoreAddress_Graphicsaddress = value >> SEMAPHOREADDRESS_GRAPHICSADDRESS_BIT_SHIFT; } - inline uint64_t getSemaphoreGraphicsAddress(void) const { + inline uint64_t getSemaphoreGraphicsAddress() const { return (TheStructure.Common.SemaphoreAddress_Graphicsaddress << SEMAPHOREADDRESS_GRAPHICSADDRESS_BIT_SHIFT); } typedef enum tagSEMAPHOREADDRESS_RESERVED { @@ -4645,7 +4645,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setSemaphoreAddressReserved(const uint64_t value) { TheStructure.Common.SemaphoreAddress_Reserved = value >> SEMAPHOREADDRESS_RESERVED_BIT_SHIFT; } - inline uint64_t getSemaphoreAddressReserved(void) const { + inline uint64_t getSemaphoreAddressReserved() const { return (TheStructure.Common.SemaphoreAddress_Reserved << SEMAPHOREADDRESS_RESERVED_BIT_SHIFT); } } MI_SEMAPHORE_WAIT; @@ -4686,13 +4686,13 @@ typedef struct tagMI_STORE_DATA_IMM { ADDRESSHIGH_BYTEOFFSET = 0x8, ADDRESSHIGH_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_STORE_DWORD; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_DATA_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_DATA_IMM sInit(void) { + static tagMI_STORE_DATA_IMM sInit() { MI_STORE_DATA_IMM state; state.init(); return state; @@ -4704,19 +4704,19 @@ typedef struct tagMI_STORE_DATA_IMM { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setStoreQword(const bool value) { TheStructure.Common.StoreQword = value; } - inline bool getStoreQword(void) const { + inline bool getStoreQword() const { return TheStructure.Common.StoreQword; } inline void setUseGlobalGtt(const uint32_t value) { TheStructure.Common.UseGlobalGtt = value; } - inline uint32_t getUseGlobalGtt(void) const { + inline uint32_t getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } typedef enum tagADDRESS { @@ -4727,31 +4727,31 @@ typedef struct tagMI_STORE_DATA_IMM { setAddressLow(static_cast(value & 0x0000FFFFFFFFULL)); setAddressHigh(static_cast(value >> 32)); } - inline uint64_t getAddress(void) const { + inline uint64_t getAddress() const { return (static_cast(getAddressHigh()) << 32) | static_cast(getAddressLow()); } inline void setAddressLow(const uint32_t value) { TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint32_t getAddressLow(void) const { + inline uint32_t getAddressLow() const { return (TheStructure.Common.Address << ADDRESS_BIT_SHIFT); } inline void setAddressHigh(const uint32_t value) { TheStructure.Common.AddressHigh = value; } - inline uint32_t getAddressHigh(void) const { + inline uint32_t getAddressHigh() const { return (TheStructure.Common.AddressHigh); } inline void setDataDword0(const uint32_t value) { TheStructure.Common.DataDword0 = value; } - inline uint32_t getDataDword0(void) const { + inline uint32_t getDataDword0() const { return (TheStructure.Common.DataDword0); } inline void setDataDword1(const uint32_t value) { TheStructure.Common.DataDword1 = value; } - inline uint32_t getDataDword1(void) const { + inline uint32_t getDataDword1() const { return (TheStructure.Common.DataDword1); } } MI_STORE_DATA_IMM; @@ -4853,7 +4853,7 @@ typedef struct tagGPGPU_CSR_BASE_ADDRESS { GPGPUCSRBASEADDRESS_BYTEOFFSET = 0x4, GPGPUCSRBASEADDRESS_INDEX = 0x1, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_UNNAMED_1; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_GPGPU_CSR_BASE_ADDRESS; @@ -4861,7 +4861,7 @@ typedef struct tagGPGPU_CSR_BASE_ADDRESS { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagGPGPU_CSR_BASE_ADDRESS sInit(void) { + static tagGPGPU_CSR_BASE_ADDRESS sInit() { GPGPU_CSR_BASE_ADDRESS state; state.init(); return state; @@ -4897,14 +4897,14 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { } Common; uint32_t RawData[4]; } TheStructure; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.BorderColorRed = 0.0; TheStructure.Common.BorderColorGreen = 0.0; TheStructure.Common.BorderColorBlue = 0.0; TheStructure.Common.BorderColorAlpha = 0.0; } - static tagSAMPLER_BORDER_COLOR_STATE sInit(void) { + static tagSAMPLER_BORDER_COLOR_STATE sInit() { SAMPLER_BORDER_COLOR_STATE state; state.init(); return state; @@ -4916,25 +4916,25 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { inline void setBorderColorRed(const float value) { TheStructure.Common.BorderColorRed = value; } - inline float getBorderColorRed(void) const { + inline float getBorderColorRed() const { return TheStructure.Common.BorderColorRed; } inline void setBorderColorGreen(const float value) { TheStructure.Common.BorderColorGreen = value; } - inline float getBorderColorGreen(void) const { + inline float getBorderColorGreen() const { return TheStructure.Common.BorderColorGreen; } inline void setBorderColorBlue(const float value) { TheStructure.Common.BorderColorBlue = value; } - inline float getBorderColorBlue(void) const { + inline float getBorderColorBlue() const { return TheStructure.Common.BorderColorBlue; } inline void setBorderColorAlpha(const float value) { TheStructure.Common.BorderColorAlpha = value; } - inline float getBorderColorAlpha(void) const { + inline float getBorderColorAlpha() const { return TheStructure.Common.BorderColorAlpha; } } SAMPLER_BORDER_COLOR_STATE; diff --git a/shared/source/generated/gen9/hw_cmds_generated_gen9.inl b/shared/source/generated/gen9/hw_cmds_generated_gen9.inl index 5c2680836c..adc07be72e 100644 --- a/shared/source/generated/gen9/hw_cmds_generated_gen9.inl +++ b/shared/source/generated/gen9/hw_cmds_generated_gen9.inl @@ -18,10 +18,10 @@ typedef struct tagBINDING_TABLE_STATE { SURFACESTATEPOINTER_BYTEOFFSET = 0x0, SURFACESTATEPOINTER_INDEX = 0x0, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); } - static tagBINDING_TABLE_STATE sInit(void) { + static tagBINDING_TABLE_STATE sInit() { BINDING_TABLE_STATE state; state.init(); return state; @@ -42,7 +42,7 @@ typedef struct tagBINDING_TABLE_STATE { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SurfaceStatePointer = (uint32_t)value >> SURFACESTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSurfaceStatePointer(void) const { + inline uint32_t getSurfaceStatePointer() const { return (TheStructure.Common.SurfaceStatePointer << SURFACESTATEPOINTER_BIT_SHIFT); } } BINDING_TABLE_STATE; @@ -110,7 +110,7 @@ typedef struct tagGPGPU_WALKER { INDIRECTDATASTARTADDRESS_BYTEOFFSET = 0xc, INDIRECTDATASTARTADDRESS_INDEX = 0x3, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_GPGPU_WALKER_SUBOP; @@ -119,7 +119,7 @@ typedef struct tagGPGPU_WALKER { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.SimdSize = SIMD_SIZE_SIMD8; } - static tagGPGPU_WALKER sInit(void) { + static tagGPGPU_WALKER sInit() { GPGPU_WALKER state; state.init(); return state; @@ -131,25 +131,25 @@ typedef struct tagGPGPU_WALKER { inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return (TheStructure.Common.PredicateEnable); } inline void setIndirectParameterEnable(const bool value) { TheStructure.Common.IndirectParameterEnable = value; } - inline bool getIndirectParameterEnable(void) const { + inline bool getIndirectParameterEnable() const { return (TheStructure.Common.IndirectParameterEnable); } inline void setInterfaceDescriptorOffset(const uint32_t value) { TheStructure.Common.InterfaceDescriptorOffset = value; } - inline uint32_t getInterfaceDescriptorOffset(void) const { + inline uint32_t getInterfaceDescriptorOffset() const { return (TheStructure.Common.InterfaceDescriptorOffset); } inline void setIndirectDataLength(const uint32_t value) { TheStructure.Common.IndirectDataLength = value; } - inline uint32_t getIndirectDataLength(void) const { + inline uint32_t getIndirectDataLength() const { return (TheStructure.Common.IndirectDataLength); } typedef enum tagINDIRECTDATASTARTADDRESS { @@ -159,79 +159,79 @@ typedef struct tagGPGPU_WALKER { inline void setIndirectDataStartAddress(const uint32_t value) { TheStructure.Common.IndirectDataStartAddress = value >> INDIRECTDATASTARTADDRESS_BIT_SHIFT; } - inline uint32_t getIndirectDataStartAddress(void) const { + inline uint32_t getIndirectDataStartAddress() const { return (TheStructure.Common.IndirectDataStartAddress << INDIRECTDATASTARTADDRESS_BIT_SHIFT); } inline void setThreadWidthCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadWidthCounterMaximum = value - 1; } - inline uint32_t getThreadWidthCounterMaximum(void) const { + inline uint32_t getThreadWidthCounterMaximum() const { return (TheStructure.Common.ThreadWidthCounterMaximum + 1); } inline void setThreadHeightCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadHeightCounterMaximum = value - 1; } - inline uint32_t getThreadHeightCounterMaximum(void) const { + inline uint32_t getThreadHeightCounterMaximum() const { return (TheStructure.Common.ThreadHeightCounterMaximum + 1); } inline void setThreadDepthCounterMaximum(const uint32_t value) { TheStructure.Common.ThreadDepthCounterMaximum = value; } - inline uint32_t getThreadDepthCounterMaximum(void) const { + inline uint32_t getThreadDepthCounterMaximum() const { return (TheStructure.Common.ThreadDepthCounterMaximum); } inline void setSimdSize(const SIMD_SIZE value) { TheStructure.Common.SimdSize = value; } - inline SIMD_SIZE getSimdSize(void) const { + inline SIMD_SIZE getSimdSize() const { return static_cast(TheStructure.Common.SimdSize); } inline void setThreadGroupIdStartingX(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingX = value; } - inline uint32_t getThreadGroupIdStartingX(void) const { + inline uint32_t getThreadGroupIdStartingX() const { return (TheStructure.Common.ThreadGroupIdStartingX); } inline void setThreadGroupIdXDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdXDimension = value; } - inline uint32_t getThreadGroupIdXDimension(void) const { + inline uint32_t getThreadGroupIdXDimension() const { return (TheStructure.Common.ThreadGroupIdXDimension); } inline void setThreadGroupIdStartingY(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingY = value; } - inline uint32_t getThreadGroupIdStartingY(void) const { + inline uint32_t getThreadGroupIdStartingY() const { return (TheStructure.Common.ThreadGroupIdStartingY); } inline void setThreadGroupIdYDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdYDimension = value; } - inline uint32_t getThreadGroupIdYDimension(void) const { + inline uint32_t getThreadGroupIdYDimension() const { return (TheStructure.Common.ThreadGroupIdYDimension); } inline void setThreadGroupIdStartingResumeZ(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingResumeZ = value; } - inline uint32_t getThreadGroupIdStartingResumeZ(void) const { + inline uint32_t getThreadGroupIdStartingResumeZ() const { return (TheStructure.Common.ThreadGroupIdStartingResumeZ); } inline void setThreadGroupIdZDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdZDimension = value; } - inline uint32_t getThreadGroupIdZDimension(void) const { + inline uint32_t getThreadGroupIdZDimension() const { return (TheStructure.Common.ThreadGroupIdZDimension); } inline void setRightExecutionMask(const uint32_t value) { TheStructure.Common.RightExecutionMask = value; } - inline uint32_t getRightExecutionMask(void) const { + inline uint32_t getRightExecutionMask() const { return (TheStructure.Common.RightExecutionMask); } inline void setBottomExecutionMask(const uint32_t value) { TheStructure.Common.BottomExecutionMask = value; } - inline uint32_t getBottomExecutionMask(void) const { + inline uint32_t getBottomExecutionMask() const { return (TheStructure.Common.BottomExecutionMask); } } GPGPU_WALKER; @@ -325,7 +325,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { BINDINGTABLEPOINTER_BYTEOFFSET = 0x10, BINDINGTABLEPOINTER_INDEX = 0x4, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.FloatingPointMode = FLOATING_POINT_MODE_IEEE_754; TheStructure.Common.ThreadPriority = THREAD_PRIORITY_NORMAL_PRIORITY; @@ -335,7 +335,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { TheStructure.Common.SharedLocalMemorySize = SHARED_LOCAL_MEMORY_SIZE_ENCODES_0K; TheStructure.Common.RoundingMode = ROUNDING_MODE_RTNE; } - static tagINTERFACE_DESCRIPTOR_DATA sInit(void) { + static tagINTERFACE_DESCRIPTOR_DATA sInit() { INTERFACE_DESCRIPTOR_DATA state; state.init(); return state; @@ -352,61 +352,61 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.KernelStartPointer = (uint32_t)value >> KERNELSTARTPOINTER_BIT_SHIFT; } - inline uint32_t getKernelStartPointer(void) const { + inline uint32_t getKernelStartPointer() const { return (TheStructure.Common.KernelStartPointer << KERNELSTARTPOINTER_BIT_SHIFT); } inline void setKernelStartPointerHigh(const uint32_t value) { TheStructure.Common.KernelStartPointerHigh = value; } - inline uint32_t getKernelStartPointerHigh(void) const { + inline uint32_t getKernelStartPointerHigh() const { return (TheStructure.Common.KernelStartPointerHigh); } inline void setSoftwareExceptionEnable(const bool value) { TheStructure.Common.SoftwareExceptionEnable = value; } - inline bool getSoftwareExceptionEnable(void) const { + inline bool getSoftwareExceptionEnable() const { return (TheStructure.Common.SoftwareExceptionEnable); } inline void setMaskStackExceptionEnable(const bool value) { TheStructure.Common.MaskStackExceptionEnable = value; } - inline bool getMaskStackExceptionEnable(void) const { + inline bool getMaskStackExceptionEnable() const { return (TheStructure.Common.MaskStackExceptionEnable); } inline void setIllegalOpcodeExceptionEnable(const bool value) { TheStructure.Common.IllegalOpcodeExceptionEnable = value; } - inline bool getIllegalOpcodeExceptionEnable(void) const { + inline bool getIllegalOpcodeExceptionEnable() const { return (TheStructure.Common.IllegalOpcodeExceptionEnable); } inline void setFloatingPointMode(const FLOATING_POINT_MODE value) { TheStructure.Common.FloatingPointMode = value; } - inline FLOATING_POINT_MODE getFloatingPointMode(void) const { + inline FLOATING_POINT_MODE getFloatingPointMode() const { return static_cast(TheStructure.Common.FloatingPointMode); } inline void setThreadPriority(const THREAD_PRIORITY value) { TheStructure.Common.ThreadPriority = value; } - inline THREAD_PRIORITY getThreadPriority(void) const { + inline THREAD_PRIORITY getThreadPriority() const { return static_cast(TheStructure.Common.ThreadPriority); } inline void setSingleProgramFlow(const SINGLE_PROGRAM_FLOW value) { TheStructure.Common.SingleProgramFlow = value; } - inline SINGLE_PROGRAM_FLOW getSingleProgramFlow(void) const { + inline SINGLE_PROGRAM_FLOW getSingleProgramFlow() const { return static_cast(TheStructure.Common.SingleProgramFlow); } inline void setDenormMode(const DENORM_MODE value) { TheStructure.Common.DenormMode = value; } - inline DENORM_MODE getDenormMode(void) const { + inline DENORM_MODE getDenormMode() const { return static_cast(TheStructure.Common.DenormMode); } inline void setSamplerCount(const SAMPLER_COUNT value) { TheStructure.Common.SamplerCount = value; } - inline SAMPLER_COUNT getSamplerCount(void) const { + inline SAMPLER_COUNT getSamplerCount() const { return static_cast(TheStructure.Common.SamplerCount); } typedef enum tagSAMPLERSTATEPOINTER { @@ -417,13 +417,13 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SamplerStatePointer = (uint32_t)value >> SAMPLERSTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSamplerStatePointer(void) const { + inline uint32_t getSamplerStatePointer() const { return (TheStructure.Common.SamplerStatePointer << SAMPLERSTATEPOINTER_BIT_SHIFT); } inline void setBindingTableEntryCount(const uint32_t value) { TheStructure.Common.BindingTableEntryCount = value; } - inline uint32_t getBindingTableEntryCount(void) const { + inline uint32_t getBindingTableEntryCount() const { return (TheStructure.Common.BindingTableEntryCount); } typedef enum tagBINDINGTABLEPOINTER { @@ -434,55 +434,55 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value > 0xFFE0); TheStructure.Common.BindingTablePointer = (uint32_t)value >> BINDINGTABLEPOINTER_BIT_SHIFT; } - inline uint32_t getBindingTablePointer(void) const { + inline uint32_t getBindingTablePointer() const { return (TheStructure.Common.BindingTablePointer << BINDINGTABLEPOINTER_BIT_SHIFT); } inline void setConstantUrbEntryReadOffset(const uint32_t value) { TheStructure.Common.ConstantUrbEntryReadOffset = value; } - inline uint32_t getConstantUrbEntryReadOffset(void) const { + inline uint32_t getConstantUrbEntryReadOffset() const { return (TheStructure.Common.ConstantUrbEntryReadOffset); } inline void setConstantIndirectUrbEntryReadLength(const uint32_t value) { TheStructure.Common.ConstantIndirectUrbEntryReadLength = value; } - inline uint32_t getConstantIndirectUrbEntryReadLength(void) const { + inline uint32_t getConstantIndirectUrbEntryReadLength() const { return (TheStructure.Common.ConstantIndirectUrbEntryReadLength); } inline void setNumberOfThreadsInGpgpuThreadGroup(const uint32_t value) { TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup = value; } - inline uint32_t getNumberOfThreadsInGpgpuThreadGroup(void) const { + inline uint32_t getNumberOfThreadsInGpgpuThreadGroup() const { return (TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup); } inline void setGlobalBarrierEnable(const bool value) { TheStructure.Common.GlobalBarrierEnable = value; } - inline bool getGlobalBarrierEnable(void) const { + inline bool getGlobalBarrierEnable() const { return (TheStructure.Common.GlobalBarrierEnable); } inline void setSharedLocalMemorySize(const SHARED_LOCAL_MEMORY_SIZE value) { TheStructure.Common.SharedLocalMemorySize = value; } - inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize(void) const { + inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize() const { return static_cast(TheStructure.Common.SharedLocalMemorySize); } inline void setBarrierEnable(const uint32_t value) { TheStructure.Common.BarrierEnable = (value > 0u) ? 1u : 0u; } - inline bool getBarrierEnable(void) const { + inline bool getBarrierEnable() const { return (TheStructure.Common.BarrierEnable); } inline void setRoundingMode(const ROUNDING_MODE value) { TheStructure.Common.RoundingMode = value; } - inline ROUNDING_MODE getRoundingMode(void) const { + inline ROUNDING_MODE getRoundingMode() const { return static_cast(TheStructure.Common.RoundingMode); } inline void setCrossThreadConstantDataReadLength(const uint32_t value) { TheStructure.Common.Cross_ThreadConstantDataReadLength = value; } - inline uint32_t getCrossThreadConstantDataReadLength(void) const { + inline uint32_t getCrossThreadConstantDataReadLength() const { return (TheStructure.Common.Cross_ThreadConstantDataReadLength); } } INTERFACE_DESCRIPTOR_DATA; @@ -522,7 +522,7 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { INTERFACEDESCRIPTORDATASTARTADDRESS_BYTEOFFSET = 0xc, INTERFACEDESCRIPTORDATASTARTADDRESS_INDEX = 0x3, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_INTERFACE_DESCRIPTOR_LOAD_SUBOP; @@ -530,7 +530,7 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { TheStructure.Common.Pipeline = PIPELINE_MEDIA; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagMEDIA_INTERFACE_DESCRIPTOR_LOAD sInit(void) { + static tagMEDIA_INTERFACE_DESCRIPTOR_LOAD sInit() { MEDIA_INTERFACE_DESCRIPTOR_LOAD state; state.init(); return state; @@ -542,13 +542,13 @@ typedef struct tagMEDIA_INTERFACE_DESCRIPTOR_LOAD { inline void setInterfaceDescriptorTotalLength(const uint32_t value) { TheStructure.Common.InterfaceDescriptorTotalLength = value; } - inline uint32_t getInterfaceDescriptorTotalLength(void) const { + inline uint32_t getInterfaceDescriptorTotalLength() const { return (TheStructure.Common.InterfaceDescriptorTotalLength); } inline void setInterfaceDescriptorDataStartAddress(const uint32_t value) { TheStructure.Common.InterfaceDescriptorDataStartAddress = value; } - inline uint32_t getInterfaceDescriptorDataStartAddress(void) const { + inline uint32_t getInterfaceDescriptorDataStartAddress() const { return (TheStructure.Common.InterfaceDescriptorDataStartAddress); } } MEDIA_INTERFACE_DESCRIPTOR_LOAD; @@ -584,7 +584,7 @@ typedef struct tagMEDIA_STATE_FLUSH { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_STATE_FLUSH_SUBOP; @@ -592,7 +592,7 @@ typedef struct tagMEDIA_STATE_FLUSH { TheStructure.Common.Pipeline = PIPELINE_MEDIA; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagMEDIA_STATE_FLUSH sInit(void) { + static tagMEDIA_STATE_FLUSH sInit() { MEDIA_STATE_FLUSH state; state.init(); return state; @@ -604,19 +604,19 @@ typedef struct tagMEDIA_STATE_FLUSH { inline void setInterfaceDescriptorOffset(const uint32_t value) { TheStructure.Common.InterfaceDescriptorOffset = value; } - inline uint32_t getInterfaceDescriptorOffset(void) const { + inline uint32_t getInterfaceDescriptorOffset() const { return (TheStructure.Common.InterfaceDescriptorOffset); } inline void setWatermarkRequired(const uint32_t value) { TheStructure.Common.WatermarkRequired = value; } - inline uint32_t getWatermarkRequired(void) const { + inline uint32_t getWatermarkRequired() const { return (TheStructure.Common.WatermarkRequired); } inline void setFlushToGo(const bool value) { TheStructure.Common.FlushToGo = value; } - inline bool getFlushToGo(void) const { + inline bool getFlushToGo() const { return (TheStructure.Common.FlushToGo); } } MEDIA_STATE_FLUSH; @@ -701,7 +701,7 @@ typedef struct tagMEDIA_VFE_STATE { SCRATCHSPACEBASEPOINTERHIGH_BYTEOFFSET = 0x8, SCRATCHSPACEBASEPOINTERHIGH_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.Subopcode = SUBOPCODE_MEDIA_VFE_STATE_SUBOP; @@ -712,7 +712,7 @@ typedef struct tagMEDIA_VFE_STATE { TheStructure.Common.SliceDisable = SLICE_DISABLE_ALL_SUBSLICES_ENABLED; TheStructure.Common.ScoreboardType = SCOREBOARD_TYPE_STALLING_SCOREBOARD; } - static tagMEDIA_VFE_STATE sInit(void) { + static tagMEDIA_VFE_STATE sInit() { MEDIA_VFE_STATE state; state.init(); return state; @@ -724,13 +724,13 @@ typedef struct tagMEDIA_VFE_STATE { inline void setPerThreadScratchSpace(const uint32_t value) { TheStructure.Common.PerThreadScratchSpace = value; } - inline uint32_t getPerThreadScratchSpace(void) const { + inline uint32_t getPerThreadScratchSpace() const { return (TheStructure.Common.PerThreadScratchSpace); } inline void setStackSize(const uint32_t value) { TheStructure.Common.StackSize = value; } - inline uint32_t getStackSize(void) const { + inline uint32_t getStackSize() const { return (TheStructure.Common.StackSize); } typedef enum tagSCRATCHSPACEBASEPOINTER { @@ -740,163 +740,163 @@ typedef struct tagMEDIA_VFE_STATE { inline void setScratchSpaceBasePointer(const uint32_t value) { TheStructure.Common.ScratchSpaceBasePointer = value >> SCRATCHSPACEBASEPOINTER_BIT_SHIFT; } - inline uint32_t getScratchSpaceBasePointer(void) const { + inline uint32_t getScratchSpaceBasePointer() const { return (TheStructure.Common.ScratchSpaceBasePointer << SCRATCHSPACEBASEPOINTER_BIT_SHIFT); } inline void setScratchSpaceBasePointerHigh(const uint32_t value) { TheStructure.Common.ScratchSpaceBasePointerHigh = value; } - inline uint32_t getScratchSpaceBasePointerHigh(void) const { + inline uint32_t getScratchSpaceBasePointerHigh() const { return (TheStructure.Common.ScratchSpaceBasePointerHigh); } inline void setResetGatewayTimer(const RESET_GATEWAY_TIMER value) { TheStructure.Common.ResetGatewayTimer = value; } - inline RESET_GATEWAY_TIMER getResetGatewayTimer(void) const { + inline RESET_GATEWAY_TIMER getResetGatewayTimer() const { return static_cast(TheStructure.Common.ResetGatewayTimer); } inline void setNumberOfUrbEntries(const uint32_t value) { TheStructure.Common.NumberOfUrbEntries = value; } - inline uint32_t getNumberOfUrbEntries(void) const { + inline uint32_t getNumberOfUrbEntries() const { return (TheStructure.Common.NumberOfUrbEntries); } inline void setMaximumNumberOfThreads(const uint32_t value) { TheStructure.Common.MaximumNumberOfThreads = value - 1; } - inline uint32_t getMaximumNumberOfThreads(void) const { + inline uint32_t getMaximumNumberOfThreads() const { return (TheStructure.Common.MaximumNumberOfThreads + 1); } inline void setSliceDisable(const SLICE_DISABLE value) { TheStructure.Common.SliceDisable = value; } - inline SLICE_DISABLE getSliceDisable(void) const { + inline SLICE_DISABLE getSliceDisable() const { return static_cast(TheStructure.Common.SliceDisable); } inline void setCurbeAllocationSize(const uint32_t value) { TheStructure.Common.CurbeAllocationSize = value; } - inline uint32_t getCurbeAllocationSize(void) const { + inline uint32_t getCurbeAllocationSize() const { return (TheStructure.Common.CurbeAllocationSize); } inline void setUrbEntryAllocationSize(const uint32_t value) { TheStructure.Common.UrbEntryAllocationSize = value; } - inline uint32_t getUrbEntryAllocationSize(void) const { + inline uint32_t getUrbEntryAllocationSize() const { return (TheStructure.Common.UrbEntryAllocationSize); } inline void setScoreboardMask(const uint32_t value) { TheStructure.Common.ScoreboardMask = value; } - inline uint32_t getScoreboardMask(void) const { + inline uint32_t getScoreboardMask() const { return (TheStructure.Common.ScoreboardMask); } inline void setScoreboardType(const SCOREBOARD_TYPE value) { TheStructure.Common.ScoreboardType = value; } - inline SCOREBOARD_TYPE getScoreboardType(void) const { + inline SCOREBOARD_TYPE getScoreboardType() const { return static_cast(TheStructure.Common.ScoreboardType); } inline void setScoreboardEnable(const bool value) { TheStructure.Common.ScoreboardEnable = value; } - inline bool getScoreboardEnable(void) const { + inline bool getScoreboardEnable() const { return (TheStructure.Common.ScoreboardEnable); } inline void setScoreboard0DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard0DeltaX = value; } - inline uint32_t getScoreboard0DeltaX(void) const { + inline uint32_t getScoreboard0DeltaX() const { return (TheStructure.Common.Scoreboard0DeltaX); } inline void setScoreboard0DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard0DeltaY = value; } - inline uint32_t getScoreboard0DeltaY(void) const { + inline uint32_t getScoreboard0DeltaY() const { return (TheStructure.Common.Scoreboard0DeltaY); } inline void setScoreboard1DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard1DeltaX = value; } - inline uint32_t getScoreboard1DeltaX(void) const { + inline uint32_t getScoreboard1DeltaX() const { return (TheStructure.Common.Scoreboard1DeltaX); } inline void setScoreboard1DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard1DeltaY = value; } - inline uint32_t getScoreboard1DeltaY(void) const { + inline uint32_t getScoreboard1DeltaY() const { return (TheStructure.Common.Scoreboard1DeltaY); } inline void setScoreboard2DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard2DeltaX = value; } - inline uint32_t getScoreboard2DeltaX(void) const { + inline uint32_t getScoreboard2DeltaX() const { return (TheStructure.Common.Scoreboard2DeltaX); } inline void setScoreboard2DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard2DeltaY = value; } - inline uint32_t getScoreboard2DeltaY(void) const { + inline uint32_t getScoreboard2DeltaY() const { return (TheStructure.Common.Scoreboard2DeltaY); } inline void setScoreboard3DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard3DeltaX = value; } - inline uint32_t getScoreboard3DeltaX(void) const { + inline uint32_t getScoreboard3DeltaX() const { return (TheStructure.Common.Scoreboard3DeltaX); } inline void setScoreboard3DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard3DeltaY = value; } - inline uint32_t getScoreboard3DeltaY(void) const { + inline uint32_t getScoreboard3DeltaY() const { return (TheStructure.Common.Scoreboard3DeltaY); } inline void setScoreboard4DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard4DeltaX = value; } - inline uint32_t getScoreboard4DeltaX(void) const { + inline uint32_t getScoreboard4DeltaX() const { return (TheStructure.Common.Scoreboard4DeltaX); } inline void setScoreboard4DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard4DeltaY = value; } - inline uint32_t getScoreboard4DeltaY(void) const { + inline uint32_t getScoreboard4DeltaY() const { return (TheStructure.Common.Scoreboard4DeltaY); } inline void setScoreboard5DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard5DeltaX = value; } - inline uint32_t getScoreboard5DeltaX(void) const { + inline uint32_t getScoreboard5DeltaX() const { return (TheStructure.Common.Scoreboard5DeltaX); } inline void setScoreboard5DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard5DeltaY = value; } - inline uint32_t getScoreboard5DeltaY(void) const { + inline uint32_t getScoreboard5DeltaY() const { return (TheStructure.Common.Scoreboard5DeltaY); } inline void setScoreboard6DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard6DeltaX = value; } - inline uint32_t getScoreboard6DeltaX(void) const { + inline uint32_t getScoreboard6DeltaX() const { return (TheStructure.Common.Scoreboard6DeltaX); } inline void setScoreboard6DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard6DeltaY = value; } - inline uint32_t getScoreboard6DeltaY(void) const { + inline uint32_t getScoreboard6DeltaY() const { return (TheStructure.Common.Scoreboard6DeltaY); } inline void setScoreboard7DeltaX(const uint32_t value) { TheStructure.Common.Scoreboard7DeltaX = value; } - inline uint32_t getScoreboard7DeltaX(void) const { + inline uint32_t getScoreboard7DeltaX() const { return (TheStructure.Common.Scoreboard7DeltaX); } inline void setScoreboard7DeltaY(const uint32_t value) { TheStructure.Common.Scoreboard7DeltaY = value; } - inline uint32_t getScoreboard7DeltaY(void) const { + inline uint32_t getScoreboard7DeltaY() const { return (TheStructure.Common.Scoreboard7DeltaY); } } MEDIA_VFE_STATE; @@ -917,12 +917,12 @@ typedef struct tagMI_ARB_CHECK { typedef enum tagMI_INSTRUCTION_TYPE { MI_INSTRUCTION_TYPE_MI_INSTRUCTION = 0x0, } MI_INSTRUCTION_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiInstructionOpcode = MI_INSTRUCTION_OPCODE_MI_ARB_CHECK; TheStructure.Common.MiInstructionType = MI_INSTRUCTION_TYPE_MI_INSTRUCTION; } - static tagMI_ARB_CHECK sInit(void) { + static tagMI_ARB_CHECK sInit() { MI_ARB_CHECK state; state.init(); return state; @@ -934,13 +934,13 @@ typedef struct tagMI_ARB_CHECK { inline void setMiInstructionOpcode(const MI_INSTRUCTION_OPCODE value) { TheStructure.Common.MiInstructionOpcode = value; } - inline MI_INSTRUCTION_OPCODE getMiInstructionOpcode(void) const { + inline MI_INSTRUCTION_OPCODE getMiInstructionOpcode() const { return static_cast(TheStructure.Common.MiInstructionOpcode); } inline void setMiInstructionType(const MI_INSTRUCTION_TYPE value) { TheStructure.Common.MiInstructionType = value; } - inline MI_INSTRUCTION_TYPE getMiInstructionType(void) const { + inline MI_INSTRUCTION_TYPE getMiInstructionType() const { return static_cast(TheStructure.Common.MiInstructionType); } } MI_ARB_CHECK; @@ -1009,7 +1009,7 @@ typedef struct tagMI_ATOMIC { ATOMIC_8B_INCREMENT = 0x25, ATOMIC_8B_DECREMENT = 0x26, } ATOMIC_OPCODES; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_INLINE_DATA_0; TheStructure.Common.DataSize = DATA_SIZE_DWORD; @@ -1018,7 +1018,7 @@ typedef struct tagMI_ATOMIC { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_ATOMIC; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_ATOMIC sInit(void) { + static tagMI_ATOMIC sInit() { MI_ATOMIC state; state.init(); return state; @@ -1030,49 +1030,49 @@ typedef struct tagMI_ATOMIC { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setAtomicOpcode(const uint32_t value) { TheStructure.Common.AtomicOpcode = value; } - inline uint32_t getAtomicOpcode(void) const { + inline uint32_t getAtomicOpcode() const { return (TheStructure.Common.AtomicOpcode); } inline void setReturnDataControl(const uint32_t value) { TheStructure.Common.ReturnDataControl = value; } - inline uint32_t getReturnDataControl(void) const { + inline uint32_t getReturnDataControl() const { return (TheStructure.Common.ReturnDataControl); } inline void setCsStall(const uint32_t value) { TheStructure.Common.CsStall = value; } - inline uint32_t getCsStall(void) const { + inline uint32_t getCsStall() const { return (TheStructure.Common.CsStall); } inline void setInlineData(const uint32_t value) { TheStructure.Common.InlineData = value; } - inline uint32_t getInlineData(void) const { + inline uint32_t getInlineData() const { return (TheStructure.Common.InlineData); } inline void setDataSize(const DATA_SIZE value) { TheStructure.Common.DataSize = value; } - inline DATA_SIZE getDataSize(void) const { + inline DATA_SIZE getDataSize() const { return static_cast(TheStructure.Common.DataSize); } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.Post_SyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.Post_SyncOperation); } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } typedef enum tagMEMORYADDRESS { @@ -1082,61 +1082,61 @@ typedef struct tagMI_ATOMIC { inline void setMemoryAddress(const uint32_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint32_t getMemoryAddress(void) const { + inline uint32_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } inline void setMemoryAddressHigh(const uint32_t value) { TheStructure.Common.MemoryAddressHigh = value; } - inline uint32_t getMemoryAddressHigh(void) const { + inline uint32_t getMemoryAddressHigh() const { return (TheStructure.Common.MemoryAddressHigh); } inline void setOperand1DataDword0(const uint32_t value) { TheStructure.Common.Operand1DataDword0 = value; } - inline uint32_t getOperand1DataDword0(void) const { + inline uint32_t getOperand1DataDword0() const { return (TheStructure.Common.Operand1DataDword0); } inline void setOperand2DataDword0(const uint32_t value) { TheStructure.Common.Operand2DataDword0 = value; } - inline uint32_t getOperand2DataDword0(void) const { + inline uint32_t getOperand2DataDword0() const { return (TheStructure.Common.Operand2DataDword0); } inline void setOperand1DataDword1(const uint32_t value) { TheStructure.Common.Operand1DataDword1 = value; } - inline uint32_t getOperand1DataDword1(void) const { + inline uint32_t getOperand1DataDword1() const { return (TheStructure.Common.Operand1DataDword1); } inline void setOperand2DataDword1(const uint32_t value) { TheStructure.Common.Operand2DataDword1 = value; } - inline uint32_t getOperand2DataDword1(void) const { + inline uint32_t getOperand2DataDword1() const { return (TheStructure.Common.Operand2DataDword1); } inline void setOperand1DataDword2(const uint32_t value) { TheStructure.Common.Operand1DataDword2 = value; } - inline uint32_t getOperand1DataDword2(void) const { + inline uint32_t getOperand1DataDword2() const { return (TheStructure.Common.Operand1DataDword2); } inline void setOperand2DataDword2(const uint32_t value) { TheStructure.Common.Operand2DataDword2 = value; } - inline uint32_t getOperand2DataDword2(void) const { + inline uint32_t getOperand2DataDword2() const { return (TheStructure.Common.Operand2DataDword2); } inline void setOperand1DataDword3(const uint32_t value) { TheStructure.Common.Operand1DataDword3 = value; } - inline uint32_t getOperand1DataDword3(void) const { + inline uint32_t getOperand1DataDword3() const { return (TheStructure.Common.Operand1DataDword3); } inline void setOperand2DataDword3(const uint32_t value) { TheStructure.Common.Operand2DataDword3 = value; } - inline uint32_t getOperand2DataDword3(void) const { + inline uint32_t getOperand2DataDword3() const { return (TheStructure.Common.Operand2DataDword3); } } MI_ATOMIC; @@ -1157,12 +1157,12 @@ typedef struct tagMI_BATCH_BUFFER_END { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_BATCH_BUFFER_END; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_BATCH_BUFFER_END sInit(void) { + static tagMI_BATCH_BUFFER_END sInit() { MI_BATCH_BUFFER_END state; state.init(); return state; @@ -1211,7 +1211,7 @@ typedef struct tagMI_BATCH_BUFFER_START { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.AddressSpaceIndicator = ADDRESS_SPACE_INDICATOR_GGTT; @@ -1219,7 +1219,7 @@ typedef struct tagMI_BATCH_BUFFER_START { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_BATCH_BUFFER_START; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_BATCH_BUFFER_START sInit(void) { + static tagMI_BATCH_BUFFER_START sInit() { MI_BATCH_BUFFER_START state; state.init(); return state; @@ -1231,31 +1231,31 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setAddressSpaceIndicator(const ADDRESS_SPACE_INDICATOR value) { TheStructure.Common.AddressSpaceIndicator = value; } - inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator(void) const { + inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator() const { return static_cast(TheStructure.Common.AddressSpaceIndicator); } inline void setResourceStreamerEnable(const bool value) { TheStructure.Common.ResourceStreamerEnable = value; } - inline bool getResourceStreamerEnable(void) const { + inline bool getResourceStreamerEnable() const { return (TheStructure.Common.ResourceStreamerEnable); } inline void setPredicationEnable(const uint32_t value) { TheStructure.Common.PredicationEnable = value; } - inline uint32_t getPredicationEnable(void) const { + inline uint32_t getPredicationEnable() const { return (TheStructure.Common.PredicationEnable); } inline void setAddOffsetEnable(const bool value) { TheStructure.Common.AddOffsetEnable = value; } - inline bool getAddOffsetEnable(void) const { + inline bool getAddOffsetEnable() const { return (TheStructure.Common.AddOffsetEnable); } inline void setSecondLevelBatchBuffer(const SECOND_LEVEL_BATCH_BUFFER value) { TheStructure.Common.SecondLevelBatchBuffer = value; } - inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer(void) const { + inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer() const { return static_cast(TheStructure.Common.SecondLevelBatchBuffer); } typedef enum tagBATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2 { @@ -1265,7 +1265,7 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setBatchBufferStartAddressGraphicsaddress472(const uint64_t value) { TheStructure.Common.BatchBufferStartAddress_Graphicsaddress47_2 = value >> BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddressGraphicsaddress472(void) const { + inline uint64_t getBatchBufferStartAddressGraphicsaddress472() const { return (TheStructure.Common.BatchBufferStartAddress_Graphicsaddress47_2 << BATCHBUFFERSTARTADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT); } typedef enum tagBATCHBUFFERSTARTADDRESS_RESERVED { @@ -1275,7 +1275,7 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setBatchBufferStartAddressReserved(const uint64_t value) { TheStructure.Common.BatchBufferStartAddress_Reserved = value >> BATCHBUFFERSTARTADDRESS_RESERVED_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddressReserved(void) const { + inline uint64_t getBatchBufferStartAddressReserved() const { return (TheStructure.Common.BatchBufferStartAddress_Reserved << BATCHBUFFERSTARTADDRESS_RESERVED_BIT_SHIFT); } } MI_BATCH_BUFFER_START; @@ -1305,13 +1305,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_IMM sInit(void) { + static tagMI_LOAD_REGISTER_IMM sInit() { MI_LOAD_REGISTER_IMM state; state.init(); return state; @@ -1323,7 +1323,7 @@ typedef struct tagMI_LOAD_REGISTER_IMM { inline void setByteWriteDisables(const uint32_t value) { TheStructure.Common.ByteWriteDisables = value; } - inline uint32_t getByteWriteDisables(void) const { + inline uint32_t getByteWriteDisables() const { return (TheStructure.Common.ByteWriteDisables); } typedef enum tagREGISTEROFFSET { @@ -1333,13 +1333,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { inline void setRegisterOffset(const uint32_t value) { TheStructure.Common.RegisterOffset = value >> REGISTEROFFSET_BIT_SHIFT; } - inline uint32_t getRegisterOffset(void) const { + inline uint32_t getRegisterOffset() const { return (TheStructure.Common.RegisterOffset << REGISTEROFFSET_BIT_SHIFT); } inline void setDataDword(const uint32_t value) { TheStructure.Common.DataDword = value; } - inline uint32_t getDataDword(void) const { + inline uint32_t getDataDword() const { return (TheStructure.Common.DataDword); } } MI_LOAD_REGISTER_IMM; @@ -1375,13 +1375,13 @@ typedef struct tagMI_LOAD_REGISTER_MEM { MEMORYADDRESS_BYTEOFFSET = 0x8, MEMORYADDRESS_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_MEM sInit(void) { + static tagMI_LOAD_REGISTER_MEM sInit() { MI_LOAD_REGISTER_MEM state; state.init(); return state; @@ -1393,13 +1393,13 @@ typedef struct tagMI_LOAD_REGISTER_MEM { inline void setAsyncModeEnable(const bool value) { TheStructure.Common.AsyncModeEnable = value; } - inline bool getAsyncModeEnable(void) const { + inline bool getAsyncModeEnable() const { return (TheStructure.Common.AsyncModeEnable); } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } typedef enum tagREGISTERADDRESS { @@ -1409,7 +1409,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { inline void setRegisterAddress(const uint32_t value) { TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return (TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT); } typedef enum tagMEMORYADDRESS { @@ -1419,7 +1419,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } } MI_LOAD_REGISTER_MEM; @@ -1450,13 +1450,13 @@ typedef struct tagMI_LOAD_REGISTER_REG { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_REG; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_REG sInit(void) { + static tagMI_LOAD_REGISTER_REG sInit() { MI_LOAD_REGISTER_REG state; state.init(); return state; @@ -1472,7 +1472,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { inline void setSourceRegisterAddress(const uint32_t value) { TheStructure.Common.SourceRegisterAddress = value >> SOURCEREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getSourceRegisterAddress(void) const { + inline uint32_t getSourceRegisterAddress() const { return (TheStructure.Common.SourceRegisterAddress << SOURCEREGISTERADDRESS_BIT_SHIFT); } typedef enum tagDESTINATIONREGISTERADDRESS { @@ -1482,7 +1482,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { inline void setDestinationRegisterAddress(const uint32_t value) { TheStructure.Common.DestinationRegisterAddress = value >> DESTINATIONREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getDestinationRegisterAddress(void) const { + inline uint32_t getDestinationRegisterAddress() const { return (TheStructure.Common.DestinationRegisterAddress << DESTINATIONREGISTERADDRESS_BIT_SHIFT); } } MI_LOAD_REGISTER_REG; @@ -1504,12 +1504,12 @@ typedef struct tagMI_NOOP { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_NOOP; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_NOOP sInit(void) { + static tagMI_NOOP sInit() { MI_NOOP state; state.init(); return state; @@ -1521,13 +1521,13 @@ typedef struct tagMI_NOOP { inline void setIdentificationNumber(const uint32_t value) { TheStructure.Common.IdentificationNumber = value; } - inline uint32_t getIdentificationNumber(void) const { + inline uint32_t getIdentificationNumber() const { return (TheStructure.Common.IdentificationNumber); } inline void setIdentificationNumberRegisterWriteEnable(const bool value) { TheStructure.Common.IdentificationNumberRegisterWriteEnable = value; } - inline bool getIdentificationNumberRegisterWriteEnable(void) const { + inline bool getIdentificationNumberRegisterWriteEnable() const { return (TheStructure.Common.IdentificationNumberRegisterWriteEnable); } } MI_NOOP; @@ -1563,13 +1563,13 @@ typedef struct tagMI_STORE_REGISTER_MEM { MEMORYADDRESS_BYTEOFFSET = 0x8, MEMORYADDRESS_INDEX = 0x2, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_REGISTER_MEM sInit(void) { + static tagMI_STORE_REGISTER_MEM sInit() { MI_STORE_REGISTER_MEM state; state.init(); return state; @@ -1581,13 +1581,13 @@ typedef struct tagMI_STORE_REGISTER_MEM { inline void setPredicateEnable(const uint32_t value) { TheStructure.Common.PredicateEnable = value; } - inline uint32_t getPredicateEnable(void) const { + inline uint32_t getPredicateEnable() const { return (TheStructure.Common.PredicateEnable); } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } typedef enum tagREGISTERADDRESS { @@ -1597,7 +1597,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { inline void setRegisterAddress(const uint32_t value) { TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return (TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT); } typedef enum tagMEMORYADDRESS { @@ -1607,7 +1607,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } } MI_STORE_REGISTER_MEM; @@ -1647,7 +1647,7 @@ typedef struct tagPIPELINE_SELECT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.PipelineSelection = PIPELINE_SELECTION_3D; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_PIPELINE_SELECT; @@ -1655,7 +1655,7 @@ typedef struct tagPIPELINE_SELECT { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_SINGLE_DW; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagPIPELINE_SELECT sInit(void) { + static tagPIPELINE_SELECT sInit() { PIPELINE_SELECT state; state.init(); return state; @@ -1667,37 +1667,37 @@ typedef struct tagPIPELINE_SELECT { inline void setPipelineSelection(const PIPELINE_SELECTION value) { TheStructure.Common.PipelineSelection = value; } - inline PIPELINE_SELECTION getPipelineSelection(void) const { + inline PIPELINE_SELECTION getPipelineSelection() const { return static_cast(TheStructure.Common.PipelineSelection); } inline void setRenderSliceCommonPowerGateEnable(const bool value) { TheStructure.Common.RenderSliceCommonPowerGateEnable = value; } - inline bool getRenderSliceCommonPowerGateEnable(void) const { + inline bool getRenderSliceCommonPowerGateEnable() const { return (TheStructure.Common.RenderSliceCommonPowerGateEnable); } inline void setRenderSamplerPowerGateEnable(const bool value) { TheStructure.Common.RenderSamplerPowerGateEnable = value; } - inline bool getRenderSamplerPowerGateEnable(void) const { + inline bool getRenderSamplerPowerGateEnable() const { return (TheStructure.Common.RenderSamplerPowerGateEnable); } inline void setMediaSamplerDopClockGateEnable(const bool value) { TheStructure.Common.MediaSamplerDopClockGateEnable = value; } - inline bool getMediaSamplerDopClockGateEnable(void) const { + inline bool getMediaSamplerDopClockGateEnable() const { return (TheStructure.Common.MediaSamplerDopClockGateEnable); } inline void setForceMediaAwake(const bool value) { TheStructure.Common.ForceMediaAwake = value; } - inline bool getForceMediaAwake(void) const { + inline bool getForceMediaAwake() const { return (TheStructure.Common.ForceMediaAwake); } inline void setMaskBits(const uint32_t value) { TheStructure.Common.MaskBits = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return (TheStructure.Common.MaskBits); } } PIPELINE_SELECT; @@ -1786,7 +1786,7 @@ typedef struct tagPIPE_CONTROL { ADDRESSHIGH_BYTEOFFSET = 0xc, ADDRESSHIGH_INDEX = 0x3, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_PIPE_CONTROL; @@ -1798,7 +1798,7 @@ typedef struct tagPIPE_CONTROL { TheStructure.Common.LriPostSyncOperation = LRI_POST_SYNC_OPERATION_NO_LRI_OPERATION; TheStructure.Common.DestinationAddressType = DESTINATION_ADDRESS_TYPE_PPGTT; } - static tagPIPE_CONTROL sInit(void) { + static tagPIPE_CONTROL sInit() { PIPE_CONTROL state; state.init(); return state; @@ -1810,145 +1810,145 @@ typedef struct tagPIPE_CONTROL { inline void setDepthCacheFlushEnable(const bool value) { TheStructure.Common.DepthCacheFlushEnable = value; } - inline bool getDepthCacheFlushEnable(void) const { + inline bool getDepthCacheFlushEnable() const { return (TheStructure.Common.DepthCacheFlushEnable); } inline void setStallAtPixelScoreboard(const bool value) { TheStructure.Common.StallAtPixelScoreboard = value; } - inline bool getStallAtPixelScoreboard(void) const { + inline bool getStallAtPixelScoreboard() const { return (TheStructure.Common.StallAtPixelScoreboard); } inline void setStateCacheInvalidationEnable(const bool value) { TheStructure.Common.StateCacheInvalidationEnable = value; } - inline bool getStateCacheInvalidationEnable(void) const { + inline bool getStateCacheInvalidationEnable() const { return (TheStructure.Common.StateCacheInvalidationEnable); } inline void setConstantCacheInvalidationEnable(const bool value) { TheStructure.Common.ConstantCacheInvalidationEnable = value; } - inline bool getConstantCacheInvalidationEnable(void) const { + inline bool getConstantCacheInvalidationEnable() const { return (TheStructure.Common.ConstantCacheInvalidationEnable); } inline void setVfCacheInvalidationEnable(const bool value) { TheStructure.Common.VfCacheInvalidationEnable = value; } - inline bool getVfCacheInvalidationEnable(void) const { + inline bool getVfCacheInvalidationEnable() const { return (TheStructure.Common.VfCacheInvalidationEnable); } inline void setDcFlushEnable(const bool value) { TheStructure.Common.DcFlushEnable = value; } - inline bool getDcFlushEnable(void) const { + inline bool getDcFlushEnable() const { return (TheStructure.Common.DcFlushEnable); } inline void setProtectedMemoryApplicationId(const uint32_t value) { TheStructure.Common.ProtectedMemoryApplicationId = value; } - inline uint32_t getProtectedMemoryApplicationId(void) const { + inline uint32_t getProtectedMemoryApplicationId() const { return (TheStructure.Common.ProtectedMemoryApplicationId); } inline void setPipeControlFlushEnable(const bool value) { TheStructure.Common.PipeControlFlushEnable = value; } - inline bool getPipeControlFlushEnable(void) const { + inline bool getPipeControlFlushEnable() const { return (TheStructure.Common.PipeControlFlushEnable); } inline void setNotifyEnable(const bool value) { TheStructure.Common.NotifyEnable = value; } - inline bool getNotifyEnable(void) const { + inline bool getNotifyEnable() const { return (TheStructure.Common.NotifyEnable); } inline void setIndirectStatePointersDisable(const bool value) { TheStructure.Common.IndirectStatePointersDisable = value; } - inline bool getIndirectStatePointersDisable(void) const { + inline bool getIndirectStatePointersDisable() const { return (TheStructure.Common.IndirectStatePointersDisable); } inline void setTextureCacheInvalidationEnable(const bool value) { TheStructure.Common.TextureCacheInvalidationEnable = value; } - inline bool getTextureCacheInvalidationEnable(void) const { + inline bool getTextureCacheInvalidationEnable() const { return (TheStructure.Common.TextureCacheInvalidationEnable); } inline void setInstructionCacheInvalidateEnable(const bool value) { TheStructure.Common.InstructionCacheInvalidateEnable = value; } - inline bool getInstructionCacheInvalidateEnable(void) const { + inline bool getInstructionCacheInvalidateEnable() const { return (TheStructure.Common.InstructionCacheInvalidateEnable); } inline void setRenderTargetCacheFlushEnable(const bool value) { TheStructure.Common.RenderTargetCacheFlushEnable = value; } - inline bool getRenderTargetCacheFlushEnable(void) const { + inline bool getRenderTargetCacheFlushEnable() const { return (TheStructure.Common.RenderTargetCacheFlushEnable); } inline void setDepthStallEnable(const bool value) { TheStructure.Common.DepthStallEnable = value; } - inline bool getDepthStallEnable(void) const { + inline bool getDepthStallEnable() const { return (TheStructure.Common.DepthStallEnable); } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setGenericMediaStateClear(const bool value) { TheStructure.Common.GenericMediaStateClear = value; } - inline bool getGenericMediaStateClear(void) const { + inline bool getGenericMediaStateClear() const { return (TheStructure.Common.GenericMediaStateClear); } inline void setTlbInvalidate(const uint32_t value) { TheStructure.Common.TlbInvalidate = value; } - inline uint32_t getTlbInvalidate(void) const { + inline uint32_t getTlbInvalidate() const { return (TheStructure.Common.TlbInvalidate); } inline void setGlobalSnapshotCountReset(const GLOBAL_SNAPSHOT_COUNT_RESET value) { TheStructure.Common.GlobalSnapshotCountReset = value; } - inline GLOBAL_SNAPSHOT_COUNT_RESET getGlobalSnapshotCountReset(void) const { + inline GLOBAL_SNAPSHOT_COUNT_RESET getGlobalSnapshotCountReset() const { return static_cast(TheStructure.Common.GlobalSnapshotCountReset); } inline void setCommandStreamerStallEnable(const uint32_t value) { TheStructure.Common.CommandStreamerStallEnable = value; } - inline uint32_t getCommandStreamerStallEnable(void) const { + inline uint32_t getCommandStreamerStallEnable() const { return (TheStructure.Common.CommandStreamerStallEnable); } inline void setStoreDataIndex(const uint32_t value) { TheStructure.Common.StoreDataIndex = value; } - inline uint32_t getStoreDataIndex(void) const { + inline uint32_t getStoreDataIndex() const { return (TheStructure.Common.StoreDataIndex); } inline void setLriPostSyncOperation(const LRI_POST_SYNC_OPERATION value) { TheStructure.Common.LriPostSyncOperation = value; } - inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation(void) const { + inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation() const { return static_cast(TheStructure.Common.LriPostSyncOperation); } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } inline void setFlushLlc(const bool value) { TheStructure.Common.FlushLlc = value; } - inline bool getFlushLlc(void) const { + inline bool getFlushLlc() const { return (TheStructure.Common.FlushLlc); } inline void setProtectedMemoryDisable(const uint32_t value) { TheStructure.Common.ProtectedMemoryDisable = value; } - inline uint32_t getProtectedMemoryDisable(void) const { + inline uint32_t getProtectedMemoryDisable() const { return (TheStructure.Common.ProtectedMemoryDisable); } typedef enum tagADDRESS { @@ -1958,19 +1958,19 @@ typedef struct tagPIPE_CONTROL { inline void setAddress(const uint32_t value) { TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint32_t getAddress(void) const { + inline uint32_t getAddress() const { return (TheStructure.Common.Address << ADDRESS_BIT_SHIFT); } inline void setAddressHigh(const uint32_t value) { TheStructure.Common.AddressHigh = value; } - inline uint32_t getAddressHigh(void) const { + inline uint32_t getAddressHigh() const { return (TheStructure.Common.AddressHigh); } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return (TheStructure.Common.ImmediateData); } } PIPE_CONTROL; @@ -2552,7 +2552,7 @@ typedef struct tagRENDER_SURFACE_STATE { AUXILIARYSURFACEBASEADDRESS_BYTEOFFSET = 0x28, AUXILIARYSURFACEBASEADDRESS_INDEX = 0xa, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MediaBoundaryPixelMode = MEDIA_BOUNDARY_PIXEL_MODE_NORMAL_MODE; TheStructure.Common.RenderCacheReadWriteMode = RENDER_CACHE_READ_WRITE_MODE_WRITE_ONLY_CACHE; @@ -2572,7 +2572,7 @@ typedef struct tagRENDER_SURFACE_STATE { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetAndSampleUnormRotation = RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION_0DEG; TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode = AUXILIARY_SURFACE_MODE_AUX_NONE; } - static tagRENDER_SURFACE_STATE sInit(void) { + static tagRENDER_SURFACE_STATE sInit() { RENDER_SURFACE_STATE state; state.init(); return state; @@ -2584,73 +2584,73 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setMediaBoundaryPixelMode(const MEDIA_BOUNDARY_PIXEL_MODE value) { TheStructure.Common.MediaBoundaryPixelMode = value; } - inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode(void) const { + inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode() const { return static_cast(TheStructure.Common.MediaBoundaryPixelMode); } inline void setRenderCacheReadWriteMode(const RENDER_CACHE_READ_WRITE_MODE value) { TheStructure.Common.RenderCacheReadWriteMode = value; } - inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode(void) const { + inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode() const { return static_cast(TheStructure.Common.RenderCacheReadWriteMode); } inline void setSamplerL2OutOfOrderModeDisable(const bool value) { TheStructure.Common.SamplerL2OutOfOrderModeDisable = value; } - inline bool getSamplerL2OutOfOrderModeDisable(void) const { + inline bool getSamplerL2OutOfOrderModeDisable() const { return (TheStructure.Common.SamplerL2OutOfOrderModeDisable); } inline void setVerticalLineStrideOffset(const uint32_t value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline uint32_t getVerticalLineStrideOffset(void) const { + inline uint32_t getVerticalLineStrideOffset() const { return (TheStructure.Common.VerticalLineStrideOffset); } inline void setVerticalLineStride(const uint32_t value) { TheStructure.Common.VerticalLineStride = value; } - inline uint32_t getVerticalLineStride(void) const { + inline uint32_t getVerticalLineStride() const { return (TheStructure.Common.VerticalLineStride); } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setSurfaceHorizontalAlignment(const SURFACE_HORIZONTAL_ALIGNMENT value) { TheStructure.Common.SurfaceHorizontalAlignment = value; } - inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment(void) const { + inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment() const { return static_cast(TheStructure.Common.SurfaceHorizontalAlignment); } inline void setSurfaceVerticalAlignment(const SURFACE_VERTICAL_ALIGNMENT value) { TheStructure.Common.SurfaceVerticalAlignment = value; } - inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment(void) const { + inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment() const { return static_cast(TheStructure.Common.SurfaceVerticalAlignment); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setAstcEnable(const bool value) { TheStructure.Common.Astc_Enable = value; } - inline bool getAstcEnable(void) const { + inline bool getAstcEnable() const { return (TheStructure.Common.Astc_Enable); } inline void setSurfaceArray(const bool value) { TheStructure.Common.SurfaceArray = value; } - inline bool getSurfaceArray(void) const { + inline bool getSurfaceArray() const { return (TheStructure.Common.SurfaceArray); } inline void setSurfaceType(const SURFACE_TYPE value) { TheStructure.Common.SurfaceType = value; } - inline SURFACE_TYPE getSurfaceType(void) const { + inline SURFACE_TYPE getSurfaceType() const { return static_cast(TheStructure.Common.SurfaceType); } typedef enum tagSURFACEQPITCH { @@ -2660,32 +2660,32 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setSurfaceQpitch(const uint32_t value) { TheStructure.Common.SurfaceQpitch = value >> SURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getSurfaceQpitch(void) const { + inline uint32_t getSurfaceQpitch() const { return (TheStructure.Common.SurfaceQpitch << SURFACEQPITCH_BIT_SHIFT); } inline void setBaseMipLevel(const uint32_t value) { TheStructure.Common.BaseMipLevel = value; } - inline uint32_t getBaseMipLevel(void) const { + inline uint32_t getBaseMipLevel() const { return (TheStructure.Common.BaseMipLevel); } inline void setMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.MemoryObjectControlState_Reserved = value; } - inline uint32_t getMemoryObjectControlStateReserved(void) const { + inline uint32_t getMemoryObjectControlStateReserved() const { return (TheStructure.Common.MemoryObjectControlState_Reserved); } inline void setMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.MemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlState_IndexToMocsTables << 1); } inline void setMemoryObjectControlState(const uint32_t value) { TheStructure.Common.MemoryObjectControlState_Reserved = value; TheStructure.Common.MemoryObjectControlState_IndexToMocsTables = (value >> 1); } - inline uint32_t getMemoryObjectControlState(void) const { + inline uint32_t getMemoryObjectControlState() const { uint32_t mocs = TheStructure.Common.MemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.MemoryObjectControlState_IndexToMocsTables << 1); return (mocs); @@ -2693,61 +2693,61 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setWidth(const uint32_t value) { TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return (TheStructure.Common.Width + 1); } inline void setHeight(const uint32_t value) { TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return (TheStructure.Common.Height + 1); } inline void setSurfacePitch(const uint32_t value) { TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return (TheStructure.Common.SurfacePitch + 1); } inline void setDepth(const uint32_t value) { TheStructure.Common.Depth = value - 1; } - inline uint32_t getDepth(void) const { + inline uint32_t getDepth() const { return (TheStructure.Common.Depth + 1); } inline void setMipCountLod(const uint32_t value) { TheStructure.Common.MipCountLod = value; } - inline uint32_t getMipCountLod(void) const { + inline uint32_t getMipCountLod() const { return (TheStructure.Common.MipCountLod); } inline void setSurfaceMinLod(const uint32_t value) { TheStructure.Common.SurfaceMinLod = value; } - inline uint32_t getSurfaceMinLod(void) const { + inline uint32_t getSurfaceMinLod() const { return (TheStructure.Common.SurfaceMinLod); } inline void setMipTailStartLod(const uint32_t value) { TheStructure.Common.MipTailStartLod = value; } - inline uint32_t getMipTailStartLod(void) const { + inline uint32_t getMipTailStartLod() const { return (TheStructure.Common.MipTailStartLod); } inline void setCoherencyType(const COHERENCY_TYPE value) { TheStructure.Common.CoherencyType = value; } - inline COHERENCY_TYPE getCoherencyType(void) const { + inline COHERENCY_TYPE getCoherencyType() const { return static_cast(TheStructure.Common.CoherencyType); } inline void setTiledResourceMode(const TILED_RESOURCE_MODE value) { TheStructure.Common.TiledResourceMode = value; } - inline TILED_RESOURCE_MODE getTiledResourceMode(void) const { + inline TILED_RESOURCE_MODE getTiledResourceMode() const { return static_cast(TheStructure.Common.TiledResourceMode); } inline void setEwaDisableForCube(const bool value) { TheStructure.Common.EwaDisableForCube = value; } - inline bool getEwaDisableForCube(void) const { + inline bool getEwaDisableForCube() const { return (TheStructure.Common.EwaDisableForCube); } typedef enum tagYOFFSET { @@ -2757,7 +2757,7 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setYOffset(const uint32_t value) { TheStructure.Common.YOffset = value >> YOFFSET_BIT_SHIFT; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return (TheStructure.Common.YOffset << YOFFSET_BIT_SHIFT); } typedef enum tagXOFFSET { @@ -2767,151 +2767,151 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setXOffset(const uint32_t value) { TheStructure.Common.XOffset = value >> XOFFSET_BIT_SHIFT; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return (TheStructure.Common.XOffset << XOFFSET_BIT_SHIFT); } inline void setResourceMinLod(const uint32_t value) { TheStructure.Common.ResourceMinLod = value; } - inline uint32_t getResourceMinLod(void) const { + inline uint32_t getResourceMinLod() const { return (TheStructure.Common.ResourceMinLod); } inline void setShaderChannelSelectAlpha(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectAlpha = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha() const { return static_cast(TheStructure.Common.ShaderChannelSelectAlpha); } inline void setShaderChannelSelectBlue(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectBlue = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue() const { return static_cast(TheStructure.Common.ShaderChannelSelectBlue); } inline void setShaderChannelSelectGreen(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectGreen = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen() const { return static_cast(TheStructure.Common.ShaderChannelSelectGreen); } inline void setShaderChannelSelectRed(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectRed = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed() const { return static_cast(TheStructure.Common.ShaderChannelSelectRed); } inline void setMemoryCompressionEnable(const bool value) { TheStructure.Common.MemoryCompressionEnable = value; } - inline bool getMemoryCompressionEnable(void) const { + inline bool getMemoryCompressionEnable() const { return (TheStructure.Common.MemoryCompressionEnable); } inline void setMemoryCompressionMode(const MEMORY_COMPRESSION_MODE value) { TheStructure.Common.MemoryCompressionMode = value; } - inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode(void) const { + inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode() const { return static_cast(TheStructure.Common.MemoryCompressionMode); } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddress = value; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return (TheStructure.Common.SurfaceBaseAddress); } inline void setQuiltWidth(const uint64_t value) { TheStructure.Common.QuiltWidth = value; } - inline uint64_t getQuiltWidth(void) const { + inline uint64_t getQuiltWidth() const { return (TheStructure.Common.QuiltWidth); } inline void setQuiltHeight(const uint64_t value) { TheStructure.Common.QuiltHeight = value; } - inline uint64_t getQuiltHeight(void) const { + inline uint64_t getQuiltHeight() const { return (TheStructure.Common.QuiltHeight); } inline void setCubeFaceEnablePositiveZ(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveZ = value; } - inline bool getCubeFaceEnablePositiveZ(void) const { + inline bool getCubeFaceEnablePositiveZ() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveZ); } inline void setCubeFaceEnableNegativeZ(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeZ = value; } - inline bool getCubeFaceEnableNegativeZ(void) const { + inline bool getCubeFaceEnableNegativeZ() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeZ); } inline void setCubeFaceEnablePositiveY(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveY = value; } - inline bool getCubeFaceEnablePositiveY(void) const { + inline bool getCubeFaceEnablePositiveY() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveY); } inline void setCubeFaceEnableNegativeY(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeY = value; } - inline bool getCubeFaceEnableNegativeY(void) const { + inline bool getCubeFaceEnableNegativeY() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeY); } inline void setCubeFaceEnablePositiveX(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveX = value; } - inline bool getCubeFaceEnablePositiveX(void) const { + inline bool getCubeFaceEnablePositiveX() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_PositiveX); } inline void setCubeFaceEnableNegativeX(const bool value) { TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeX = value; } - inline bool getCubeFaceEnableNegativeX(void) const { + inline bool getCubeFaceEnableNegativeX() const { return (TheStructure.SurfaceTypeIsSurftype_Cube.CubeFaceEnable_NegativeX); } inline void setMultisamplePositionPaletteIndex(const uint32_t value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisamplePositionPaletteIndex = value; } - inline uint32_t getMultisamplePositionPaletteIndex(void) const { + inline uint32_t getMultisamplePositionPaletteIndex() const { return (TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisamplePositionPaletteIndex); } inline void setNumberOfMultisamples(const NUMBER_OF_MULTISAMPLES value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.NumberOfMultisamples = value; } - inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples(void) const { + inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples() const { return static_cast(TheStructure.SurfaceTypeIsnotSurftype_Strbuf.NumberOfMultisamples); } inline void setMultisampledSurfaceStorageFormat(const MULTISAMPLED_SURFACE_STORAGE_FORMAT value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisampledSurfaceStorageFormat = value; } - inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat(void) const { + inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat() const { return static_cast(TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MultisampledSurfaceStorageFormat); } inline void setRenderTargetViewExtent(const uint32_t value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetViewExtent = value - 1; } - inline uint32_t getRenderTargetViewExtent(void) const { + inline uint32_t getRenderTargetViewExtent() const { return (TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetViewExtent + 1); } inline void setMinimumArrayElement(const uint32_t value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MinimumArrayElement = value; } - inline uint32_t getMinimumArrayElement(void) const { + inline uint32_t getMinimumArrayElement() const { return (TheStructure.SurfaceTypeIsnotSurftype_Strbuf.MinimumArrayElement); } inline void setRenderTargetAndSampleUnormRotation(const RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION value) { TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetAndSampleUnormRotation = value; } - inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation(void) const { + inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation() const { return static_cast(TheStructure.SurfaceTypeIsnotSurftype_Strbuf.RenderTargetAndSampleUnormRotation); } inline void setAuxiliarySurfaceMode(const AUXILIARY_SURFACE_MODE value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode = value; } - inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode(void) const { + inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode() const { return static_cast(TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode); } inline void setAuxiliarySurfacePitch(const uint32_t value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch = value - 1; } - inline uint32_t getAuxiliarySurfacePitch(void) const { + inline uint32_t getAuxiliarySurfacePitch() const { return (TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch + 1); } typedef enum tagAUXILIARYSURFACEQPITCH { @@ -2921,37 +2921,37 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setAuxiliarySurfaceQpitch(const uint32_t value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch = value >> AUXILIARYSURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getAuxiliarySurfaceQpitch(void) const { + inline uint32_t getAuxiliarySurfaceQpitch() const { return (TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch << AUXILIARYSURFACEQPITCH_BIT_SHIFT); } inline void setYOffsetForUOrUvPlane(const uint32_t value) { TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane = value; } - inline uint32_t getYOffsetForUOrUvPlane(void) const { + inline uint32_t getYOffsetForUOrUvPlane() const { return (TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane); } inline void setXOffsetForUOrUvPlane(const uint32_t value) { TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane = value; } - inline uint32_t getXOffsetForUOrUvPlane(void) const { + inline uint32_t getXOffsetForUOrUvPlane() const { return (TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane); } inline void setSeparateUvPlaneEnable(const bool value) { TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable = value; } - inline bool getSeparateUvPlaneEnable(void) const { + inline bool getSeparateUvPlaneEnable() const { return (TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable); } inline void setYOffsetForVPlane(const uint64_t value) { TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane = value; } - inline uint64_t getYOffsetForVPlane(void) const { + inline uint64_t getYOffsetForVPlane() const { return (TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane); } inline void setXOffsetForVPlane(const uint64_t value) { TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane = value; } - inline uint64_t getXOffsetForVPlane(void) const { + inline uint64_t getXOffsetForVPlane() const { return (TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane); } typedef enum tagAUXILIARYSURFACEBASEADDRESS { @@ -2961,43 +2961,43 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setAuxiliarySurfaceBaseAddress(const uint64_t value) { TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress = value >> AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getAuxiliarySurfaceBaseAddress(void) const { + inline uint64_t getAuxiliarySurfaceBaseAddress() const { return (TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress << AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT); } inline void setAuxiliaryTableIndexForMediaCompressedSurface(const uint64_t value) { TheStructure.MemoryCompressionEnableIs1.AuxiliaryTableIndexForMediaCompressedSurface = value; } - inline uint64_t getAuxiliaryTableIndexForMediaCompressedSurface(void) const { + inline uint64_t getAuxiliaryTableIndexForMediaCompressedSurface() const { return (TheStructure.MemoryCompressionEnableIs1.AuxiliaryTableIndexForMediaCompressedSurface); } inline void setHierarchicalDepthClearValue(const float value) { TheStructure.AuxiliarySurfaceModeIsAux_Hiz.HierarchicalDepthClearValue = value; } - inline float getHierarchicalDepthClearValue(void) const { + inline float getHierarchicalDepthClearValue() const { return (TheStructure.AuxiliarySurfaceModeIsAux_Hiz.HierarchicalDepthClearValue); } inline void setRedClearColor(const uint32_t value) { TheStructure.AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_E.RedClearColor = value; } - inline uint32_t getRedClearColor(void) const { + inline uint32_t getRedClearColor() const { return (TheStructure.AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_E.RedClearColor); } inline void setGreenClearColor(const uint32_t value) { TheStructure.AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_E.GreenClearColor = value; } - inline uint32_t getGreenClearColor(void) const { + inline uint32_t getGreenClearColor() const { return (TheStructure.AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_E.GreenClearColor); } inline void setBlueClearColor(const uint32_t value) { TheStructure.AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_E.BlueClearColor = value; } - inline uint32_t getBlueClearColor(void) const { + inline uint32_t getBlueClearColor() const { return (TheStructure.AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_E.BlueClearColor); } inline void setAlphaClearColor(const uint32_t value) { TheStructure.AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_E.AlphaClearColor = value; } - inline uint32_t getAlphaClearColor(void) const { + inline uint32_t getAlphaClearColor() const { return (TheStructure.AuxiliarySurfaceModeIsAux_Ccs_DOrAuxiliarySurfaceModeIsAux_Ccs_E.AlphaClearColor); } } RENDER_SURFACE_STATE; @@ -3131,7 +3131,7 @@ typedef struct tagSAMPLER_STATE { REDUCTION_TYPE_MINIMUM = 0x2, REDUCTION_TYPE_MAXIMUM = 0x3, } REDUCTION_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.LodAlgorithm = LOD_ALGORITHM_LEGACY; TheStructure.Common.MinModeFilter = MIN_MODE_FILTER_NEAREST; @@ -3151,7 +3151,7 @@ typedef struct tagSAMPLER_STATE { TheStructure.Common.MaximumAnisotropy = MAXIMUM_ANISOTROPY_RATIO_21; TheStructure.Common.ReductionType = REDUCTION_TYPE_STD_FILTER; } - static tagSAMPLER_STATE sInit(void) { + static tagSAMPLER_STATE sInit() { SAMPLER_STATE state; state.init(); return state; @@ -3163,103 +3163,103 @@ typedef struct tagSAMPLER_STATE { inline void setLodAlgorithm(const LOD_ALGORITHM value) { TheStructure.Common.LodAlgorithm = value; } - inline LOD_ALGORITHM getLodAlgorithm(void) const { + inline LOD_ALGORITHM getLodAlgorithm() const { return static_cast(TheStructure.Common.LodAlgorithm); } inline void setTextureLodBias(const uint32_t value) { TheStructure.Common.TextureLodBias = value; } - inline uint32_t getTextureLodBias(void) const { + inline uint32_t getTextureLodBias() const { return (TheStructure.Common.TextureLodBias); } inline void setMinModeFilter(const MIN_MODE_FILTER value) { TheStructure.Common.MinModeFilter = value; } - inline MIN_MODE_FILTER getMinModeFilter(void) const { + inline MIN_MODE_FILTER getMinModeFilter() const { return static_cast(TheStructure.Common.MinModeFilter); } inline void setMagModeFilter(const MAG_MODE_FILTER value) { TheStructure.Common.MagModeFilter = value; } - inline MAG_MODE_FILTER getMagModeFilter(void) const { + inline MAG_MODE_FILTER getMagModeFilter() const { return static_cast(TheStructure.Common.MagModeFilter); } inline void setMipModeFilter(const MIP_MODE_FILTER value) { TheStructure.Common.MipModeFilter = value; } - inline MIP_MODE_FILTER getMipModeFilter(void) const { + inline MIP_MODE_FILTER getMipModeFilter() const { return static_cast(TheStructure.Common.MipModeFilter); } inline void setCoarseLodQualityMode(const COARSE_LOD_QUALITY_MODE value) { TheStructure.Common.CoarseLodQualityMode = value; } - inline COARSE_LOD_QUALITY_MODE getCoarseLodQualityMode(void) const { + inline COARSE_LOD_QUALITY_MODE getCoarseLodQualityMode() const { return static_cast(TheStructure.Common.CoarseLodQualityMode); } inline void setLodPreclampMode(const LOD_PRECLAMP_MODE value) { TheStructure.Common.LodPreclampMode = value; } - inline LOD_PRECLAMP_MODE getLodPreclampMode(void) const { + inline LOD_PRECLAMP_MODE getLodPreclampMode() const { return static_cast(TheStructure.Common.LodPreclampMode); } inline void setTextureBorderColorMode(const TEXTURE_BORDER_COLOR_MODE value) { TheStructure.Common.TextureBorderColorMode = value; } - inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode(void) const { + inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode() const { return static_cast(TheStructure.Common.TextureBorderColorMode); } inline void setSamplerDisable(const bool value) { TheStructure.Common.SamplerDisable = value; } - inline bool getSamplerDisable(void) const { + inline bool getSamplerDisable() const { return (TheStructure.Common.SamplerDisable); } inline void setCubeSurfaceControlMode(const CUBE_SURFACE_CONTROL_MODE value) { TheStructure.Common.CubeSurfaceControlMode = value; } - inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode(void) const { + inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode() const { return static_cast(TheStructure.Common.CubeSurfaceControlMode); } inline void setShadowFunction(const SHADOW_FUNCTION value) { TheStructure.Common.ShadowFunction = value; } - inline SHADOW_FUNCTION getShadowFunction(void) const { + inline SHADOW_FUNCTION getShadowFunction() const { return static_cast(TheStructure.Common.ShadowFunction); } inline void setChromakeyMode(const CHROMAKEY_MODE value) { TheStructure.Common.ChromakeyMode = value; } - inline CHROMAKEY_MODE getChromakeyMode(void) const { + inline CHROMAKEY_MODE getChromakeyMode() const { return static_cast(TheStructure.Common.ChromakeyMode); } inline void setChromakeyIndex(const uint32_t value) { TheStructure.Common.ChromakeyIndex = value; } - inline uint32_t getChromakeyIndex(void) const { + inline uint32_t getChromakeyIndex() const { return (TheStructure.Common.ChromakeyIndex); } inline void setChromakeyEnable(const bool value) { TheStructure.Common.ChromakeyEnable = value; } - inline bool getChromakeyEnable(void) const { + inline bool getChromakeyEnable() const { return (TheStructure.Common.ChromakeyEnable); } inline void setMaxLod(const uint32_t value) { TheStructure.Common.MaxLod = value; } - inline uint32_t getMaxLod(void) const { + inline uint32_t getMaxLod() const { return (TheStructure.Common.MaxLod); } inline void setMinLod(const uint32_t value) { TheStructure.Common.MinLod = value; } - inline uint32_t getMinLod(void) const { + inline uint32_t getMinLod() const { return (TheStructure.Common.MinLod); } inline void setLodClampMagnificationMode(const LOD_CLAMP_MAGNIFICATION_MODE value) { TheStructure.Common.LodClampMagnificationMode = value; } - inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode(void) const { + inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode() const { return static_cast(TheStructure.Common.LodClampMagnificationMode); } typedef enum tagINDIRECTSTATEPOINTER { @@ -3275,85 +3275,85 @@ typedef struct tagSAMPLER_STATE { inline void setTczAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TczAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTczAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTczAddressControlMode() const { return static_cast(TheStructure.Common.TczAddressControlMode); } inline void setTcyAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcyAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode() const { return static_cast(TheStructure.Common.TcyAddressControlMode); } inline void setTcxAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcxAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode() const { return static_cast(TheStructure.Common.TcxAddressControlMode); } inline void setReductionTypeEnable(const bool value) { TheStructure.Common.ReductionTypeEnable = value; } - inline bool getReductionTypeEnable(void) const { + inline bool getReductionTypeEnable() const { return (TheStructure.Common.ReductionTypeEnable); } inline void setNonNormalizedCoordinateEnable(const bool value) { TheStructure.Common.Non_NormalizedCoordinateEnable = value; } - inline bool getNonNormalizedCoordinateEnable(void) const { + inline bool getNonNormalizedCoordinateEnable() const { return (TheStructure.Common.Non_NormalizedCoordinateEnable); } inline void setTrilinearFilterQuality(const TRILINEAR_FILTER_QUALITY value) { TheStructure.Common.TrilinearFilterQuality = value; } - inline TRILINEAR_FILTER_QUALITY getTrilinearFilterQuality(void) const { + inline TRILINEAR_FILTER_QUALITY getTrilinearFilterQuality() const { return static_cast(TheStructure.Common.TrilinearFilterQuality); } inline void setRAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMinFilterRoundingEnable = value; } - inline bool getRAddressMinFilterRoundingEnable(void) const { + inline bool getRAddressMinFilterRoundingEnable() const { return (TheStructure.Common.RAddressMinFilterRoundingEnable); } inline void setRAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMagFilterRoundingEnable = value; } - inline bool getRAddressMagFilterRoundingEnable(void) const { + inline bool getRAddressMagFilterRoundingEnable() const { return (TheStructure.Common.RAddressMagFilterRoundingEnable); } inline void setVAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMinFilterRoundingEnable = value; } - inline bool getVAddressMinFilterRoundingEnable(void) const { + inline bool getVAddressMinFilterRoundingEnable() const { return (TheStructure.Common.VAddressMinFilterRoundingEnable); } inline void setVAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMagFilterRoundingEnable = value; } - inline bool getVAddressMagFilterRoundingEnable(void) const { + inline bool getVAddressMagFilterRoundingEnable() const { return (TheStructure.Common.VAddressMagFilterRoundingEnable); } inline void setUAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMinFilterRoundingEnable = value; } - inline bool getUAddressMinFilterRoundingEnable(void) const { + inline bool getUAddressMinFilterRoundingEnable() const { return (TheStructure.Common.UAddressMinFilterRoundingEnable); } inline void setUAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMagFilterRoundingEnable = value; } - inline bool getUAddressMagFilterRoundingEnable(void) const { + inline bool getUAddressMagFilterRoundingEnable() const { return (TheStructure.Common.UAddressMagFilterRoundingEnable); } inline void setMaximumAnisotropy(const MAXIMUM_ANISOTROPY value) { TheStructure.Common.MaximumAnisotropy = value; } - inline MAXIMUM_ANISOTROPY getMaximumAnisotropy(void) const { + inline MAXIMUM_ANISOTROPY getMaximumAnisotropy() const { return static_cast(TheStructure.Common.MaximumAnisotropy); } inline void setReductionType(const REDUCTION_TYPE value) { TheStructure.Common.ReductionType = value; } - inline REDUCTION_TYPE getReductionType(void) const { + inline REDUCTION_TYPE getReductionType() const { return static_cast(TheStructure.Common.ReductionType); } } SAMPLER_STATE; @@ -3455,7 +3455,7 @@ typedef struct tagSTATE_BASE_ADDRESS { BINDLESSSURFACESTATEBASEADDRESS_BYTEOFFSET = 0x40, BINDLESSSURFACESTATEBASEADDRESS_INDEX = 0x10, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_BASE_ADDRESS; @@ -3463,7 +3463,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagSTATE_BASE_ADDRESS sInit(void) { + static tagSTATE_BASE_ADDRESS sInit() { STATE_BASE_ADDRESS state; state.init(); return state; @@ -3475,19 +3475,19 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.GeneralStateBaseAddressModifyEnable = value; } - inline bool getGeneralStateBaseAddressModifyEnable(void) const { + inline bool getGeneralStateBaseAddressModifyEnable() const { return (TheStructure.Common.GeneralStateBaseAddressModifyEnable); } inline void setGeneralStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getGeneralStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved); } inline void setGeneralStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getGeneralStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagGENERALSTATEBASEADDRESS { @@ -3497,26 +3497,26 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddress(const uint64_t value) { TheStructure.Common.GeneralStateBaseAddress = value >> GENERALSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getGeneralStateBaseAddress(void) const { + inline uint64_t getGeneralStateBaseAddress() const { return (TheStructure.Common.GeneralStateBaseAddress << GENERALSTATEBASEADDRESS_BIT_SHIFT); } inline void setStatelessDataPortAccessMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved); } inline void setStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1); } inline void setStatelessDataPortAccessMemoryObjectControlState(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = (value >> 1); } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlState(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlState() const { uint32_t mocs = TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1); return (mocs); @@ -3524,19 +3524,19 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.SurfaceStateBaseAddressModifyEnable = value; } - inline bool getSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.SurfaceStateBaseAddressModifyEnable); } inline void setSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved); } inline void setSurfaceStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getSurfaceStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagSURFACESTATEBASEADDRESS { @@ -3546,25 +3546,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceStateBaseAddress = value >> SURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getSurfaceStateBaseAddress(void) const { + inline uint64_t getSurfaceStateBaseAddress() const { return (TheStructure.Common.SurfaceStateBaseAddress << SURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setDynamicStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.DynamicStateBaseAddressModifyEnable = value; } - inline bool getDynamicStateBaseAddressModifyEnable(void) const { + inline bool getDynamicStateBaseAddressModifyEnable() const { return (TheStructure.Common.DynamicStateBaseAddressModifyEnable); } inline void setDynamicStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getDynamicStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved); } inline void setDynamicStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getDynamicStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagDYNAMICSTATEBASEADDRESS { @@ -3574,25 +3574,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setDynamicStateBaseAddress(const uint64_t value) { TheStructure.Common.DynamicStateBaseAddress = value >> DYNAMICSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getDynamicStateBaseAddress(void) const { + inline uint64_t getDynamicStateBaseAddress() const { return (TheStructure.Common.DynamicStateBaseAddress << DYNAMICSTATEBASEADDRESS_BIT_SHIFT); } inline void setIndirectObjectBaseAddressModifyEnable(const bool value) { TheStructure.Common.IndirectObjectBaseAddressModifyEnable = value; } - inline bool getIndirectObjectBaseAddressModifyEnable(void) const { + inline bool getIndirectObjectBaseAddressModifyEnable() const { return (TheStructure.Common.IndirectObjectBaseAddressModifyEnable); } inline void setIndirectObjectMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.IndirectObjectMemoryObjectControlState_Reserved = value; } - inline uint64_t getIndirectObjectMemoryObjectControlStateReserved(void) const { + inline uint64_t getIndirectObjectMemoryObjectControlStateReserved() const { return (TheStructure.Common.IndirectObjectMemoryObjectControlState_Reserved); } inline void setIndirectObjectMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.IndirectObjectMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getIndirectObjectMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getIndirectObjectMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.IndirectObjectMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagINDIRECTOBJECTBASEADDRESS { @@ -3602,25 +3602,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setIndirectObjectBaseAddress(const uint64_t value) { TheStructure.Common.IndirectObjectBaseAddress = value >> INDIRECTOBJECTBASEADDRESS_BIT_SHIFT; } - inline uint64_t getIndirectObjectBaseAddress(void) const { + inline uint64_t getIndirectObjectBaseAddress() const { return (TheStructure.Common.IndirectObjectBaseAddress << INDIRECTOBJECTBASEADDRESS_BIT_SHIFT); } inline void setInstructionBaseAddressModifyEnable(const bool value) { TheStructure.Common.InstructionBaseAddressModifyEnable = value; } - inline bool getInstructionBaseAddressModifyEnable(void) const { + inline bool getInstructionBaseAddressModifyEnable() const { return (TheStructure.Common.InstructionBaseAddressModifyEnable); } inline void setInstructionMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = value; } - inline uint64_t getInstructionMemoryObjectControlStateReserved(void) const { + inline uint64_t getInstructionMemoryObjectControlStateReserved() const { return (TheStructure.Common.InstructionMemoryObjectControlState_Reserved); } inline void setInstructionMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getInstructionMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getInstructionMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables << 1); } inline void setInstructionMemoryObjectControlState(const uint32_t value) { @@ -3628,7 +3628,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = val; TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables = (val >> 1); } - inline uint32_t getInstructionMemoryObjectControlState(void) const { + inline uint32_t getInstructionMemoryObjectControlState() const { uint64_t mocs = TheStructure.Common.InstructionMemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables << 1); return static_cast(mocs); @@ -3640,73 +3640,73 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setInstructionBaseAddress(const uint64_t value) { TheStructure.Common.InstructionBaseAddress = value >> INSTRUCTIONBASEADDRESS_BIT_SHIFT; } - inline uint64_t getInstructionBaseAddress(void) const { + inline uint64_t getInstructionBaseAddress() const { return (TheStructure.Common.InstructionBaseAddress << INSTRUCTIONBASEADDRESS_BIT_SHIFT); } inline void setGeneralStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.GeneralStateBufferSizeModifyEnable = value; } - inline bool getGeneralStateBufferSizeModifyEnable(void) const { + inline bool getGeneralStateBufferSizeModifyEnable() const { return (TheStructure.Common.GeneralStateBufferSizeModifyEnable); } inline void setGeneralStateBufferSize(const uint32_t value) { TheStructure.Common.GeneralStateBufferSize = value; } - inline uint32_t getGeneralStateBufferSize(void) const { + inline uint32_t getGeneralStateBufferSize() const { return (TheStructure.Common.GeneralStateBufferSize); } inline void setDynamicStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.DynamicStateBufferSizeModifyEnable = value; } - inline bool getDynamicStateBufferSizeModifyEnable(void) const { + inline bool getDynamicStateBufferSizeModifyEnable() const { return (TheStructure.Common.DynamicStateBufferSizeModifyEnable); } inline void setDynamicStateBufferSize(const uint32_t value) { TheStructure.Common.DynamicStateBufferSize = value; } - inline uint32_t getDynamicStateBufferSize(void) const { + inline uint32_t getDynamicStateBufferSize() const { return (TheStructure.Common.DynamicStateBufferSize); } inline void setIndirectObjectBufferSizeModifyEnable(const bool value) { TheStructure.Common.IndirectObjectBufferSizeModifyEnable = value; } - inline bool getIndirectObjectBufferSizeModifyEnable(void) const { + inline bool getIndirectObjectBufferSizeModifyEnable() const { return (TheStructure.Common.IndirectObjectBufferSizeModifyEnable); } inline void setIndirectObjectBufferSize(const uint32_t value) { TheStructure.Common.IndirectObjectBufferSize = value; } - inline uint32_t getIndirectObjectBufferSize(void) const { + inline uint32_t getIndirectObjectBufferSize() const { return (TheStructure.Common.IndirectObjectBufferSize); } inline void setInstructionBufferSizeModifyEnable(const bool value) { TheStructure.Common.InstructionBufferSizeModifyEnable = value; } - inline bool getInstructionBufferSizeModifyEnable(void) const { + inline bool getInstructionBufferSizeModifyEnable() const { return (TheStructure.Common.InstructionBufferSizeModifyEnable); } inline void setInstructionBufferSize(const uint32_t value) { TheStructure.Common.InstructionBufferSize = value; } - inline uint32_t getInstructionBufferSize(void) const { + inline uint32_t getInstructionBufferSize() const { return (TheStructure.Common.InstructionBufferSize); } inline void setBindlessSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.BindlessSurfaceStateBaseAddressModifyEnable = value; } - inline bool getBindlessSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getBindlessSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.BindlessSurfaceStateBaseAddressModifyEnable); } inline void setBindlessSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_Reserved); } inline void setBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagBINDLESSSURFACESTATEBASEADDRESS { @@ -3716,13 +3716,13 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setBindlessSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateBaseAddress = value >> BINDLESSSURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindlessSurfaceStateBaseAddress(void) const { + inline uint64_t getBindlessSurfaceStateBaseAddress() const { return (TheStructure.Common.BindlessSurfaceStateBaseAddress << BINDLESSSURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setBindlessSurfaceStateSize(const uint32_t value) { TheStructure.Common.BindlessSurfaceStateSize = value; } - inline uint32_t getBindlessSurfaceStateSize(void) const { + inline uint32_t getBindlessSurfaceStateSize() const { return (TheStructure.Common.BindlessSurfaceStateSize); } } STATE_BASE_ADDRESS; @@ -3757,13 +3757,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { MEMORYADDRESS_BYTEOFFSET = 0x4, MEMORYADDRESS_INDEX = 0x1, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_REPORT_PERF_COUNT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_REPORT_PERF_COUNT sInit(void) { + static tagMI_REPORT_PERF_COUNT sInit() { MI_REPORT_PERF_COUNT state; state.init(); return state; @@ -3775,13 +3775,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } inline void setCoreModeEnable(const uint64_t value) { TheStructure.Common.CoreModeEnable = value; } - inline uint64_t getCoreModeEnable(void) const { + inline uint64_t getCoreModeEnable() const { return (TheStructure.Common.CoreModeEnable); } typedef enum tagMEMORYADDRESS { @@ -3791,13 +3791,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } inline void setReportId(const uint32_t value) { TheStructure.Common.ReportId = value; } - inline uint32_t getReportId(void) const { + inline uint32_t getReportId() const { return (TheStructure.Common.ReportId); } } MI_REPORT_PERF_COUNT; @@ -3836,7 +3836,7 @@ typedef struct tagGPGPU_CSR_BASE_ADDRESS { GPGPUCSRBASEADDRESS_BYTEOFFSET = 0x4, GPGPUCSRBASEADDRESS_INDEX = 0x1, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_UNNAMED_1; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_GPGPU_CSR_BASE_ADDRESS; @@ -3844,7 +3844,7 @@ typedef struct tagGPGPU_CSR_BASE_ADDRESS { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagGPGPU_CSR_BASE_ADDRESS sInit(void) { + static tagGPGPU_CSR_BASE_ADDRESS sInit() { GPGPU_CSR_BASE_ADDRESS state; state.init(); return state; @@ -3944,11 +3944,11 @@ struct MI_USER_INTERRUPT { enum COMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MICommandOpcode = MI_COMMAND_OPCODE_MI_USER_INTERRUPT; } - static MI_USER_INTERRUPT sInit(void) { + static MI_USER_INTERRUPT sInit() { MI_USER_INTERRUPT state; state.init(); return state; @@ -4005,7 +4005,7 @@ typedef struct tagMI_FLUSH_DW { DESTINATION_ADDRESS_TYPE_PPGTT = 0x0, DESTINATION_ADDRESS_TYPE_GGTT = 0x1, } DESTINATION_ADDRESS_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.PostSyncOperation = POST_SYNC_OPERATION_NO_WRITE; @@ -4013,7 +4013,7 @@ typedef struct tagMI_FLUSH_DW { TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; TheStructure.Common.DestinationAddressType = DESTINATION_ADDRESS_TYPE_PPGTT; } - static tagMI_FLUSH_DW sInit(void) { + static tagMI_FLUSH_DW sInit() { MI_FLUSH_DW state; state.init(); return state; @@ -4025,37 +4025,37 @@ typedef struct tagMI_FLUSH_DW { inline void setNotifyEnable(const bool value) { TheStructure.Common.NotifyEnable = value; } - inline bool getNotifyEnable(void) const { + inline bool getNotifyEnable() const { return TheStructure.Common.NotifyEnable; } inline void setFlushLlc(const bool value) { TheStructure.Common.FlushLlc = value; } - inline bool getFlushLlc(void) const { + inline bool getFlushLlc() const { return TheStructure.Common.FlushLlc; } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setTlbInvalidate(const bool value) { TheStructure.Common.TlbInvalidate = value; } - inline bool getTlbInvalidate(void) const { + inline bool getTlbInvalidate() const { return TheStructure.Common.TlbInvalidate; } inline void setStoreDataIndex(const bool value) { TheStructure.Common.StoreDataIndex = value; } - inline bool getStoreDataIndex(void) const { + inline bool getStoreDataIndex() const { return TheStructure.Common.StoreDataIndex; } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } typedef enum tagDESTINATIONADDRESS { @@ -4066,13 +4066,13 @@ typedef struct tagMI_FLUSH_DW { UNRECOVERABLE_IF(value > 0xfffffffffff8L); TheStructure.Common.DestinationAddress = value >> DESTINATIONADDRESS_BIT_SHIFT; } - inline uint64_t getDestinationAddress(void) const { + inline uint64_t getDestinationAddress() const { return TheStructure.Common.DestinationAddress << DESTINATIONADDRESS_BIT_SHIFT; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } } MI_FLUSH_DW; @@ -4148,7 +4148,7 @@ typedef struct tagXY_SRC_COPY_BLT { typedef enum tagDWORD_LENGTH { DWORD_LENGTH_EXCLUDES_DWORD_0_1 = 0x8, } DWORD_LENGTH; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DestTilingEnable = DEST_TILING_ENABLE_TILING_DISABLED_LINEAR_BLIT; TheStructure.Common.SrcTilingEnable = SRC_TILING_ENABLE_TILING_DISABLED_LINEAR; @@ -4159,7 +4159,7 @@ typedef struct tagXY_SRC_COPY_BLT { TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.RasterOperation = 0xCC; } - static tagXY_SRC_COPY_BLT sInit(void) { + static tagXY_SRC_COPY_BLT sInit() { XY_SRC_COPY_BLT state; state.init(); return state; @@ -4171,119 +4171,119 @@ typedef struct tagXY_SRC_COPY_BLT { inline void setDestTilingEnable(const DEST_TILING_ENABLE value) { TheStructure.Common.DestTilingEnable = value; } - inline DEST_TILING_ENABLE getDestTilingEnable(void) const { + inline DEST_TILING_ENABLE getDestTilingEnable() const { return static_cast(TheStructure.Common.DestTilingEnable); } inline void setSrcTilingEnable(const SRC_TILING_ENABLE value) { TheStructure.Common.SrcTilingEnable = value; } - inline SRC_TILING_ENABLE getSrcTilingEnable(void) const { + inline SRC_TILING_ENABLE getSrcTilingEnable() const { return static_cast(TheStructure.Common.SrcTilingEnable); } inline void set32BppByteMask(const _32BPP_BYTE_MASK value) { TheStructure.Common._32BppByteMask = value; } - inline _32BPP_BYTE_MASK get32BppByteMask(void) const { + inline _32BPP_BYTE_MASK get32BppByteMask() const { return static_cast<_32BPP_BYTE_MASK>(TheStructure.Common._32BppByteMask); } inline void setInstructionTargetOpcode(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1fc00000); TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return TheStructure.Common.InstructionTarget_Opcode; } inline void setClient(const CLIENT value) { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } inline void setDestinationPitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationPitch = value; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return TheStructure.Common.DestinationPitch; } inline void setRasterOperation(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff0000); TheStructure.Common.RasterOperation = value; } - inline uint32_t getRasterOperation(void) const { + inline uint32_t getRasterOperation() const { return TheStructure.Common.RasterOperation; } inline void setColorDepth(const COLOR_DEPTH value) { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } inline void setClippingEnabled(const CLIPPING_ENABLED value) { TheStructure.Common.ClippingEnabled = value; } - inline CLIPPING_ENABLED getClippingEnabled(void) const { + inline CLIPPING_ENABLED getClippingEnabled() const { return static_cast(TheStructure.Common.ClippingEnabled); } inline void setDestinationX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return TheStructure.Common.DestinationX1Coordinate_Left; } inline void setDestinationY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return TheStructure.Common.DestinationY1Coordinate_Top; } inline void setDestinationX2CoordinateRight(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return TheStructure.Common.DestinationX2Coordinate_Right; } inline void setDestinationY2CoordinateBottom(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return TheStructure.Common.DestinationY2Coordinate_Bottom; } inline void setDestinationBaseAddress(const uint64_t value) { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return TheStructure.Common.DestinationBaseAddress; } inline void setSourceX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourceX1Coordinate_Left = value; } - inline uint32_t getSourceX1CoordinateLeft(void) const { + inline uint32_t getSourceX1CoordinateLeft() const { return TheStructure.Common.SourceX1Coordinate_Left; } inline void setSourceY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.SourceY1Coordinate_Top = value; } - inline uint32_t getSourceY1CoordinateTop(void) const { + inline uint32_t getSourceY1CoordinateTop() const { return TheStructure.Common.SourceY1Coordinate_Top; } inline void setSourcePitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.SourcePitch = value; } - inline uint32_t getSourcePitch(void) const { + inline uint32_t getSourcePitch() const { return TheStructure.Common.SourcePitch; } inline void setSourceBaseAddress(const uint64_t value) { TheStructure.Common.SourceBaseAddress = value; } - inline uint64_t getSourceBaseAddress(void) const { + inline uint64_t getSourceBaseAddress() const { return TheStructure.Common.SourceBaseAddress; } } XY_SRC_COPY_BLT; @@ -4348,7 +4348,7 @@ typedef struct tagXY_COLOR_BLT { typedef enum tagDWORD_LENGTH { DWORD_LENGTH_EXCLUDES_DWORD_0_1 = 0x5, } DWORD_LENGTH; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DestTilingEnable = DEST_TILING_ENABLE_TILING_DISABLED_LINEAR_BLIT; TheStructure.Common.Client = CLIENT_2D_PROCESSOR; @@ -4358,7 +4358,7 @@ typedef struct tagXY_COLOR_BLT { TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.RasterOperation = 0xF0; } - static tagXY_COLOR_BLT sInit(void) { + static tagXY_COLOR_BLT sInit() { XY_COLOR_BLT state; state.init(); return state; @@ -4370,86 +4370,86 @@ typedef struct tagXY_COLOR_BLT { inline void setDestTilingEnable(const DEST_TILING_ENABLE value) { TheStructure.Common.DestTilingEnable = value; } - inline DEST_TILING_ENABLE getDestTilingEnable(void) const { + inline DEST_TILING_ENABLE getDestTilingEnable() const { return static_cast(TheStructure.Common.DestTilingEnable); } inline void set32BppByteMask(const _32BPP_BYTE_MASK value) { TheStructure.Common._32BppByteMask = value; } - inline _32BPP_BYTE_MASK get32BppByteMask(void) const { + inline _32BPP_BYTE_MASK get32BppByteMask() const { return static_cast<_32BPP_BYTE_MASK>(TheStructure.Common._32BppByteMask); } inline void setInstructionTargetOpcode(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1fc00000); TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return TheStructure.Common.InstructionTarget_Opcode; } inline void setClient(const CLIENT value) { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } inline void setDestinationPitch(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationPitch = value; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return TheStructure.Common.DestinationPitch; } inline void setRasterOperation(const uint32_t value) { UNRECOVERABLE_IF(value > 0xff0000); TheStructure.Common.RasterOperation = value; } - inline uint32_t getRasterOperation(void) const { + inline uint32_t getRasterOperation() const { return TheStructure.Common.RasterOperation; } inline void setColorDepth(const COLOR_DEPTH value) { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } inline void setClippingEnabled(const CLIPPING_ENABLED value) { TheStructure.Common.ClippingEnabled = value; } - inline CLIPPING_ENABLED getClippingEnabled(void) const { + inline CLIPPING_ENABLED getClippingEnabled() const { return static_cast(TheStructure.Common.ClippingEnabled); } inline void setDestinationX1CoordinateLeft(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return TheStructure.Common.DestinationX1Coordinate_Left; } inline void setDestinationY1CoordinateTop(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return TheStructure.Common.DestinationY1Coordinate_Top; } inline void setDestinationX2CoordinateRight(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return TheStructure.Common.DestinationX2Coordinate_Right; } inline void setDestinationY2CoordinateBottom(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return TheStructure.Common.DestinationY2Coordinate_Bottom; } inline void setDestinationBaseAddress(const uint64_t value) { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return TheStructure.Common.DestinationBaseAddress; } inline void setFillColor(const uint32_t *value) { @@ -4601,7 +4601,7 @@ typedef struct tagMEDIA_SURFACE_STATE { SURFACEBASEADDRESSHIGH_BYTEOFFSET = 0x1c, SURFACEBASEADDRESSHIGH_INDEX = 0x7, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.Rotation = ROTATION_NO_ROTATION_OR_0_DEGREE; TheStructure.Common.PictureStructure = PICTURE_STRUCTURE_FRAME_PICTURE; @@ -4611,7 +4611,7 @@ typedef struct tagMEDIA_SURFACE_STATE { TheStructure.Common.SurfaceFormat = SURFACE_FORMAT_YCRCB_NORMAL; TheStructure.Common.TiledResourceMode = TILED_RESOURCE_MODE_TRMODE_NONE; } - static tagMEDIA_SURFACE_STATE sInit(void) { + static tagMEDIA_SURFACE_STATE sInit() { MEDIA_SURFACE_STATE state; state.init(); return state; @@ -4623,147 +4623,147 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setRotation(const ROTATION value) { TheStructure.Common.Rotation = value; } - inline ROTATION getRotation(void) const { + inline ROTATION getRotation() const { return static_cast(TheStructure.Common.Rotation); } inline void setCrVCbUPixelOffsetVDirection(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetVDirection = value; } - inline uint32_t getCrVCbUPixelOffsetVDirection(void) const { + inline uint32_t getCrVCbUPixelOffsetVDirection() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetVDirection); } inline void setPictureStructure(const PICTURE_STRUCTURE value) { TheStructure.Common.PictureStructure = value; } - inline PICTURE_STRUCTURE getPictureStructure(void) const { + inline PICTURE_STRUCTURE getPictureStructure() const { return static_cast(TheStructure.Common.PictureStructure); } inline void setWidth(const uint32_t value) { TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return (TheStructure.Common.Width + 1); } inline void setHeight(const uint32_t value) { TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return (TheStructure.Common.Height + 1); } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setHalfPitchForChroma(const bool value) { TheStructure.Common.HalfPitchForChroma = value; } - inline bool getHalfPitchForChroma(void) const { + inline bool getHalfPitchForChroma() const { return (TheStructure.Common.HalfPitchForChroma); } inline void setSurfacePitch(const uint32_t value) { TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return (TheStructure.Common.SurfacePitch + 1); } inline void setAddressControl(const ADDRESS_CONTROL value) { TheStructure.Common.AddressControl = value; } - inline ADDRESS_CONTROL getAddressControl(void) const { + inline ADDRESS_CONTROL getAddressControl() const { return static_cast(TheStructure.Common.AddressControl); } inline void setMemoryCompressionEnable(const bool value) { TheStructure.Common.MemoryCompressionEnable = value; } - inline bool getMemoryCompressionEnable(void) const { + inline bool getMemoryCompressionEnable() const { return (TheStructure.Common.MemoryCompressionEnable); } inline void setMemoryCompressionMode(const MEMORY_COMPRESSION_MODE value) { TheStructure.Common.MemoryCompressionMode = value; } - inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode(void) const { + inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode() const { return static_cast(TheStructure.Common.MemoryCompressionMode); } inline void setCrVCbUPixelOffsetVDirectionMsb(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetVDirectionMsb = value; } - inline uint32_t getCrVCbUPixelOffsetVDirectionMsb(void) const { + inline uint32_t getCrVCbUPixelOffsetVDirectionMsb() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetVDirectionMsb); } inline void setCrVCbUPixelOffsetUDirection(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetUDirection = value; } - inline uint32_t getCrVCbUPixelOffsetUDirection(void) const { + inline uint32_t getCrVCbUPixelOffsetUDirection() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetUDirection); } inline void setInterleaveChroma(const bool value) { TheStructure.Common.InterleaveChroma = value; } - inline bool getInterleaveChroma(void) const { + inline bool getInterleaveChroma() const { return (TheStructure.Common.InterleaveChroma); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setYOffsetForUCb(const uint32_t value) { TheStructure.Common.YOffsetForU_Cb = value; } - inline uint32_t getYOffsetForUCb(void) const { + inline uint32_t getYOffsetForUCb() const { return (TheStructure.Common.YOffsetForU_Cb); } inline void setXOffsetForUCb(const uint32_t value) { TheStructure.Common.XOffsetForU_Cb = value; } - inline uint32_t getXOffsetForUCb(void) const { + inline uint32_t getXOffsetForUCb() const { return (TheStructure.Common.XOffsetForU_Cb); } inline void setSurfaceMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_Reserved = value; } - inline uint32_t getSurfaceMemoryObjectControlStateReserved(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_Reserved); } inline void setSurfaceMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables << 1); } inline void setTiledResourceMode(const TILED_RESOURCE_MODE value) { TheStructure.Common.TiledResourceMode = value; } - inline TILED_RESOURCE_MODE getTiledResourceMode(void) const { + inline TILED_RESOURCE_MODE getTiledResourceMode() const { return static_cast(TheStructure.Common.TiledResourceMode); } inline void setVerticalLineStrideOffset(const uint32_t value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline uint32_t getVerticalLineStrideOffset(void) const { + inline uint32_t getVerticalLineStrideOffset() const { return (TheStructure.Common.VerticalLineStrideOffset); } inline void setVerticalLineStride(const uint32_t value) { TheStructure.Common.VerticalLineStride = value; } - inline uint32_t getVerticalLineStride(void) const { + inline uint32_t getVerticalLineStride() const { return (TheStructure.Common.VerticalLineStride); } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddressLow = static_cast(value & 0xffffffff); TheStructure.Common.SurfaceBaseAddressHigh = (value >> 32) & 0xffffffff; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return (TheStructure.Common.SurfaceBaseAddressLow | static_cast(TheStructure.Common.SurfaceBaseAddressHigh) << 32); } inline void setSurfaceBaseAddressHigh(const uint32_t value) { TheStructure.Common.SurfaceBaseAddressHigh = value; } - inline uint32_t getSurfaceBaseAddressHigh(void) const { + inline uint32_t getSurfaceBaseAddressHigh() const { return (TheStructure.Common.SurfaceBaseAddressHigh); } typedef enum tagYOFFSET { @@ -4773,7 +4773,7 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setYOffset(const uint32_t value) { TheStructure.SurfaceFormatIsOneOfPlanarFormats.YOffset = value >> YOFFSET_BIT_SHIFT; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return (TheStructure.SurfaceFormatIsOneOfPlanarFormats.YOffset << YOFFSET_BIT_SHIFT); } typedef enum tagXOFFSET { @@ -4783,19 +4783,19 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setXOffset(const uint32_t value) { TheStructure.SurfaceFormatIsOneOfPlanarFormats.XOffset = value >> XOFFSET_BIT_SHIFT; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return (TheStructure.SurfaceFormatIsOneOfPlanarFormats.XOffset << XOFFSET_BIT_SHIFT); } inline void setYOffsetForVCr(const uint32_t value) { TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr = value; } - inline uint32_t getYOffsetForVCr(void) const { + inline uint32_t getYOffsetForVCr() const { return (TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr); } inline void setXOffsetForVCr(const uint32_t value) { TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr = value; } - inline uint32_t getXOffsetForVCr(void) const { + inline uint32_t getXOffsetForVCr() const { return (TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr); } } MEDIA_SURFACE_STATE; @@ -4873,7 +4873,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.CompareOperation = COMPARE_OPERATION_SAD_GREATER_THAN_SDD; @@ -4882,7 +4882,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_SEMAPHORE_WAIT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_SEMAPHORE_WAIT sInit(void) { + static tagMI_SEMAPHORE_WAIT sInit() { MI_SEMAPHORE_WAIT state; state.init(); return state; @@ -4894,25 +4894,25 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setCompareOperation(const COMPARE_OPERATION value) { TheStructure.Common.CompareOperation = value; } - inline COMPARE_OPERATION getCompareOperation(void) const { + inline COMPARE_OPERATION getCompareOperation() const { return static_cast(TheStructure.Common.CompareOperation); } inline void setWaitMode(const WAIT_MODE value) { TheStructure.Common.WaitMode = value; } - inline WAIT_MODE getWaitMode(void) const { + inline WAIT_MODE getWaitMode() const { return static_cast(TheStructure.Common.WaitMode); } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } inline void setSemaphoreDataDword(const uint32_t value) { TheStructure.Common.SemaphoreDataDword = value; } - inline uint32_t getSemaphoreDataDword(void) const { + inline uint32_t getSemaphoreDataDword() const { return (TheStructure.Common.SemaphoreDataDword); } typedef enum tagSEMAPHOREADDRESS_GRAPHICSADDRESS { @@ -4922,7 +4922,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setSemaphoreGraphicsAddress(const uint64_t value) { TheStructure.Common.SemaphoreAddress_Graphicsaddress = value >> SEMAPHOREADDRESS_GRAPHICSADDRESS_BIT_SHIFT; } - inline uint64_t getSemaphoreGraphicsAddress(void) const { + inline uint64_t getSemaphoreGraphicsAddress() const { return (TheStructure.Common.SemaphoreAddress_Graphicsaddress << SEMAPHOREADDRESS_GRAPHICSADDRESS_BIT_SHIFT); } typedef enum tagSEMAPHOREADDRESS_RESERVED { @@ -4932,7 +4932,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setSemaphoreAddressReserved(const uint64_t value) { TheStructure.Common.SemaphoreAddress_Reserved = value >> SEMAPHOREADDRESS_RESERVED_BIT_SHIFT; } - inline uint64_t getSemaphoreAddressReserved(void) const { + inline uint64_t getSemaphoreAddressReserved() const { return (TheStructure.Common.SemaphoreAddress_Reserved << SEMAPHOREADDRESS_RESERVED_BIT_SHIFT); } } MI_SEMAPHORE_WAIT; @@ -4966,13 +4966,13 @@ typedef struct tagMI_STORE_DATA_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_STORE_DWORD; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_DATA_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_DATA_IMM sInit(void) { + static tagMI_STORE_DATA_IMM sInit() { MI_STORE_DATA_IMM state; state.init(); return state; @@ -4984,25 +4984,25 @@ typedef struct tagMI_STORE_DATA_IMM { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setStoreQword(const bool value) { TheStructure.Common.StoreQword = value; } - inline bool getStoreQword(void) const { + inline bool getStoreQword() const { return (TheStructure.Common.StoreQword); } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } inline void setCoreModeEnable(const uint64_t value) { TheStructure.Common.CoreModeEnable = value; } - inline uint64_t getCoreModeEnable(void) const { + inline uint64_t getCoreModeEnable() const { return (TheStructure.Common.CoreModeEnable); } typedef enum tagADDRESS_GRAPHICSADDRESS47_2 { @@ -5012,7 +5012,7 @@ typedef struct tagMI_STORE_DATA_IMM { inline void setAddress(const uint64_t value) { TheStructure.Common.Address_Graphicsaddress47_2 = value >> ADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT; } - inline uint64_t getAddress(void) const { + inline uint64_t getAddress() const { return (TheStructure.Common.Address_Graphicsaddress47_2 << ADDRESS_GRAPHICSADDRESS47_2_BIT_SHIFT); } typedef enum tagADDRESS_RESERVED { @@ -5022,19 +5022,19 @@ typedef struct tagMI_STORE_DATA_IMM { inline void setAddressReserved(const uint64_t value) { TheStructure.Common.Address_Reserved = value >> ADDRESS_RESERVED_BIT_SHIFT; } - inline uint64_t getAddressReserved(void) const { + inline uint64_t getAddressReserved() const { return (TheStructure.Common.Address_Reserved << ADDRESS_RESERVED_BIT_SHIFT); } inline void setDataDword0(const uint32_t value) { TheStructure.Common.DataDword0 = value; } - inline uint32_t getDataDword0(void) const { + inline uint32_t getDataDword0() const { return (TheStructure.Common.DataDword0); } inline void setDataDword1(const uint32_t value) { TheStructure.Common.DataDword1 = value; } - inline uint32_t getDataDword1(void) const { + inline uint32_t getDataDword1() const { return (TheStructure.Common.DataDword1); } } MI_STORE_DATA_IMM; @@ -5054,14 +5054,14 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { } Common; uint32_t RawData[4]; } TheStructure; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.BorderColorRed = 0.0; TheStructure.Common.BorderColorGreen = 0.0; TheStructure.Common.BorderColorBlue = 0.0; TheStructure.Common.BorderColorAlpha = 0.0; } - static tagSAMPLER_BORDER_COLOR_STATE sInit(void) { + static tagSAMPLER_BORDER_COLOR_STATE sInit() { SAMPLER_BORDER_COLOR_STATE state; state.init(); return state; @@ -5073,25 +5073,25 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { inline void setBorderColorRed(const float value) { TheStructure.Common.BorderColorRed = value; } - inline float getBorderColorRed(void) const { + inline float getBorderColorRed() const { return TheStructure.Common.BorderColorRed; } inline void setBorderColorGreen(const float value) { TheStructure.Common.BorderColorGreen = value; } - inline float getBorderColorGreen(void) const { + inline float getBorderColorGreen() const { return TheStructure.Common.BorderColorGreen; } inline void setBorderColorBlue(const float value) { TheStructure.Common.BorderColorBlue = value; } - inline float getBorderColorBlue(void) const { + inline float getBorderColorBlue() const { return TheStructure.Common.BorderColorBlue; } inline void setBorderColorAlpha(const float value) { TheStructure.Common.BorderColorAlpha = value; } - inline float getBorderColorAlpha(void) const { + inline float getBorderColorAlpha() const { return TheStructure.Common.BorderColorAlpha; } } SAMPLER_BORDER_COLOR_STATE; diff --git a/shared/source/generated/xe_hp_core/hw_cmds_generated_xe_hp_core.inl b/shared/source/generated/xe_hp_core/hw_cmds_generated_xe_hp_core.inl index 422eb3df23..32133c8da3 100644 --- a/shared/source/generated/xe_hp_core/hw_cmds_generated_xe_hp_core.inl +++ b/shared/source/generated/xe_hp_core/hw_cmds_generated_xe_hp_core.inl @@ -19,10 +19,10 @@ typedef struct tagBINDING_TABLE_STATE { SURFACESTATEPOINTER_BYTEOFFSET = 0x0, SURFACESTATEPOINTER_INDEX = 0x0, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); } - static tagBINDING_TABLE_STATE sInit(void) { + static tagBINDING_TABLE_STATE sInit() { BINDING_TABLE_STATE state; state.init(); return state; @@ -43,7 +43,7 @@ typedef struct tagBINDING_TABLE_STATE { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SurfaceStatePointer = (uint32_t)value >> SURFACESTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSurfaceStatePointer(void) const { + inline uint32_t getSurfaceStatePointer() const { return (TheStructure.Common.SurfaceStatePointer << SURFACESTATEPOINTER_BIT_SHIFT); } } BINDING_TABLE_STATE; @@ -191,7 +191,7 @@ typedef struct tagMEDIA_SURFACE_STATE { SURFACEBASEADDRESSHIGH_BYTEOFFSET = 0x1c, SURFACEBASEADDRESSHIGH_INDEX = 0x7, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.Rotation = ROTATION_NO_ROTATION_OR_0_DEGREE; TheStructure.Common.PictureStructure = PICTURE_STRUCTURE_FRAME_PICTURE; @@ -201,7 +201,7 @@ typedef struct tagMEDIA_SURFACE_STATE { TheStructure.Common.SurfaceFormat = SURFACE_FORMAT_YCRCB_NORMAL; TheStructure.Common.TiledResourceMode = TILED_RESOURCE_MODE_TRMODE_NONE; } - static tagMEDIA_SURFACE_STATE sInit(void) { + static tagMEDIA_SURFACE_STATE sInit() { MEDIA_SURFACE_STATE state; state.init(); return state; @@ -213,153 +213,153 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setRotation(const ROTATION value) { TheStructure.Common.Rotation = value; } - inline ROTATION getRotation(void) const { + inline ROTATION getRotation() const { return static_cast(TheStructure.Common.Rotation); } inline void setCrVCbUPixelOffsetVDirection(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetVDirection = value; } - inline uint32_t getCrVCbUPixelOffsetVDirection(void) const { + inline uint32_t getCrVCbUPixelOffsetVDirection() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetVDirection); } inline void setPictureStructure(const PICTURE_STRUCTURE value) { TheStructure.Common.PictureStructure = value; } - inline PICTURE_STRUCTURE getPictureStructure(void) const { + inline PICTURE_STRUCTURE getPictureStructure() const { return static_cast(TheStructure.Common.PictureStructure); } inline void setWidth(const uint32_t value) { TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return (TheStructure.Common.Width + 1); } inline void setHeight(const uint32_t value) { TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return (TheStructure.Common.Height + 1); } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setHalfPitchForChroma(const bool value) { TheStructure.Common.HalfPitchForChroma = value; } - inline bool getHalfPitchForChroma(void) const { + inline bool getHalfPitchForChroma() const { return (TheStructure.Common.HalfPitchForChroma); } inline void setSurfacePitch(const uint32_t value) { TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return (TheStructure.Common.SurfacePitch + 1); } inline void setAddressControl(const ADDRESS_CONTROL value) { TheStructure.Common.AddressControl = value; } - inline ADDRESS_CONTROL getAddressControl(void) const { + inline ADDRESS_CONTROL getAddressControl() const { return static_cast(TheStructure.Common.AddressControl); } inline void setMemoryCompressionEnable(const bool value) { TheStructure.Common.MemoryCompressionEnable = value; } - inline bool getMemoryCompressionEnable(void) const { + inline bool getMemoryCompressionEnable() const { return (TheStructure.Common.MemoryCompressionEnable); } inline void setMemoryCompressionMode(const MEMORY_COMPRESSION_MODE value) { TheStructure.Common.MemoryCompressionMode = value; } - inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode(void) const { + inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode() const { return static_cast(TheStructure.Common.MemoryCompressionMode); } inline void setCrVCbUPixelOffsetVDirectionMsb(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetVDirectionMsb = value; } - inline uint32_t getCrVCbUPixelOffsetVDirectionMsb(void) const { + inline uint32_t getCrVCbUPixelOffsetVDirectionMsb() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetVDirectionMsb); } inline void setCrVCbUPixelOffsetUDirection(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetUDirection = value; } - inline uint32_t getCrVCbUPixelOffsetUDirection(void) const { + inline uint32_t getCrVCbUPixelOffsetUDirection() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetUDirection); } inline void setInterleaveChroma(const bool value) { TheStructure.Common.InterleaveChroma = value; } - inline bool getInterleaveChroma(void) const { + inline bool getInterleaveChroma() const { return (TheStructure.Common.InterleaveChroma); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setYOffsetForUCb(const uint32_t value) { TheStructure.Common.YOffsetForU_Cb = value; } - inline uint32_t getYOffsetForUCb(void) const { + inline uint32_t getYOffsetForUCb() const { return (TheStructure.Common.YOffsetForU_Cb); } inline void setXOffsetForUCb(const uint32_t value) { TheStructure.Common.XOffsetForU_Cb = value; } - inline uint32_t getXOffsetForUCb(void) const { + inline uint32_t getXOffsetForUCb() const { return (TheStructure.Common.XOffsetForU_Cb); } inline void setSurfaceMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_Reserved = value; } - inline uint32_t getSurfaceMemoryObjectControlStateReserved(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_Reserved); } inline void setSurfaceMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables << 1); } inline void setTiledResourceMode(const TILED_RESOURCE_MODE value) { TheStructure.Common.TiledResourceMode = value; } - inline TILED_RESOURCE_MODE getTiledResourceMode(void) const { + inline TILED_RESOURCE_MODE getTiledResourceMode() const { return static_cast(TheStructure.Common.TiledResourceMode); } inline void setDepth(const uint32_t value) { TheStructure.Common.Depth = value; } - inline uint32_t getDepth(void) const { + inline uint32_t getDepth() const { return (TheStructure.Common.Depth); } inline void setVerticalLineStrideOffset(const uint32_t value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline uint32_t getVerticalLineStrideOffset(void) const { + inline uint32_t getVerticalLineStrideOffset() const { return (TheStructure.Common.VerticalLineStrideOffset); } inline void setVerticalLineStride(const uint32_t value) { TheStructure.Common.VerticalLineStride = value; } - inline uint32_t getVerticalLineStride(void) const { + inline uint32_t getVerticalLineStride() const { return (TheStructure.Common.VerticalLineStride); } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddressLow = static_cast(value & 0xffffffff); TheStructure.Common.SurfaceBaseAddressHigh = (value >> 32) & 0xffffffff; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return (TheStructure.Common.SurfaceBaseAddressLow | static_cast(TheStructure.Common.SurfaceBaseAddressHigh) << 32); } inline void setSurfaceBaseAddressHigh(const uint32_t value) { TheStructure.Common.SurfaceBaseAddressHigh = value; } - inline uint32_t getSurfaceBaseAddressHigh(void) const { + inline uint32_t getSurfaceBaseAddressHigh() const { return (TheStructure.Common.SurfaceBaseAddressHigh); } typedef enum tagYOFFSET { @@ -369,7 +369,7 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setYOffset(const uint32_t value) { TheStructure.SurfaceFormatIsOneOfPlanarFormats.YOffset = value >> YOFFSET_BIT_SHIFT; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return (TheStructure.SurfaceFormatIsOneOfPlanarFormats.YOffset << YOFFSET_BIT_SHIFT); } typedef enum tagXOFFSET { @@ -379,19 +379,19 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setXOffset(const uint32_t value) { TheStructure.SurfaceFormatIsOneOfPlanarFormats.XOffset = value >> XOFFSET_BIT_SHIFT; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return (TheStructure.SurfaceFormatIsOneOfPlanarFormats.XOffset << XOFFSET_BIT_SHIFT); } inline void setYOffsetForVCr(const uint32_t value) { TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr = value; } - inline uint32_t getYOffsetForVCr(void) const { + inline uint32_t getYOffsetForVCr() const { return (TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr); } inline void setXOffsetForVCr(const uint32_t value) { TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr = value; } - inline uint32_t getXOffsetForVCr(void) const { + inline uint32_t getXOffsetForVCr() const { return (TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr); } } MEDIA_SURFACE_STATE; @@ -511,7 +511,7 @@ typedef struct tagPIPE_CONTROL { TBIMR_FORCE_BATCH_CLOSURE_NO_BATCH_CLOSURE = 0x0, TBIMR_FORCE_BATCH_CLOSURE_CLOSE_BATCH = 0x1, } TBIMR_FORCE_BATCH_CLOSURE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_PIPE_CONTROL; @@ -524,7 +524,7 @@ typedef struct tagPIPE_CONTROL { TheStructure.Common.TbimrForceBatchClosure = TBIMR_FORCE_BATCH_CLOSURE_NO_BATCH_CLOSURE; TheStructure.Common.CommandStreamerStallEnable = 1; } - static tagPIPE_CONTROL sInit(void) { + static tagPIPE_CONTROL sInit() { PIPE_CONTROL state; state.init(); return state; @@ -536,205 +536,205 @@ typedef struct tagPIPE_CONTROL { inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return TheStructure.Common.PredicateEnable; } inline void setHdcPipelineFlush(const bool value) { TheStructure.Common.HdcPipelineFlush = value; } - inline bool getHdcPipelineFlush(void) const { + inline bool getHdcPipelineFlush() const { return TheStructure.Common.HdcPipelineFlush; } inline void setCompressionControlSurfaceCcsFlush(const bool value) { TheStructure.Common.CompressionControlSurfaceCcsFlush = value; } - inline bool getCompressionControlSurfaceCcsFlush(void) const { + inline bool getCompressionControlSurfaceCcsFlush() const { return TheStructure.Common.CompressionControlSurfaceCcsFlush; } inline void setWorkloadPartitionIdOffsetEnable(const bool value) { TheStructure.Common.WorkloadPartitionIdOffsetEnable = value; } - inline bool getWorkloadPartitionIdOffsetEnable(void) const { + inline bool getWorkloadPartitionIdOffsetEnable() const { return TheStructure.Common.WorkloadPartitionIdOffsetEnable; } inline void setDepthCacheFlushEnable(const bool value) { TheStructure.Common.DepthCacheFlushEnable = value; } - inline bool getDepthCacheFlushEnable(void) const { + inline bool getDepthCacheFlushEnable() const { return TheStructure.Common.DepthCacheFlushEnable; } inline void setStallAtPixelScoreboard(const bool value) { TheStructure.Common.StallAtPixelScoreboard = value; } - inline bool getStallAtPixelScoreboard(void) const { + inline bool getStallAtPixelScoreboard() const { return TheStructure.Common.StallAtPixelScoreboard; } inline void setStateCacheInvalidationEnable(const bool value) { TheStructure.Common.StateCacheInvalidationEnable = value; } - inline bool getStateCacheInvalidationEnable(void) const { + inline bool getStateCacheInvalidationEnable() const { return TheStructure.Common.StateCacheInvalidationEnable; } inline void setConstantCacheInvalidationEnable(const bool value) { TheStructure.Common.ConstantCacheInvalidationEnable = value; } - inline bool getConstantCacheInvalidationEnable(void) const { + inline bool getConstantCacheInvalidationEnable() const { return TheStructure.Common.ConstantCacheInvalidationEnable; } inline void setVfCacheInvalidationEnable(const bool value) { TheStructure.Common.VfCacheInvalidationEnable = value; } - inline bool getVfCacheInvalidationEnable(void) const { + inline bool getVfCacheInvalidationEnable() const { return TheStructure.Common.VfCacheInvalidationEnable; } inline void setDcFlushEnable(const bool value) { TheStructure.Common.DcFlushEnable = value; } - inline bool getDcFlushEnable(void) const { + inline bool getDcFlushEnable() const { return TheStructure.Common.DcFlushEnable; } inline void setProtectedMemoryApplicationId(const bool value) { TheStructure.Common.ProtectedMemoryApplicationId = value; } - inline bool getProtectedMemoryApplicationId(void) const { + inline bool getProtectedMemoryApplicationId() const { return TheStructure.Common.ProtectedMemoryApplicationId; } inline void setPipeControlFlushEnable(const bool value) { TheStructure.Common.PipeControlFlushEnable = value; } - inline bool getPipeControlFlushEnable(void) const { + inline bool getPipeControlFlushEnable() const { return TheStructure.Common.PipeControlFlushEnable; } inline void setNotifyEnable(const bool value) { TheStructure.Common.NotifyEnable = value; } - inline bool getNotifyEnable(void) const { + inline bool getNotifyEnable() const { return TheStructure.Common.NotifyEnable; } inline void setIndirectStatePointersDisable(const bool value) { TheStructure.Common.IndirectStatePointersDisable = value; } - inline bool getIndirectStatePointersDisable(void) const { + inline bool getIndirectStatePointersDisable() const { return TheStructure.Common.IndirectStatePointersDisable; } inline void setTextureCacheInvalidationEnable(const bool value) { TheStructure.Common.TextureCacheInvalidationEnable = value; } - inline bool getTextureCacheInvalidationEnable(void) const { + inline bool getTextureCacheInvalidationEnable() const { return TheStructure.Common.TextureCacheInvalidationEnable; } inline void setInstructionCacheInvalidateEnable(const bool value) { TheStructure.Common.InstructionCacheInvalidateEnable = value; } - inline bool getInstructionCacheInvalidateEnable(void) const { + inline bool getInstructionCacheInvalidateEnable() const { return TheStructure.Common.InstructionCacheInvalidateEnable; } inline void setRenderTargetCacheFlushEnable(const bool value) { TheStructure.Common.RenderTargetCacheFlushEnable = value; } - inline bool getRenderTargetCacheFlushEnable(void) const { + inline bool getRenderTargetCacheFlushEnable() const { return TheStructure.Common.RenderTargetCacheFlushEnable; } inline void setDepthStallEnable(const bool value) { TheStructure.Common.DepthStallEnable = value; } - inline bool getDepthStallEnable(void) const { + inline bool getDepthStallEnable() const { return TheStructure.Common.DepthStallEnable; } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setGenericMediaStateClear(const bool value) { TheStructure.Common.GenericMediaStateClear = value; } - inline bool getGenericMediaStateClear(void) const { + inline bool getGenericMediaStateClear() const { return TheStructure.Common.GenericMediaStateClear; } inline void setPssStallSyncEnable(const bool value) { TheStructure.Common.PssStallSyncEnable = value; } - inline bool getPssStallSyncEnable(void) const { + inline bool getPssStallSyncEnable() const { return TheStructure.Common.PssStallSyncEnable; } inline void setTlbInvalidate(const bool value) { TheStructure.Common.TlbInvalidate = value; } - inline bool getTlbInvalidate(void) const { + inline bool getTlbInvalidate() const { return TheStructure.Common.TlbInvalidate; } inline void setDepthStallSyncEnable(const bool value) { TheStructure.Common.DepthStallSyncEnable = value; } - inline bool getDepthStallSyncEnable(void) const { + inline bool getDepthStallSyncEnable() const { return TheStructure.Common.DepthStallSyncEnable; } inline void setCommandStreamerStallEnable(const uint32_t value) { TheStructure.Common.CommandStreamerStallEnable = value; } - inline uint32_t getCommandStreamerStallEnable(void) const { + inline uint32_t getCommandStreamerStallEnable() const { return TheStructure.Common.CommandStreamerStallEnable; } inline void setStoreDataIndex(const bool value) { TheStructure.Common.StoreDataIndex = value; } - inline bool getStoreDataIndex(void) const { + inline bool getStoreDataIndex() const { return TheStructure.Common.StoreDataIndex; } inline void setProtectedMemoryEnable(const bool value) { TheStructure.Common.ProtectedMemoryEnable = value; } - inline bool getProtectedMemoryEnable(void) const { + inline bool getProtectedMemoryEnable() const { return TheStructure.Common.ProtectedMemoryEnable; } inline void setLriPostSyncOperation(const LRI_POST_SYNC_OPERATION value) { TheStructure.Common.LriPostSyncOperation = value; } - inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation(void) const { + inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation() const { return static_cast(TheStructure.Common.LriPostSyncOperation); } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } inline void setAmfsFlushEnable(const bool value) { TheStructure.Common.AmfsFlushEnable = value; } - inline bool getAmfsFlushEnable(void) const { + inline bool getAmfsFlushEnable() const { return TheStructure.Common.AmfsFlushEnable; } inline void setFlushLlc(const bool value) { TheStructure.Common.FlushLlc = value; } - inline bool getFlushLlc(void) const { + inline bool getFlushLlc() const { return TheStructure.Common.FlushLlc; } inline void setProtectedMemoryDisable(const bool value) { TheStructure.Common.ProtectedMemoryDisable = value; } - inline bool getProtectedMemoryDisable(void) const { + inline bool getProtectedMemoryDisable() const { return TheStructure.Common.ProtectedMemoryDisable; } inline void setTileCacheFlushEnable(const bool value) { TheStructure.Common.TileCacheFlushEnable = value; } - inline bool getTileCacheFlushEnable(void) const { + inline bool getTileCacheFlushEnable() const { return TheStructure.Common.TileCacheFlushEnable; } inline void setL3FabricFlush(const bool value) { TheStructure.Common.L3FabricFlush = value; } - inline bool getL3FabricFlush(void) const { + inline bool getL3FabricFlush() const { return TheStructure.Common.L3FabricFlush; } inline void setTbimrForceBatchClosure(const TBIMR_FORCE_BATCH_CLOSURE value) { TheStructure.Common.TbimrForceBatchClosure = value; } - inline TBIMR_FORCE_BATCH_CLOSURE getTbimrForceBatchClosure(void) const { + inline TBIMR_FORCE_BATCH_CLOSURE getTbimrForceBatchClosure() const { return static_cast(TheStructure.Common.TbimrForceBatchClosure); } typedef enum tagADDRESS { @@ -745,19 +745,19 @@ typedef struct tagPIPE_CONTROL { UNRECOVERABLE_IF(value > 0xfffffffc); TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint32_t getAddress(void) const { + inline uint32_t getAddress() const { return TheStructure.Common.Address << ADDRESS_BIT_SHIFT; } inline void setAddressHigh(const uint32_t value) { TheStructure.Common.AddressHigh = value; } - inline uint32_t getAddressHigh(void) const { + inline uint32_t getAddressHigh() const { return TheStructure.Common.AddressHigh; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } } PIPE_CONTROL; @@ -823,7 +823,7 @@ typedef struct tagMI_ATOMIC { ATOMIC_8B_INCREMENT = 0x25, ATOMIC_8B_DECREMENT = 0x26, } ATOMIC_OPCODES; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_INLINE_DATA_0; TheStructure.Common.DataSize = DATA_SIZE_DWORD; @@ -833,7 +833,7 @@ typedef struct tagMI_ATOMIC { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_ATOMIC; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_ATOMIC sInit(void) { + static tagMI_ATOMIC sInit() { MI_ATOMIC state; state.init(); return state; @@ -845,55 +845,55 @@ typedef struct tagMI_ATOMIC { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setAtomicOpcode(const uint32_t value) { DEBUG_BREAK_IF(value > 0xff00); TheStructure.Common.AtomicOpcode = value; } - inline uint32_t getAtomicOpcode(void) const { + inline uint32_t getAtomicOpcode() const { return TheStructure.Common.AtomicOpcode; } inline void setReturnDataControl(const uint32_t value) { TheStructure.Common.ReturnDataControl = value; } - inline uint32_t getReturnDataControl(void) const { + inline uint32_t getReturnDataControl() const { return TheStructure.Common.ReturnDataControl; } inline void setCsStall(const uint32_t value) { TheStructure.Common.CsStall = value; } - inline uint32_t getCsStall(void) const { return TheStructure.Common.CsStall; } + inline uint32_t getCsStall() const { return TheStructure.Common.CsStall; } inline void setInlineData(const uint32_t value) { TheStructure.Common.InlineData = value; } - inline uint32_t getInlineData(void) const { + inline uint32_t getInlineData() const { return TheStructure.Common.InlineData; } inline void setDataSize(const DATA_SIZE value) { TheStructure.Common.DataSize = value; } - inline DATA_SIZE getDataSize(void) const { + inline DATA_SIZE getDataSize() const { return static_cast(TheStructure.Common.DataSize); } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast( TheStructure.Common.PostSyncOperation); } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } inline void setWorkloadPartitionIdOffsetEnable(const bool value) { TheStructure.Common.WorkloadPartitionIdOffsetEnable = value; } - inline bool getWorkloadPartitionIdOffsetEnable(void) const { + inline bool getWorkloadPartitionIdOffsetEnable() const { return TheStructure.Common.WorkloadPartitionIdOffsetEnable; } typedef enum tagMEMORYADDRESS { @@ -904,61 +904,61 @@ typedef struct tagMI_ATOMIC { DEBUG_BREAK_IF(value > 0xfffffffcL); TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint32_t getMemoryAddress(void) const { + inline uint32_t getMemoryAddress() const { return TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT; } inline void setMemoryAddressHigh(const uint32_t value) { TheStructure.Common.MemoryAddressHigh = value; } - inline uint32_t getMemoryAddressHigh(void) const { + inline uint32_t getMemoryAddressHigh() const { return TheStructure.Common.MemoryAddressHigh; } inline void setOperand1DataDword0(const uint32_t value) { TheStructure.Common.Operand1DataDword0 = value; } - inline uint32_t getOperand1DataDword0(void) const { + inline uint32_t getOperand1DataDword0() const { return TheStructure.Common.Operand1DataDword0; } inline void setOperand2DataDword0(const uint32_t value) { TheStructure.Common.Operand2DataDword0 = value; } - inline uint32_t getOperand2DataDword0(void) const { + inline uint32_t getOperand2DataDword0() const { return TheStructure.Common.Operand2DataDword0; } inline void setOperand1DataDword1(const uint32_t value) { TheStructure.Common.Operand1DataDword1 = value; } - inline uint32_t getOperand1DataDword1(void) const { + inline uint32_t getOperand1DataDword1() const { return TheStructure.Common.Operand1DataDword1; } inline void setOperand2DataDword1(const uint32_t value) { TheStructure.Common.Operand2DataDword1 = value; } - inline uint32_t getOperand2DataDword1(void) const { + inline uint32_t getOperand2DataDword1() const { return TheStructure.Common.Operand2DataDword1; } inline void setOperand1DataDword2(const uint32_t value) { TheStructure.Common.Operand1DataDword2 = value; } - inline uint32_t getOperand1DataDword2(void) const { + inline uint32_t getOperand1DataDword2() const { return TheStructure.Common.Operand1DataDword2; } inline void setOperand2DataDword2(const uint32_t value) { TheStructure.Common.Operand2DataDword2 = value; } - inline uint32_t getOperand2DataDword2(void) const { + inline uint32_t getOperand2DataDword2() const { return TheStructure.Common.Operand2DataDword2; } inline void setOperand1DataDword3(const uint32_t value) { TheStructure.Common.Operand1DataDword3 = value; } - inline uint32_t getOperand1DataDword3(void) const { + inline uint32_t getOperand1DataDword3() const { return TheStructure.Common.Operand1DataDword3; } inline void setOperand2DataDword3(const uint32_t value) { TheStructure.Common.Operand2DataDword3 = value; } - inline uint32_t getOperand2DataDword3(void) const { + inline uint32_t getOperand2DataDword3() const { return TheStructure.Common.Operand2DataDword3; } } MI_ATOMIC; @@ -980,12 +980,12 @@ typedef struct tagMI_BATCH_BUFFER_END { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_BATCH_BUFFER_END; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_BATCH_BUFFER_END sInit(void) { + static tagMI_BATCH_BUFFER_END sInit() { MI_BATCH_BUFFER_END state; state.init(); return state; @@ -997,7 +997,7 @@ typedef struct tagMI_BATCH_BUFFER_END { inline void setEndContext(const bool value) { TheStructure.Common.EndContext = value; } - inline bool getEndContext(void) const { + inline bool getEndContext() const { return (TheStructure.Common.EndContext); } } MI_BATCH_BUFFER_END; @@ -1031,13 +1031,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_IMM sInit(void) { + static tagMI_LOAD_REGISTER_IMM sInit() { MI_LOAD_REGISTER_IMM state; state.init(); return state; @@ -1049,13 +1049,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { inline void setByteWriteDisables(const uint32_t value) { TheStructure.Common.ByteWriteDisables = value; } - inline uint32_t getByteWriteDisables(void) const { + inline uint32_t getByteWriteDisables() const { return (TheStructure.Common.ByteWriteDisables); } inline void setAddCsMmioStartOffset(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline uint32_t getAddCsMmioStartOffset(void) const { + inline uint32_t getAddCsMmioStartOffset() const { return (TheStructure.Common.AddCsMmioStartOffset); } typedef enum tagREGISTEROFFSET { @@ -1065,19 +1065,19 @@ typedef struct tagMI_LOAD_REGISTER_IMM { inline void setRegisterOffset(const uint32_t value) { TheStructure.Common.RegisterOffset = value >> REGISTEROFFSET_BIT_SHIFT; } - inline uint32_t getRegisterOffset(void) const { + inline uint32_t getRegisterOffset() const { return (TheStructure.Common.RegisterOffset << REGISTEROFFSET_BIT_SHIFT); } inline void setDataDword(const uint32_t value) { TheStructure.Common.DataDword = value; } - inline uint32_t getDataDword(void) const { + inline uint32_t getDataDword() const { return (TheStructure.Common.DataDword); } inline void setMmioRemapEnable(const bool value) { TheStructure.Common.MmioRemapEnable = value; } - inline bool getMmioRemapEnable(void) const { + inline bool getMmioRemapEnable() const { return TheStructure.Common.MmioRemapEnable; } } MI_LOAD_REGISTER_IMM; @@ -1099,12 +1099,12 @@ typedef struct tagMI_NOOP { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_NOOP; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_NOOP sInit(void) { + static tagMI_NOOP sInit() { MI_NOOP state; state.init(); return state; @@ -1116,13 +1116,13 @@ typedef struct tagMI_NOOP { inline void setIdentificationNumber(const uint32_t value) { TheStructure.Common.IdentificationNumber = value; } - inline uint32_t getIdentificationNumber(void) const { + inline uint32_t getIdentificationNumber() const { return (TheStructure.Common.IdentificationNumber); } inline void setIdentificationNumberRegisterWriteEnable(const bool value) { TheStructure.Common.IdentificationNumberRegisterWriteEnable = value; } - inline bool getIdentificationNumberRegisterWriteEnable(void) const { + inline bool getIdentificationNumberRegisterWriteEnable() const { return (TheStructure.Common.IdentificationNumberRegisterWriteEnable); } } MI_NOOP; @@ -1893,7 +1893,7 @@ typedef struct tagRENDER_SURFACE_STATE { typedef enum tagMEMORY_COMPRESSION_MODE { MEMORY_COMPRESSION_MODE_HORIZONTAL = 0x0, } MEMORY_COMPRESSION_MODE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MediaBoundaryPixelMode = MEDIA_BOUNDARY_PIXEL_MODE_NORMAL_MODE; TheStructure.Common.RenderCacheReadWriteMode = RENDER_CACHE_READ_WRITE_MODE_WRITE_ONLY_CACHE; @@ -1913,7 +1913,7 @@ typedef struct tagRENDER_SURFACE_STATE { TheStructure.Common.DisableSupportForMultiGpuAtomics = 1; TheStructure.Common.DisableSupportForMultiGpuPartialWrites = 1; } - static tagRENDER_SURFACE_STATE sInit(void) { + static tagRENDER_SURFACE_STATE sInit() { RENDER_SURFACE_STATE state; state.init(); return state; @@ -1925,109 +1925,109 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setCubeFaceEnablePositiveZ(const bool value) { TheStructure.Common.CubeFaceEnablePositiveZ = value; } - inline bool getCubeFaceEnablePositiveZ(void) const { + inline bool getCubeFaceEnablePositiveZ() const { return TheStructure.Common.CubeFaceEnablePositiveZ; } inline void setCubeFaceEnableNegativeZ(const bool value) { TheStructure.Common.CubeFaceEnableNegativeZ = value; } - inline bool getCubeFaceEnableNegativeZ(void) const { + inline bool getCubeFaceEnableNegativeZ() const { return TheStructure.Common.CubeFaceEnableNegativeZ; } inline void setCubeFaceEnablePositiveY(const bool value) { TheStructure.Common.CubeFaceEnablePositiveY = value; } - inline bool getCubeFaceEnablePositiveY(void) const { + inline bool getCubeFaceEnablePositiveY() const { return TheStructure.Common.CubeFaceEnablePositiveY; } inline void setCubeFaceEnableNegativeY(const bool value) { TheStructure.Common.CubeFaceEnableNegativeY = value; } - inline bool getCubeFaceEnableNegativeY(void) const { + inline bool getCubeFaceEnableNegativeY() const { return TheStructure.Common.CubeFaceEnableNegativeY; } inline void setCubeFaceEnablePositiveX(const bool value) { TheStructure.Common.CubeFaceEnablePositiveX = value; } - inline bool getCubeFaceEnablePositiveX(void) const { + inline bool getCubeFaceEnablePositiveX() const { return TheStructure.Common.CubeFaceEnablePositiveX; } inline void setCubeFaceEnableNegativeX(const bool value) { TheStructure.Common.CubeFaceEnableNegativeX = value; } - inline bool getCubeFaceEnableNegativeX(void) const { + inline bool getCubeFaceEnableNegativeX() const { return TheStructure.Common.CubeFaceEnableNegativeX; } inline void setMediaBoundaryPixelMode(const MEDIA_BOUNDARY_PIXEL_MODE value) { TheStructure.Common.MediaBoundaryPixelMode = value; } - inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode(void) const { + inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode() const { return static_cast(TheStructure.Common.MediaBoundaryPixelMode); } inline void setRenderCacheReadWriteMode(const RENDER_CACHE_READ_WRITE_MODE value) { TheStructure.Common.RenderCacheReadWriteMode = value; } - inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode(void) const { + inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode() const { return static_cast(TheStructure.Common.RenderCacheReadWriteMode); } inline void setSamplerL2OutOfOrderModeDisable(const bool value) { TheStructure.Common.SamplerL2OutOfOrderModeDisable = value; } - inline bool getSamplerL2OutOfOrderModeDisable(void) const { + inline bool getSamplerL2OutOfOrderModeDisable() const { return TheStructure.Common.SamplerL2OutOfOrderModeDisable; } inline void setVerticalLineStrideOffset(const bool value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline bool getVerticalLineStrideOffset(void) const { + inline bool getVerticalLineStrideOffset() const { return TheStructure.Common.VerticalLineStrideOffset; } inline void setVerticalLineStride(const bool value) { TheStructure.Common.VerticalLineStride = value; } - inline bool getVerticalLineStride(void) const { + inline bool getVerticalLineStride() const { return TheStructure.Common.VerticalLineStride; } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setSurfaceHorizontalAlignment(const SURFACE_HORIZONTAL_ALIGNMENT value) { TheStructure.Common.SurfaceHorizontalAlignment = value; } - inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment(void) const { + inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment() const { return static_cast(TheStructure.Common.SurfaceHorizontalAlignment); } inline void setSurfaceVerticalAlignment(const SURFACE_VERTICAL_ALIGNMENT value) { TheStructure.Common.SurfaceVerticalAlignment = value; } - inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment(void) const { + inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment() const { return static_cast(TheStructure.Common.SurfaceVerticalAlignment); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setAstcEnable(const bool value) { TheStructure.Common.AstcEnable = value; } - inline bool getAstcEnable(void) const { + inline bool getAstcEnable() const { return TheStructure.Common.AstcEnable; } inline void setSurfaceArray(const bool value) { TheStructure.Common.SurfaceArray = value; } - inline bool getSurfaceArray(void) const { + inline bool getSurfaceArray() const { return TheStructure.Common.SurfaceArray; } inline void setSurfaceType(const SURFACE_TYPE value) { TheStructure.Common.SurfaceType = value; } - inline SURFACE_TYPE getSurfaceType(void) const { + inline SURFACE_TYPE getSurfaceType() const { return static_cast(TheStructure.Common.SurfaceType); } typedef enum tagSURFACEQPITCH { @@ -2038,46 +2038,46 @@ typedef struct tagRENDER_SURFACE_STATE { DEBUG_BREAK_IF(value > 0x7fff); TheStructure.Common.SurfaceQpitch = value >> SURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getSurfaceQpitch(void) const { + inline uint32_t getSurfaceQpitch() const { return TheStructure.Common.SurfaceQpitch << SURFACEQPITCH_BIT_SHIFT; } inline void setSampleTapDiscardDisable(const SAMPLE_TAP_DISCARD_DISABLE value) { TheStructure.Common.SampleTapDiscardDisable = value; } - inline SAMPLE_TAP_DISCARD_DISABLE getSampleTapDiscardDisable(void) const { + inline SAMPLE_TAP_DISCARD_DISABLE getSampleTapDiscardDisable() const { return static_cast(TheStructure.Common.SampleTapDiscardDisable); } inline void setDoubleFetchDisable(const bool value) { TheStructure.Common.DoubleFetchDisable = value; } - inline bool getDoubleFetchDisable(void) const { + inline bool getDoubleFetchDisable() const { return TheStructure.Common.DoubleFetchDisable; } inline void setCornerTexelMode(const bool value) { TheStructure.Common.CornerTexelMode = value; } - inline bool getCornerTexelMode(void) const { + inline bool getCornerTexelMode() const { return TheStructure.Common.CornerTexelMode; } inline void setBaseMipLevel(const uint32_t value) { UNRECOVERABLE_IF(value > 0xf80000); TheStructure.Common.BaseMipLevel = value; } - inline uint32_t getBaseMipLevel(void) const { + inline uint32_t getBaseMipLevel() const { return TheStructure.Common.BaseMipLevel; } inline void setMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { DEBUG_BREAK_IF(value > 0x7e000000L); TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); } inline void setMemoryObjectControlState(const uint32_t value) { TheStructure.Common.MemoryObjectControlStateEncryptedData = value; TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = (value >> 1); } - inline uint32_t getMemoryObjectControlState(void) const { + inline uint32_t getMemoryObjectControlState() const { uint32_t mocs = TheStructure.Common.MemoryObjectControlStateEncryptedData; mocs |= (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); return (mocs); @@ -2085,119 +2085,119 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setEnableUnormPathInColorPipe(const bool value) { TheStructure.Common.EnableUnormPathInColorPipe = value; } - inline bool getEnableUnormPathInColorPipe(void) const { + inline bool getEnableUnormPathInColorPipe() const { return TheStructure.Common.EnableUnormPathInColorPipe; } inline void setWidth(const uint32_t value) { UNRECOVERABLE_IF(value > (0x3fff + 1)); TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return TheStructure.Common.Width + 1; } inline void setHeight(const uint32_t value) { UNRECOVERABLE_IF(value > (0x3fff0000 + 1)); TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return TheStructure.Common.Height + 1; } inline void setDepthStencilResource(const bool value) { TheStructure.Common.DepthStencilResource = value; } - inline bool getDepthStencilResource(void) const { + inline bool getDepthStencilResource() const { return TheStructure.Common.DepthStencilResource; } inline void setSurfacePitch(const uint32_t value) { UNRECOVERABLE_IF(value > (0x3ffff + 1)); TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return TheStructure.Common.SurfacePitch + 1; } inline void setNullProbingEnable(const NULL_PROBING_ENABLE value) { TheStructure.Common.NullProbingEnable = value; } - inline NULL_PROBING_ENABLE getNullProbingEnable(void) const { + inline NULL_PROBING_ENABLE getNullProbingEnable() const { return static_cast(TheStructure.Common.NullProbingEnable); } inline void setDepth(const uint32_t value) { UNRECOVERABLE_IF(value > (0xffe00000 + 1)); TheStructure.Common.Depth = value - 1; } - inline uint32_t getDepth(void) const { + inline uint32_t getDepth() const { return TheStructure.Common.Depth + 1; } inline void setMultisamplePositionPaletteIndex(const uint32_t value) { UNRECOVERABLE_IF(value > 0x7); TheStructure.Common.MultisamplePositionPaletteIndex = value; } - inline uint32_t getMultisamplePositionPaletteIndex(void) const { + inline uint32_t getMultisamplePositionPaletteIndex() const { return TheStructure.Common.MultisamplePositionPaletteIndex; } inline void setNumberOfMultisamples(const NUMBER_OF_MULTISAMPLES value) { TheStructure.Common.NumberOfMultisamples = value; } - inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples(void) const { + inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples() const { return static_cast(TheStructure.Common.NumberOfMultisamples); } inline void setMultisampledSurfaceStorageFormat(const MULTISAMPLED_SURFACE_STORAGE_FORMAT value) { TheStructure.Common.MultisampledSurfaceStorageFormat = value; } - inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat(void) const { + inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat() const { return static_cast(TheStructure.Common.MultisampledSurfaceStorageFormat); } inline void setRenderTargetViewExtent(const uint32_t value) { UNRECOVERABLE_IF(value > (0x3ff80 + 1)); TheStructure.Common.RenderTargetViewExtent = value - 1; } - inline uint32_t getRenderTargetViewExtent(void) const { + inline uint32_t getRenderTargetViewExtent() const { return TheStructure.Common.RenderTargetViewExtent + 1; } inline void setMinimumArrayElement(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1ffc0000); TheStructure.Common.MinimumArrayElement = value; } - inline uint32_t getMinimumArrayElement(void) const { + inline uint32_t getMinimumArrayElement() const { return TheStructure.Common.MinimumArrayElement; } inline void setRenderTargetAndSampleUnormRotation(const RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION value) { TheStructure.Common.RenderTargetAndSampleUnormRotation = value; } - inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation(void) const { + inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation() const { return static_cast(TheStructure.Common.RenderTargetAndSampleUnormRotation); } inline void setMipCountLod(const uint32_t value) { UNRECOVERABLE_IF(value > 0xf); TheStructure.Common.MipCountLod = value; } - inline uint32_t getMipCountLod(void) const { + inline uint32_t getMipCountLod() const { return TheStructure.Common.MipCountLod; } inline void setSurfaceMinLod(const uint32_t value) { UNRECOVERABLE_IF(value > 0xf0); TheStructure.Common.SurfaceMinLod = value; } - inline uint32_t getSurfaceMinLod(void) const { + inline uint32_t getSurfaceMinLod() const { return TheStructure.Common.SurfaceMinLod; } inline void setMipTailStartLod(const uint32_t value) { UNRECOVERABLE_IF(value > 0xf00); TheStructure.Common.MipTailStartLod = value; } - inline uint32_t getMipTailStartLod(void) const { + inline uint32_t getMipTailStartLod() const { return TheStructure.Common.MipTailStartLod; } inline void setCoherencyType(const COHERENCY_TYPE value) { TheStructure.Common.CoherencyType = value; } - inline COHERENCY_TYPE getCoherencyType(void) const { + inline COHERENCY_TYPE getCoherencyType() const { return static_cast(TheStructure.Common.CoherencyType); } inline void setEwaDisableForCube(const bool value) { TheStructure.Common.EwaDisableForCube = value; } - inline bool getEwaDisableForCube(void) const { + inline bool getEwaDisableForCube() const { return TheStructure.Common.EwaDisableForCube; } typedef enum tagYOFFSET { @@ -2208,7 +2208,7 @@ typedef struct tagRENDER_SURFACE_STATE { UNRECOVERABLE_IF(value > 0xe00000); TheStructure.Common.YOffset = value >> YOFFSET_BIT_SHIFT; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return TheStructure.Common.YOffset << YOFFSET_BIT_SHIFT; } typedef enum tagXOFFSET { @@ -2219,101 +2219,101 @@ typedef struct tagRENDER_SURFACE_STATE { UNRECOVERABLE_IF(value > 0xfe000000); TheStructure.Common.XOffset = value >> XOFFSET_BIT_SHIFT; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return TheStructure.Common.XOffset << XOFFSET_BIT_SHIFT; } inline void setResourceMinLod(const uint32_t value) { UNRECOVERABLE_IF(value > 0xfff); TheStructure.Common.ResourceMinLod = value; } - inline uint32_t getResourceMinLod(void) const { + inline uint32_t getResourceMinLod() const { return TheStructure.Common.ResourceMinLod; } inline void setDisableSupportForMultiGpuAtomics(const bool value) { TheStructure.Common.DisableSupportForMultiGpuAtomics = value; } - inline bool getDisableSupportForMultiGpuAtomics(void) const { + inline bool getDisableSupportForMultiGpuAtomics() const { return TheStructure.Common.DisableSupportForMultiGpuAtomics; } inline void setDisableSupportForMultiGpuPartialWrites(const bool value) { TheStructure.Common.DisableSupportForMultiGpuPartialWrites = value; } - inline bool getDisableSupportForMultiGpuPartialWrites(void) const { + inline bool getDisableSupportForMultiGpuPartialWrites() const { return TheStructure.Common.DisableSupportForMultiGpuPartialWrites; } inline void setShaderChannelSelectAlpha(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectAlpha = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha() const { return static_cast(TheStructure.Common.ShaderChannelSelectAlpha); } inline void setShaderChannelSelectBlue(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectBlue = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue() const { return static_cast(TheStructure.Common.ShaderChannelSelectBlue); } inline void setShaderChannelSelectGreen(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectGreen = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen() const { return static_cast(TheStructure.Common.ShaderChannelSelectGreen); } inline void setShaderChannelSelectRed(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectRed = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed() const { return static_cast(TheStructure.Common.ShaderChannelSelectRed); } inline void setMemoryCompressionEnable(const bool value) { TheStructure.Common.MemoryCompressionEnable = value; } - inline bool getMemoryCompressionEnable(void) const { + inline bool getMemoryCompressionEnable() const { return TheStructure.Common.MemoryCompressionEnable; } inline void setMemoryCompressionMode(const MEMORY_COMPRESSION_MODE value) { TheStructure.Common.MemoryCompressionMode = value; } - inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode(void) const { + inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode() const { return static_cast(TheStructure.Common.MemoryCompressionMode); } inline void setCompressionFormat(uint32_t compressionFormat) { UNRECOVERABLE_IF(compressionFormat > 0x1F); TheStructure.Common.CompressionFormat = compressionFormat; } - inline uint32_t getCompressionFormat(void) const { + inline uint32_t getCompressionFormat() const { return TheStructure.Common.CompressionFormat; } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddress = value; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return TheStructure.Common.SurfaceBaseAddress; } inline void setQuiltWidth(const uint64_t value) { UNRECOVERABLE_IF(value > 0x1fL); TheStructure.Common.QuiltWidth = value; } - inline uint64_t getQuiltWidth(void) const { + inline uint64_t getQuiltWidth() const { return TheStructure.Common.QuiltWidth; } inline void setQuiltHeight(const uint64_t value) { UNRECOVERABLE_IF(value > 0x3e0L); TheStructure.Common.QuiltHeight = value; } - inline uint64_t getQuiltHeight(void) const { + inline uint64_t getQuiltHeight() const { return TheStructure.Common.QuiltHeight; } inline void setClearValueAddressEnable(const bool value) { TheStructure.Common.ClearValueAddressEnable = value; } - inline bool getClearValueAddressEnable(void) const { + inline bool getClearValueAddressEnable() const { return TheStructure.Common.ClearValueAddressEnable; } inline void setProceduralTexture(const bool value) { TheStructure.Common.ProceduralTexture = value; } - inline bool getProceduralTexture(void) const { + inline bool getProceduralTexture() const { return TheStructure.Common.ProceduralTexture; } typedef enum tagCLEARADDRESSLOW { @@ -2324,33 +2324,33 @@ typedef struct tagRENDER_SURFACE_STATE { UNRECOVERABLE_IF(value > 0xffffffc0); TheStructure.Common.ClearColorAddress = value >> CLEARADDRESSLOW_BIT_SHIFT; } - inline uint32_t getClearColorAddress(void) const { + inline uint32_t getClearColorAddress() const { return TheStructure.Common.ClearColorAddress << CLEARADDRESSLOW_BIT_SHIFT; } inline void setClearColorAddressHigh(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.ClearColorAddressHigh = value; } - inline uint32_t getClearColorAddressHigh(void) const { + inline uint32_t getClearColorAddressHigh() const { return TheStructure.Common.ClearColorAddressHigh; } inline void setDisallowLowQualityFlitering(const bool value) { TheStructure.Common.DisallowLowQualityFlitering = value; } - inline bool getDisallowLowQualityFlitering(void) const { + inline bool getDisallowLowQualityFlitering() const { return TheStructure.Common.DisallowLowQualityFlitering; } inline void setAuxiliarySurfaceMode(const AUXILIARY_SURFACE_MODE value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode = value; } - inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode(void) const { + inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode() const { return static_cast(TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode); } inline void setAuxiliarySurfacePitch(const uint32_t value) { UNRECOVERABLE_IF(value > (0x1ff8 + 1)); TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch = value - 1; } - inline uint32_t getAuxiliarySurfacePitch(void) const { + inline uint32_t getAuxiliarySurfacePitch() const { return TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch + 1; } typedef enum tagAUXILIARYSURFACEQPITCH { @@ -2361,47 +2361,47 @@ typedef struct tagRENDER_SURFACE_STATE { UNRECOVERABLE_IF(value > 0x7fff0000); TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch = value >> AUXILIARYSURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getAuxiliarySurfaceQpitch(void) const { + inline uint32_t getAuxiliarySurfaceQpitch() const { return TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch << AUXILIARYSURFACEQPITCH_BIT_SHIFT; } inline void setYOffsetForUOrUvPlane(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane = value; } - inline uint32_t getYOffsetForUOrUvPlane(void) const { + inline uint32_t getYOffsetForUOrUvPlane() const { return TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane; } inline void setXOffsetForUOrUvPlane(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff0000); TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane = value; } - inline uint32_t getXOffsetForUOrUvPlane(void) const { + inline uint32_t getXOffsetForUOrUvPlane() const { return TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane; } inline void setHalfPitchForChroma(const HALF_PITCH_FOR_CHROMA value) { TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma = value; } - inline HALF_PITCH_FOR_CHROMA getHalfPitchForChroma(void) const { + inline HALF_PITCH_FOR_CHROMA getHalfPitchForChroma() const { return static_cast(TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma); } inline void setSeparateUvPlaneEnable(const bool value) { TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable = value; } - inline bool getSeparateUvPlaneEnable(void) const { + inline bool getSeparateUvPlaneEnable() const { return TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable; } inline void setYOffsetForVPlane(const uint64_t value) { UNRECOVERABLE_IF(value > 0x3fff00000000L); TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane = value; } - inline uint64_t getYOffsetForVPlane(void) const { + inline uint64_t getYOffsetForVPlane() const { return TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane; } inline void setXOffsetForVPlane(const uint64_t value) { UNRECOVERABLE_IF(value > 0x3fff000000000000L); TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane = value; } - inline uint64_t getXOffsetForVPlane(void) const { + inline uint64_t getXOffsetForVPlane() const { return TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane; } typedef enum tagAUXILIARYSURFACEBASEADDRESS { @@ -2412,7 +2412,7 @@ typedef struct tagRENDER_SURFACE_STATE { UNRECOVERABLE_IF(value > 0xfffffffffffff000L); TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress = value >> AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getAuxiliarySurfaceBaseAddress(void) const { + inline uint64_t getAuxiliarySurfaceBaseAddress() const { return TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress << AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT; } } RENDER_SURFACE_STATE; @@ -2568,7 +2568,7 @@ typedef struct tagSAMPLER_STATE { LOW_QUALITY_FILTER_DISABLE = 0x0, LOW_QUALITY_FILTER_ENABLE = 0x1, } LOW_QUALITY_FILTER; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.LodAlgorithm = LOD_ALGORITHM_LEGACY; TheStructure.Common.MinModeFilter = MIN_MODE_FILTER_NEAREST; @@ -2592,7 +2592,7 @@ typedef struct tagSAMPLER_STATE { TheStructure.Common.ReductionType = REDUCTION_TYPE_STD_FILTER; TheStructure.Common.LowQualityFilter = LOW_QUALITY_FILTER_DISABLE; } - static tagSAMPLER_STATE sInit(void) { + static tagSAMPLER_STATE sInit() { SAMPLER_STATE state; state.init(); return state; @@ -2604,131 +2604,131 @@ typedef struct tagSAMPLER_STATE { inline void setLodAlgorithm(const LOD_ALGORITHM value) { TheStructure.Common.LodAlgorithm = value; } - inline LOD_ALGORITHM getLodAlgorithm(void) const { + inline LOD_ALGORITHM getLodAlgorithm() const { return static_cast(TheStructure.Common.LodAlgorithm); } inline void setTextureLodBias(const uint32_t value) { DEBUG_BREAK_IF(value > 0x3ffe); TheStructure.Common.TextureLodBias = value; } - inline uint32_t getTextureLodBias(void) const { + inline uint32_t getTextureLodBias() const { return TheStructure.Common.TextureLodBias; } inline void setMinModeFilter(const MIN_MODE_FILTER value) { TheStructure.Common.MinModeFilter = value; } - inline MIN_MODE_FILTER getMinModeFilter(void) const { + inline MIN_MODE_FILTER getMinModeFilter() const { return static_cast(TheStructure.Common.MinModeFilter); } inline void setMagModeFilter(const MAG_MODE_FILTER value) { TheStructure.Common.MagModeFilter = value; } - inline MAG_MODE_FILTER getMagModeFilter(void) const { + inline MAG_MODE_FILTER getMagModeFilter() const { return static_cast(TheStructure.Common.MagModeFilter); } inline void setMipModeFilter(const MIP_MODE_FILTER value) { TheStructure.Common.MipModeFilter = value; } - inline MIP_MODE_FILTER getMipModeFilter(void) const { + inline MIP_MODE_FILTER getMipModeFilter() const { return static_cast(TheStructure.Common.MipModeFilter); } inline void setCoarseLodQualityMode(const COARSE_LOD_QUALITY_MODE value) { TheStructure.Common.CoarseLodQualityMode = value; } - inline COARSE_LOD_QUALITY_MODE getCoarseLodQualityMode(void) const { + inline COARSE_LOD_QUALITY_MODE getCoarseLodQualityMode() const { return static_cast(TheStructure.Common.CoarseLodQualityMode); } inline void setLodPreclampMode(const LOD_PRECLAMP_MODE value) { TheStructure.Common.LodPreclampMode = value; } - inline LOD_PRECLAMP_MODE getLodPreclampMode(void) const { + inline LOD_PRECLAMP_MODE getLodPreclampMode() const { return static_cast(TheStructure.Common.LodPreclampMode); } inline void setTextureBorderColorMode(const TEXTURE_BORDER_COLOR_MODE value) { TheStructure.Common.TextureBorderColorMode = value; } - inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode(void) const { + inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode() const { return static_cast(TheStructure.Common.TextureBorderColorMode); } inline void setCpsLodCompensationEnable(const bool value) { TheStructure.Common.CpsLodCompensationEnable = value; } - inline bool getCpsLodCompensationEnable(void) const { + inline bool getCpsLodCompensationEnable() const { return TheStructure.Common.CpsLodCompensationEnable; } inline void setSamplerDisable(const bool value) { TheStructure.Common.SamplerDisable = value; } - inline bool getSamplerDisable(void) const { + inline bool getSamplerDisable() const { return TheStructure.Common.SamplerDisable; } inline void setCubeSurfaceControlMode(const CUBE_SURFACE_CONTROL_MODE value) { TheStructure.Common.CubeSurfaceControlMode = value; } - inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode(void) const { + inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode() const { return static_cast(TheStructure.Common.CubeSurfaceControlMode); } inline void setShadowFunction(const SHADOW_FUNCTION value) { TheStructure.Common.ShadowFunction = value; } - inline SHADOW_FUNCTION getShadowFunction(void) const { + inline SHADOW_FUNCTION getShadowFunction() const { return static_cast(TheStructure.Common.ShadowFunction); } inline void setChromakeyMode(const CHROMAKEY_MODE value) { TheStructure.Common.ChromakeyMode = value; } - inline CHROMAKEY_MODE getChromakeyMode(void) const { + inline CHROMAKEY_MODE getChromakeyMode() const { return static_cast(TheStructure.Common.ChromakeyMode); } inline void setChromakeyIndex(const uint32_t value) { DEBUG_BREAK_IF(value > 0x60); TheStructure.Common.ChromakeyIndex = value; } - inline uint32_t getChromakeyIndex(void) const { + inline uint32_t getChromakeyIndex() const { return TheStructure.Common.ChromakeyIndex; } inline void setChromakeyEnable(const bool value) { TheStructure.Common.ChromakeyEnable = value; } - inline bool getChromakeyEnable(void) const { + inline bool getChromakeyEnable() const { return TheStructure.Common.ChromakeyEnable; } inline void setMaxLod(const uint32_t value) { DEBUG_BREAK_IF(value > 0xfff00); TheStructure.Common.MaxLod = value; } - inline uint32_t getMaxLod(void) const { + inline uint32_t getMaxLod() const { return TheStructure.Common.MaxLod; } inline void setMinLod(const uint32_t value) { DEBUG_BREAK_IF(value > 0xfff00000L); TheStructure.Common.MinLod = value; } - inline uint32_t getMinLod(void) const { + inline uint32_t getMinLod() const { return TheStructure.Common.MinLod; } inline void setLodClampMagnificationMode(const LOD_CLAMP_MAGNIFICATION_MODE value) { TheStructure.Common.LodClampMagnificationMode = value; } - inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode(void) const { + inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode() const { return static_cast(TheStructure.Common.LodClampMagnificationMode); } inline void setSrgbDecode(const SRGB_DECODE value) { TheStructure.Common.SrgbDecode = value; } - inline SRGB_DECODE getSrgbDecode(void) const { + inline SRGB_DECODE getSrgbDecode() const { return static_cast(TheStructure.Common.SrgbDecode); } inline void setReturnFilterWeightForNullTexels(const RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS value) { TheStructure.Common.ReturnFilterWeightForNullTexels = value; } - inline RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS getReturnFilterWeightForNullTexels(void) const { + inline RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS getReturnFilterWeightForNullTexels() const { return static_cast(TheStructure.Common.ReturnFilterWeightForNullTexels); } inline void setReturnFilterWeightForBorderTexels(const RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS value) { TheStructure.Common.ReturnFilterWeightForBorderTexels = value; } - inline RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS getReturnFilterWeightForBorderTexels(void) const { + inline RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS getReturnFilterWeightForBorderTexels() const { return static_cast(TheStructure.Common.ReturnFilterWeightForBorderTexels); } typedef enum tagINDIRECTSTATEPOINTER { @@ -2739,103 +2739,103 @@ typedef struct tagSAMPLER_STATE { DEBUG_BREAK_IF(value > 0xffffc0); TheStructure.Common.IndirectStatePointer = static_cast(value) >> INDIRECTSTATEPOINTER_BIT_SHIFT; } - inline uint32_t getIndirectStatePointer(void) const { + inline uint32_t getIndirectStatePointer() const { return TheStructure.Common.IndirectStatePointer << INDIRECTSTATEPOINTER_BIT_SHIFT; } inline void setTczAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TczAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTczAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTczAddressControlMode() const { return static_cast(TheStructure.Common.TczAddressControlMode); } inline void setTcyAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcyAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode() const { return static_cast(TheStructure.Common.TcyAddressControlMode); } inline void setTcxAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcxAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode() const { return static_cast(TheStructure.Common.TcxAddressControlMode); } inline void setReductionTypeEnable(const bool value) { TheStructure.Common.ReductionTypeEnable = value; } - inline bool getReductionTypeEnable(void) const { + inline bool getReductionTypeEnable() const { return TheStructure.Common.ReductionTypeEnable; } inline void setNonNormalizedCoordinateEnable(const bool value) { TheStructure.Common.NonNormalizedCoordinateEnable = value; } - inline bool getNonNormalizedCoordinateEnable(void) const { + inline bool getNonNormalizedCoordinateEnable() const { return TheStructure.Common.NonNormalizedCoordinateEnable; } inline void setTrilinearFilterQuality(const TRILINEAR_FILTER_QUALITY value) { TheStructure.Common.TrilinearFilterQuality = value; } - inline TRILINEAR_FILTER_QUALITY getTrilinearFilterQuality(void) const { + inline TRILINEAR_FILTER_QUALITY getTrilinearFilterQuality() const { return static_cast(TheStructure.Common.TrilinearFilterQuality); } inline void setRAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMinFilterRoundingEnable = value; } - inline bool getRAddressMinFilterRoundingEnable(void) const { + inline bool getRAddressMinFilterRoundingEnable() const { return TheStructure.Common.RAddressMinFilterRoundingEnable; } inline void setRAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMagFilterRoundingEnable = value; } - inline bool getRAddressMagFilterRoundingEnable(void) const { + inline bool getRAddressMagFilterRoundingEnable() const { return TheStructure.Common.RAddressMagFilterRoundingEnable; } inline void setVAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMinFilterRoundingEnable = value; } - inline bool getVAddressMinFilterRoundingEnable(void) const { + inline bool getVAddressMinFilterRoundingEnable() const { return TheStructure.Common.VAddressMinFilterRoundingEnable; } inline void setVAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMagFilterRoundingEnable = value; } - inline bool getVAddressMagFilterRoundingEnable(void) const { + inline bool getVAddressMagFilterRoundingEnable() const { return TheStructure.Common.VAddressMagFilterRoundingEnable; } inline void setUAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMinFilterRoundingEnable = value; } - inline bool getUAddressMinFilterRoundingEnable(void) const { + inline bool getUAddressMinFilterRoundingEnable() const { return TheStructure.Common.UAddressMinFilterRoundingEnable; } inline void setUAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMagFilterRoundingEnable = value; } - inline bool getUAddressMagFilterRoundingEnable(void) const { + inline bool getUAddressMagFilterRoundingEnable() const { return TheStructure.Common.UAddressMagFilterRoundingEnable; } inline void setMaximumAnisotropy(const MAXIMUM_ANISOTROPY value) { TheStructure.Common.MaximumAnisotropy = value; } - inline MAXIMUM_ANISOTROPY getMaximumAnisotropy(void) const { + inline MAXIMUM_ANISOTROPY getMaximumAnisotropy() const { return static_cast(TheStructure.Common.MaximumAnisotropy); } inline void setReductionType(const REDUCTION_TYPE value) { TheStructure.Common.ReductionType = value; } - inline REDUCTION_TYPE getReductionType(void) const { + inline REDUCTION_TYPE getReductionType() const { return static_cast(TheStructure.Common.ReductionType); } inline void setLowQualityFilter(const LOW_QUALITY_FILTER value) { TheStructure.Common.LowQualityFilter = value; } - inline LOW_QUALITY_FILTER getLowQualityFilter(void) const { + inline LOW_QUALITY_FILTER getLowQualityFilter() const { return static_cast(TheStructure.Common.LowQualityFilter); } inline void setAllowLowQualityLodCalculation(const bool value) { TheStructure.Common.AllowLowQualityLodCalculation = value; } - inline bool getAllowLowQualityLodCalculation(void) const { + inline bool getAllowLowQualityLodCalculation() const { return TheStructure.Common.AllowLowQualityLodCalculation; } } SAMPLER_STATE; @@ -2960,7 +2960,7 @@ typedef struct tagSTATE_BASE_ADDRESS { BINDLESSSAMPLERSTATEBASEADDRESS_BYTEOFFSET = 0x4c, BINDLESSSAMPLERSTATEBASEADDRESS_INDEX = 0x13, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_BASE_ADDRESS; @@ -2971,7 +2971,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.DisableSupportForMultiGpuAtomicsForStatelessAccesses = 1; TheStructure.Common.DisableSupportForMultiGpuPartialWritesForStatelessMessages = 1; } - static tagSTATE_BASE_ADDRESS sInit(void) { + static tagSTATE_BASE_ADDRESS sInit() { STATE_BASE_ADDRESS state; state.init(); return state; @@ -2983,19 +2983,19 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.GeneralStateBaseAddressModifyEnable = value; } - inline bool getGeneralStateBaseAddressModifyEnable(void) const { + inline bool getGeneralStateBaseAddressModifyEnable() const { return (TheStructure.Common.GeneralStateBaseAddressModifyEnable); } inline void setGeneralStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getGeneralStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved); } inline void setGeneralStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getGeneralStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagGENERALSTATEBASEADDRESS { @@ -3005,44 +3005,44 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddress(const uint64_t value) { TheStructure.Common.GeneralStateBaseAddress = value >> GENERALSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getGeneralStateBaseAddress(void) const { + inline uint64_t getGeneralStateBaseAddress() const { return (TheStructure.Common.GeneralStateBaseAddress << GENERALSTATEBASEADDRESS_BIT_SHIFT); } inline void setEnableMemoryCompressionForAllStatelessAccesses(const ENABLE_MEMORY_COMPRESSION_FOR_ALL_STATELESS_ACCESSES value) { TheStructure.Common.EnableMemoryCompressionForAllStatelessAccesses = value; } - inline ENABLE_MEMORY_COMPRESSION_FOR_ALL_STATELESS_ACCESSES getEnableMemoryCompressionForAllStatelessAccesses(void) const { + inline ENABLE_MEMORY_COMPRESSION_FOR_ALL_STATELESS_ACCESSES getEnableMemoryCompressionForAllStatelessAccesses() const { return static_cast(TheStructure.Common.EnableMemoryCompressionForAllStatelessAccesses); } inline void setDisableSupportForMultiGpuAtomicsForStatelessAccesses(const bool value) { TheStructure.Common.DisableSupportForMultiGpuAtomicsForStatelessAccesses = value; } - inline bool getDisableSupportForMultiGpuAtomicsForStatelessAccesses(void) const { + inline bool getDisableSupportForMultiGpuAtomicsForStatelessAccesses() const { return (TheStructure.Common.DisableSupportForMultiGpuAtomicsForStatelessAccesses); } inline void setDisableSupportForMultiGpuPartialWritesForStatelessMessages(const bool value) { TheStructure.Common.DisableSupportForMultiGpuPartialWritesForStatelessMessages = value; } - inline bool getDisableSupportForMultiGpuPartialWritesForStatelessMessages(void) const { + inline bool getDisableSupportForMultiGpuPartialWritesForStatelessMessages() const { return (TheStructure.Common.DisableSupportForMultiGpuPartialWritesForStatelessMessages); } inline void setStatelessDataPortAccessMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved); } inline void setStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1); } inline void setStatelessDataPortAccessMemoryObjectControlState(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = (value >> 1); } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlState(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlState() const { uint32_t mocs = TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1); return (mocs); @@ -3050,19 +3050,19 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.SurfaceStateBaseAddressModifyEnable = value; } - inline bool getSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.SurfaceStateBaseAddressModifyEnable); } inline void setSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved); } inline void setSurfaceStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getSurfaceStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagSURFACESTATEBASEADDRESS { @@ -3072,25 +3072,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceStateBaseAddress = value >> SURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getSurfaceStateBaseAddress(void) const { + inline uint64_t getSurfaceStateBaseAddress() const { return (TheStructure.Common.SurfaceStateBaseAddress << SURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setDynamicStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.DynamicStateBaseAddressModifyEnable = value; } - inline bool getDynamicStateBaseAddressModifyEnable(void) const { + inline bool getDynamicStateBaseAddressModifyEnable() const { return (TheStructure.Common.DynamicStateBaseAddressModifyEnable); } inline void setDynamicStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getDynamicStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved); } inline void setDynamicStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getDynamicStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagDYNAMICSTATEBASEADDRESS { @@ -3100,25 +3100,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setDynamicStateBaseAddress(const uint64_t value) { TheStructure.Common.DynamicStateBaseAddress = value >> DYNAMICSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getDynamicStateBaseAddress(void) const { + inline uint64_t getDynamicStateBaseAddress() const { return (TheStructure.Common.DynamicStateBaseAddress << DYNAMICSTATEBASEADDRESS_BIT_SHIFT); } inline void setInstructionBaseAddressModifyEnable(const bool value) { TheStructure.Common.InstructionBaseAddressModifyEnable = value; } - inline bool getInstructionBaseAddressModifyEnable(void) const { + inline bool getInstructionBaseAddressModifyEnable() const { return (TheStructure.Common.InstructionBaseAddressModifyEnable); } inline void setInstructionMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = value; } - inline uint64_t getInstructionMemoryObjectControlStateReserved(void) const { + inline uint64_t getInstructionMemoryObjectControlStateReserved() const { return (TheStructure.Common.InstructionMemoryObjectControlState_Reserved); } inline void setInstructionMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getInstructionMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getInstructionMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables << 1); } inline void setInstructionMemoryObjectControlState(const uint32_t value) { @@ -3126,7 +3126,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = val; TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables = (val >> 1); } - inline uint32_t getInstructionMemoryObjectControlState(void) const { + inline uint32_t getInstructionMemoryObjectControlState() const { uint64_t mocs = TheStructure.Common.InstructionMemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables << 1); return static_cast(mocs); @@ -3138,73 +3138,73 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setInstructionBaseAddress(const uint64_t value) { TheStructure.Common.InstructionBaseAddress = value >> INSTRUCTIONBASEADDRESS_BIT_SHIFT; } - inline uint64_t getInstructionBaseAddress(void) const { + inline uint64_t getInstructionBaseAddress() const { return (TheStructure.Common.InstructionBaseAddress << INSTRUCTIONBASEADDRESS_BIT_SHIFT); } inline void setGeneralStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.GeneralStateBufferSizeModifyEnable = value; } - inline bool getGeneralStateBufferSizeModifyEnable(void) const { + inline bool getGeneralStateBufferSizeModifyEnable() const { return (TheStructure.Common.GeneralStateBufferSizeModifyEnable); } inline void setGeneralStateBufferSize(const uint32_t value) { TheStructure.Common.GeneralStateBufferSize = value; } - inline uint32_t getGeneralStateBufferSize(void) const { + inline uint32_t getGeneralStateBufferSize() const { return (TheStructure.Common.GeneralStateBufferSize); } inline void setDynamicStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.DynamicStateBufferSizeModifyEnable = value; } - inline bool getDynamicStateBufferSizeModifyEnable(void) const { + inline bool getDynamicStateBufferSizeModifyEnable() const { return (TheStructure.Common.DynamicStateBufferSizeModifyEnable); } inline void setDynamicStateBufferSize(const uint32_t value) { TheStructure.Common.DynamicStateBufferSize = value; } - inline uint32_t getDynamicStateBufferSize(void) const { + inline uint32_t getDynamicStateBufferSize() const { return (TheStructure.Common.DynamicStateBufferSize); } inline void setIndirectObjectBufferSizeModifyEnable(const bool value) { TheStructure.Common.IndirectObjectBufferSizeModifyEnable = value; } - inline bool getIndirectObjectBufferSizeModifyEnable(void) const { + inline bool getIndirectObjectBufferSizeModifyEnable() const { return (TheStructure.Common.IndirectObjectBufferSizeModifyEnable); } inline void setIndirectObjectBufferSize(const uint32_t value) { TheStructure.Common.IndirectObjectBufferSize = value; } - inline uint32_t getIndirectObjectBufferSize(void) const { + inline uint32_t getIndirectObjectBufferSize() const { return (TheStructure.Common.IndirectObjectBufferSize); } inline void setInstructionBufferSizeModifyEnable(const bool value) { TheStructure.Common.InstructionBufferSizeModifyEnable = value; } - inline bool getInstructionBufferSizeModifyEnable(void) const { + inline bool getInstructionBufferSizeModifyEnable() const { return (TheStructure.Common.InstructionBufferSizeModifyEnable); } inline void setInstructionBufferSize(const uint32_t value) { TheStructure.Common.InstructionBufferSize = value; } - inline uint32_t getInstructionBufferSize(void) const { + inline uint32_t getInstructionBufferSize() const { return (TheStructure.Common.InstructionBufferSize); } inline void setBindlessSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.BindlessSurfaceStateBaseAddressModifyEnable = value; } - inline bool getBindlessSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getBindlessSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.BindlessSurfaceStateBaseAddressModifyEnable); } inline void setBindlessSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_Reserved); } inline void setBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagBINDLESSSURFACESTATEBASEADDRESS { @@ -3214,31 +3214,31 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setBindlessSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateBaseAddress = value >> BINDLESSSURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindlessSurfaceStateBaseAddress(void) const { + inline uint64_t getBindlessSurfaceStateBaseAddress() const { return (TheStructure.Common.BindlessSurfaceStateBaseAddress << BINDLESSSURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setBindlessSurfaceStateSize(const uint32_t value) { TheStructure.Common.BindlessSurfaceStateSize = value; } - inline uint32_t getBindlessSurfaceStateSize(void) const { + inline uint32_t getBindlessSurfaceStateSize() const { return TheStructure.Common.BindlessSurfaceStateSize; } inline void setBindlessSamplerStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.BindlessSamplerStateBaseAddressModifyEnable = value; } - inline bool getBindlessSamplerStateBaseAddressModifyEnable(void) const { + inline bool getBindlessSamplerStateBaseAddressModifyEnable() const { return (TheStructure.Common.BindlessSamplerStateBaseAddressModifyEnable); } inline void setBindlessSamplerStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getBindlessSamplerStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getBindlessSamplerStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_Reserved); } inline void setBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagBINDLESSSAMPLERSTATEBASEADDRESS { @@ -3248,13 +3248,13 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setBindlessSamplerStateBaseAddress(const uint64_t value) { TheStructure.Common.BindlessSamplerStateBaseAddress = value >> BINDLESSSAMPLERSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindlessSamplerStateBaseAddress(void) const { + inline uint64_t getBindlessSamplerStateBaseAddress() const { return (TheStructure.Common.BindlessSamplerStateBaseAddress << BINDLESSSAMPLERSTATEBASEADDRESS_BIT_SHIFT); } inline void setBindlessSamplerStateBufferSize(const uint32_t value) { TheStructure.Common.BindlessSamplerStateBufferSize = value; } - inline uint32_t getBindlessSamplerStateBufferSize(void) const { + inline uint32_t getBindlessSamplerStateBufferSize() const { return (TheStructure.Common.BindlessSamplerStateBufferSize); } } STATE_BASE_ADDRESS; @@ -3289,13 +3289,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { MEMORYADDRESS_BYTEOFFSET = 0x4, MEMORYADDRESS_INDEX = 0x1, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_REPORT_PERF_COUNT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_REPORT_PERF_COUNT sInit(void) { + static tagMI_REPORT_PERF_COUNT sInit() { MI_REPORT_PERF_COUNT state; state.init(); return state; @@ -3307,13 +3307,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } inline void setCoreModeEnable(const uint64_t value) { TheStructure.Common.CoreModeEnable = value; } - inline uint64_t getCoreModeEnable(void) const { + inline uint64_t getCoreModeEnable() const { return (TheStructure.Common.CoreModeEnable); } typedef enum tagMEMORYADDRESS { @@ -3323,13 +3323,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } inline void setReportId(const uint32_t value) { TheStructure.Common.ReportId = value; } - inline uint32_t getReportId(void) const { + inline uint32_t getReportId() const { return (TheStructure.Common.ReportId); } } MI_REPORT_PERF_COUNT; @@ -3350,11 +3350,11 @@ struct MI_USER_INTERRUPT { enum COMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MICommandOpcode = MI_COMMAND_OPCODE_MI_USER_INTERRUPT; } - static MI_USER_INTERRUPT sInit(void) { + static MI_USER_INTERRUPT sInit() { MI_USER_INTERRUPT state; state.init(); return state; @@ -3393,14 +3393,14 @@ typedef struct tagMI_SET_PREDICATE { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.PredicateEnable = PREDICATE_ENABLE_PREDICATE_DISABLE; TheStructure.Common.PredicateEnableWparid = PREDICATE_ENABLE_WPARID_NOOP_NEVER; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_SET_PREDICATE; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_SET_PREDICATE sInit(void) { + static tagMI_SET_PREDICATE sInit() { MI_SET_PREDICATE state; state.init(); return state; @@ -3412,13 +3412,13 @@ typedef struct tagMI_SET_PREDICATE { inline void setPredicateEnable(const PREDICATE_ENABLE value) { TheStructure.Common.PredicateEnable = value; } - inline PREDICATE_ENABLE getPredicateEnable(void) const { + inline PREDICATE_ENABLE getPredicateEnable() const { return static_cast(TheStructure.Common.PredicateEnable); } inline void setPredicateEnableWparid(const PREDICATE_ENABLE_WPARID value) { TheStructure.Common.PredicateEnableWparid = value; } - inline PREDICATE_ENABLE_WPARID getPredicateEnableWparid(void) const { + inline PREDICATE_ENABLE_WPARID getPredicateEnableWparid() const { return static_cast(TheStructure.Common.PredicateEnableWparid); } } MI_SET_PREDICATE; @@ -3467,7 +3467,7 @@ typedef struct tagMI_CONDITIONAL_BATCH_BUFFER_END { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.CompareOperation = COMPARE_OPERATION_MAD_GREATER_THAN_IDD; @@ -3475,7 +3475,7 @@ typedef struct tagMI_CONDITIONAL_BATCH_BUFFER_END { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_CONDITIONAL_BATCH_BUFFER_END; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_CONDITIONAL_BATCH_BUFFER_END sInit(void) { + static tagMI_CONDITIONAL_BATCH_BUFFER_END sInit() { MI_CONDITIONAL_BATCH_BUFFER_END state; state.init(); return state; @@ -3487,43 +3487,43 @@ typedef struct tagMI_CONDITIONAL_BATCH_BUFFER_END { inline void setCompareOperation(const COMPARE_OPERATION value) { TheStructure.Common.CompareOperation = value; } - inline COMPARE_OPERATION getCompareOperation(void) const { + inline COMPARE_OPERATION getCompareOperation() const { return static_cast(TheStructure.Common.CompareOperation); } inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return TheStructure.Common.PredicateEnable; } inline void setEndCurrentBatchBufferLevel(const bool value) { TheStructure.Common.EndCurrentBatchBufferLevel = value; } - inline bool getEndCurrentBatchBufferLevel(void) const { + inline bool getEndCurrentBatchBufferLevel() const { return TheStructure.Common.EndCurrentBatchBufferLevel; } inline void setCompareMaskMode(const COMPARE_MASK_MODE value) { TheStructure.Common.CompareMaskMode = value; } - inline COMPARE_MASK_MODE getCompareMaskMode(void) const { + inline COMPARE_MASK_MODE getCompareMaskMode() const { return static_cast(TheStructure.Common.CompareMaskMode); } inline void setCompareSemaphore(const bool value) { TheStructure.Common.CompareSemaphore = value; } - inline bool getCompareSemaphore(void) const { + inline bool getCompareSemaphore() const { return TheStructure.Common.CompareSemaphore; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } inline void setCompareDataDword(const uint32_t value) { TheStructure.Common.CompareDataDword = value; } - inline uint32_t getCompareDataDword(void) const { + inline uint32_t getCompareDataDword() const { return TheStructure.Common.CompareDataDword; } typedef enum tagCOMPAREADDRESS { @@ -3533,7 +3533,7 @@ typedef struct tagMI_CONDITIONAL_BATCH_BUFFER_END { inline void setCompareAddress(const uint64_t value) { TheStructure.Common.CompareAddress = value >> COMPAREADDRESS_BIT_SHIFT; } - inline uint64_t getCompareAddress(void) const { + inline uint64_t getCompareAddress() const { return TheStructure.Common.CompareAddress << COMPAREADDRESS_BIT_SHIFT; } } MI_CONDITIONAL_BATCH_BUFFER_END; @@ -3742,14 +3742,14 @@ struct XY_BLOCK_COPY_BLT { INSTRUCTIONTARGET_OPCODE_OPCODE = 0x41, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH::DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.InstructionTarget_Opcode = INSTRUCTIONTARGET_OPCODE_OPCODE; TheStructure.Common.Client = CLIENT::CLIENT_2D_PROCESSOR; } - static XY_BLOCK_COPY_BLT sInit(void) { + static XY_BLOCK_COPY_BLT sInit() { XY_BLOCK_COPY_BLT state; state.init(); return state; @@ -3764,7 +3764,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.NumberofMultisamples = value; } - inline NUMBER_OF_MULTISAMPLES getNumberofMultisamples(void) const { + inline NUMBER_OF_MULTISAMPLES getNumberofMultisamples() const { return static_cast(TheStructure.Common.NumberofMultisamples); } @@ -3772,7 +3772,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SpecialModeofOperation = value; } - inline SPECIAL_MODE_OF_OPERATION getSpecialModeofOperation(void) const { + inline SPECIAL_MODE_OF_OPERATION getSpecialModeofOperation() const { return static_cast(TheStructure.Common.SpecialModeofOperation); } @@ -3780,7 +3780,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } @@ -3788,7 +3788,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return (TheStructure.Common.InstructionTarget_Opcode); } @@ -3796,7 +3796,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } @@ -3804,7 +3804,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationPitch = value - 1; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return (TheStructure.Common.DestinationPitch + 1); } @@ -3812,7 +3812,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationAuxiliarysurfacemode = value; } - inline AUXILIARY_SURFACE_MODE getDestinationAuxiliarysurfacemode(void) const { + inline AUXILIARY_SURFACE_MODE getDestinationAuxiliarysurfacemode() const { return static_cast(TheStructure.Common.DestinationAuxiliarysurfacemode); } @@ -3820,7 +3820,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationMOCS = value; } - inline uint32_t getDestinationMOCS(void) const { + inline uint32_t getDestinationMOCS() const { return (TheStructure.Common.DestinationMOCS); } @@ -3828,7 +3828,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationCompressionType = value; } - inline COMPRESSION_TYPE getDestinationCompressionType(void) const { + inline COMPRESSION_TYPE getDestinationCompressionType() const { return static_cast(TheStructure.Common.DestinationCompressionType); } @@ -3836,7 +3836,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationCompressionEnable = value; } - inline COMPRESSION_ENABLE getDestinationCompressionEnable(void) const { + inline COMPRESSION_ENABLE getDestinationCompressionEnable() const { return static_cast(TheStructure.Common.DestinationCompressionEnable); } @@ -3844,7 +3844,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationTiling = value; } - inline TILING getDestinationTiling(void) const { + inline TILING getDestinationTiling() const { return static_cast(TheStructure.Common.DestinationTiling); } @@ -3852,7 +3852,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return (TheStructure.Common.DestinationX1Coordinate_Left); } @@ -3860,7 +3860,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return (TheStructure.Common.DestinationY1Coordinate_Top); } @@ -3868,7 +3868,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return (TheStructure.Common.DestinationX2Coordinate_Right); } @@ -3876,7 +3876,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return (TheStructure.Common.DestinationY2Coordinate_Bottom); } @@ -3884,7 +3884,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return (TheStructure.Common.DestinationBaseAddress); } @@ -3892,7 +3892,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationXoffset = value; } - inline uint32_t getDestinationXoffset(void) const { + inline uint32_t getDestinationXoffset() const { return (TheStructure.Common.DestinationXoffset); } @@ -3900,7 +3900,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationYoffset = value; } - inline uint32_t getDestinationYoffset(void) const { + inline uint32_t getDestinationYoffset() const { return (TheStructure.Common.DestinationYoffset); } @@ -3908,7 +3908,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationTargetMemory = value; } - inline TARGET_MEMORY getDestinationTargetMemory(void) const { + inline TARGET_MEMORY getDestinationTargetMemory() const { return static_cast(TheStructure.Common.DestinationTargetMemory); } @@ -3916,7 +3916,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceX1Coordinate_Left = value; } - inline uint32_t getSourceX1CoordinateLeft(void) const { + inline uint32_t getSourceX1CoordinateLeft() const { return (TheStructure.Common.SourceX1Coordinate_Left); } @@ -3924,7 +3924,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceY1Coordinate_Top = value; } - inline uint32_t getSourceY1CoordinateTop(void) const { + inline uint32_t getSourceY1CoordinateTop() const { return (TheStructure.Common.SourceY1Coordinate_Top); } @@ -3932,7 +3932,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourcePitch = value - 1; } - inline uint32_t getSourcePitch(void) const { + inline uint32_t getSourcePitch() const { return (TheStructure.Common.SourcePitch + 1); } @@ -3940,7 +3940,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceAuxiliarysurfacemode = value; } - inline AUXILIARY_SURFACE_MODE getSourceAuxiliarysurfacemode(void) const { + inline AUXILIARY_SURFACE_MODE getSourceAuxiliarysurfacemode() const { return static_cast(TheStructure.Common.SourceAuxiliarysurfacemode); } @@ -3948,7 +3948,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceMOCS = value; } - inline uint32_t getSourceMOCS(void) const { + inline uint32_t getSourceMOCS() const { return (TheStructure.Common.SourceMOCS); } @@ -3956,7 +3956,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceCompressionType = value; } - inline COMPRESSION_TYPE getSourceCompressionType(void) const { + inline COMPRESSION_TYPE getSourceCompressionType() const { return static_cast(TheStructure.Common.SourceCompressionType); } @@ -3964,7 +3964,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceCompressionEnable = value; } - inline COMPRESSION_ENABLE getSourceCompressionEnable(void) const { + inline COMPRESSION_ENABLE getSourceCompressionEnable() const { return static_cast(TheStructure.Common.SourceCompressionEnable); } @@ -3972,7 +3972,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceTiling = value; } - inline TILING getSourceTiling(void) const { + inline TILING getSourceTiling() const { return static_cast(TheStructure.Common.SourceTiling); } @@ -3980,7 +3980,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceBaseAddress = value; } - inline uint64_t getSourceBaseAddress(void) const { + inline uint64_t getSourceBaseAddress() const { return (TheStructure.Common.SourceBaseAddress); } @@ -3988,7 +3988,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceXoffset = value; } - inline uint32_t getSourceXoffset(void) const { + inline uint32_t getSourceXoffset() const { return (TheStructure.Common.SourceXoffset); } @@ -3996,7 +3996,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceYoffset = value; } - inline uint32_t getSourceYoffset(void) const { + inline uint32_t getSourceYoffset() const { return (TheStructure.Common.SourceYoffset); } @@ -4004,7 +4004,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceTargetMemory = value; } - inline TARGET_MEMORY getSourceTargetMemory(void) const { + inline TARGET_MEMORY getSourceTargetMemory() const { return static_cast(TheStructure.Common.SourceTargetMemory); } @@ -4012,7 +4012,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceCompressionFormat = value; } - inline uint32_t getSourceCompressionFormat(void) const { + inline uint32_t getSourceCompressionFormat() const { return (TheStructure.Common.SourceCompressionFormat); } @@ -4020,7 +4020,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceClearValueEnable = value; } - inline CLEAR_VALUE_ENABLE getSourceClearValueEnable(void) const { + inline CLEAR_VALUE_ENABLE getSourceClearValueEnable() const { return static_cast(TheStructure.Common.SourceClearValueEnable); } @@ -4033,7 +4033,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceClearAddressLow = value >> CLEARADDRESSLOW_BIT_SHIFT; } - inline uint32_t getSourceClearAddressLow(void) const { + inline uint32_t getSourceClearAddressLow() const { return (TheStructure.Common.SourceClearAddressLow << CLEARADDRESSLOW_BIT_SHIFT); } @@ -4041,7 +4041,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceClearAddressHigh = value; } - inline uint32_t getSourceClearAddressHigh(void) const { + inline uint32_t getSourceClearAddressHigh() const { return (TheStructure.Common.SourceClearAddressHigh); } @@ -4049,7 +4049,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationCompressionFormat = value; } - inline uint32_t getDestinationCompressionFormat(void) const { + inline uint32_t getDestinationCompressionFormat() const { return (TheStructure.Common.DestinationCompressionFormat); } @@ -4057,7 +4057,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationClearValueEnable = value; } - inline CLEAR_VALUE_ENABLE getDestinationClearValueEnable(void) const { + inline CLEAR_VALUE_ENABLE getDestinationClearValueEnable() const { return static_cast(TheStructure.Common.DestinationClearValueEnable); } @@ -4065,7 +4065,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationClearAddressLow = value >> CLEARADDRESSLOW_BIT_SHIFT; } - inline uint32_t getDestinationClearAddressLow(void) const { + inline uint32_t getDestinationClearAddressLow() const { return (TheStructure.Common.DestinationClearAddressLow << CLEARADDRESSLOW_BIT_SHIFT); } @@ -4073,7 +4073,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationClearAddressHigh = value; } - inline uint32_t getDestinationClearAddressHigh(void) const { + inline uint32_t getDestinationClearAddressHigh() const { return (TheStructure.Common.DestinationClearAddressHigh); } @@ -4081,7 +4081,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSurfaceHeight = value - 1; } - inline uint32_t getDestinationSurfaceHeight(void) const { + inline uint32_t getDestinationSurfaceHeight() const { return (TheStructure.Common.DestinationSurfaceHeight + 1); } @@ -4089,7 +4089,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSurfaceWidth = value - 1; } - inline uint32_t getDestinationSurfaceWidth(void) const { + inline uint32_t getDestinationSurfaceWidth() const { return (TheStructure.Common.DestinationSurfaceWidth + 1); } @@ -4097,7 +4097,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSurfaceType = value; } - inline SURFACE_TYPE getDestinationSurfaceType(void) const { + inline SURFACE_TYPE getDestinationSurfaceType() const { return static_cast(TheStructure.Common.DestinationSurfaceType); } @@ -4105,7 +4105,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationLOD = value; } - inline uint32_t getDestinationLOD(void) const { + inline uint32_t getDestinationLOD() const { return (TheStructure.Common.DestinationLOD); } @@ -4113,7 +4113,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSurfaceQpitch = value; } - inline uint32_t getDestinationSurfaceQpitch(void) const { + inline uint32_t getDestinationSurfaceQpitch() const { return (TheStructure.Common.DestinationSurfaceQpitch); } @@ -4121,7 +4121,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSurfaceDepth = value - 1; } - inline uint32_t getDestinationSurfaceDepth(void) const { + inline uint32_t getDestinationSurfaceDepth() const { return (TheStructure.Common.DestinationSurfaceDepth + 1); } @@ -4129,7 +4129,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationHorizontalAlign = value; } - inline uint32_t getDestinationHorizontalAlign(void) const { + inline uint32_t getDestinationHorizontalAlign() const { return (TheStructure.Common.DestinationHorizontalAlign); } @@ -4137,7 +4137,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationVerticalAlign = value; } - inline uint32_t getDestinationVerticalAlign(void) const { + inline uint32_t getDestinationVerticalAlign() const { return (TheStructure.Common.DestinationVerticalAlign); } @@ -4145,7 +4145,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSSID = value; } - inline uint32_t getDestinationSSID(void) const { + inline uint32_t getDestinationSSID() const { return (TheStructure.Common.DestinationSSID); } @@ -4153,7 +4153,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationMipTailStartLOD = value; } - inline uint32_t getDestinationMipTailStartLOD(void) const { + inline uint32_t getDestinationMipTailStartLOD() const { return (TheStructure.Common.DestinationMipTailStartLOD); } @@ -4161,7 +4161,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationDepthStencilResource = value; } - inline uint32_t getDestinationDepthStencilResource(void) const { + inline uint32_t getDestinationDepthStencilResource() const { return (TheStructure.Common.DestinationDepthStencilResource); } @@ -4169,7 +4169,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationArrayIndex = value - 1; } - inline uint32_t getDestinationArrayIndex(void) const { + inline uint32_t getDestinationArrayIndex() const { return (TheStructure.Common.DestinationArrayIndex + 1); } @@ -4177,7 +4177,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSurfaceHeight = value - 1; } - inline uint32_t getSourceSurfaceHeight(void) const { + inline uint32_t getSourceSurfaceHeight() const { return (TheStructure.Common.SourceSurfaceHeight + 1); } @@ -4185,7 +4185,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSurfaceWidth = value - 1; } - inline uint32_t getSourceSurfaceWidth(void) const { + inline uint32_t getSourceSurfaceWidth() const { return (TheStructure.Common.SourceSurfaceWidth + 1); } @@ -4193,7 +4193,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSurfaceType = value; } - inline SURFACE_TYPE getSourceSurfaceType(void) const { + inline SURFACE_TYPE getSourceSurfaceType() const { return static_cast(TheStructure.Common.SourceSurfaceType); } @@ -4201,7 +4201,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceLOD = value; } - inline uint32_t getSourceLOD(void) const { + inline uint32_t getSourceLOD() const { return (TheStructure.Common.SourceLOD); } @@ -4209,7 +4209,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSurfaceQpitch = value; } - inline uint32_t getSourceSurfaceQpitch(void) const { + inline uint32_t getSourceSurfaceQpitch() const { return (TheStructure.Common.SourceSurfaceQpitch); } @@ -4217,7 +4217,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSurfaceDepth = value - 1; } - inline uint32_t getSourceSurfaceDepth(void) const { + inline uint32_t getSourceSurfaceDepth() const { return (TheStructure.Common.SourceSurfaceDepth + 1); } @@ -4225,7 +4225,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceHorizontalAlign = value; } - inline uint32_t getSourceHorizontalAlign(void) const { + inline uint32_t getSourceHorizontalAlign() const { return (TheStructure.Common.SourceHorizontalAlign); } @@ -4233,7 +4233,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceVerticalAlign = value; } - inline uint32_t getSourceVerticalAlign(void) const { + inline uint32_t getSourceVerticalAlign() const { return (TheStructure.Common.SourceVerticalAlign); } @@ -4241,7 +4241,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSSID = value; } - inline uint32_t getSourceSSID(void) const { + inline uint32_t getSourceSSID() const { return (TheStructure.Common.SourceSSID); } @@ -4249,7 +4249,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceMipTailStartLOD = value; } - inline uint32_t getSourceMipTailStartLOD(void) const { + inline uint32_t getSourceMipTailStartLOD() const { return (TheStructure.Common.SourceMipTailStartLOD); } @@ -4257,7 +4257,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceDepthStencilResource = value; } - inline uint32_t getSourceDepthStencilResource(void) const { + inline uint32_t getSourceDepthStencilResource() const { return (TheStructure.Common.SourceDepthStencilResource); } @@ -4265,7 +4265,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceArrayIndex = value - 1; } - inline uint32_t getSourceArrayIndex(void) const { + inline uint32_t getSourceArrayIndex() const { return (TheStructure.Common.SourceArrayIndex + 1); } }; @@ -4420,14 +4420,14 @@ struct XY_FAST_COLOR_BLT { INSTRUCTIONTARGET_OPCODE_OPCODE = 0x44, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH::DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.InstructionTarget_Opcode = INSTRUCTIONTARGET_OPCODE::INSTRUCTIONTARGET_OPCODE_OPCODE; TheStructure.Common.Client = CLIENT::CLIENT_2D_PROCESSOR; } - static XY_FAST_COLOR_BLT sInit(void) { + static XY_FAST_COLOR_BLT sInit() { XY_FAST_COLOR_BLT state; state.init(); return state; @@ -4442,7 +4442,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.NumberofMultisamples = value; } - inline NUMBER_OF_MULTISAMPLES getNumberofMultisamples(void) const { + inline NUMBER_OF_MULTISAMPLES getNumberofMultisamples() const { return static_cast(TheStructure.Common.NumberofMultisamples); } @@ -4450,7 +4450,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.SpecialModeofOperation = value; } - inline SPECIAL_MODE_OF_OPERATION getSpecialModeofOperation(void) const { + inline SPECIAL_MODE_OF_OPERATION getSpecialModeofOperation() const { return static_cast(TheStructure.Common.SpecialModeofOperation); } @@ -4458,7 +4458,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } @@ -4466,7 +4466,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return (TheStructure.Common.InstructionTarget_Opcode); } @@ -4474,7 +4474,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } @@ -4482,7 +4482,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationPitch = value - 1; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return (TheStructure.Common.DestinationPitch + 1); } @@ -4490,7 +4490,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationAuxiliarysurfacemode = value; } - inline DESTINATION_AUXILIARY_SURFACE_MODE getDestinationAuxiliarysurfacemode(void) const { + inline DESTINATION_AUXILIARY_SURFACE_MODE getDestinationAuxiliarysurfacemode() const { return static_cast(TheStructure.Common.DestinationAuxiliarysurfacemode); } @@ -4498,7 +4498,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationMOCS = value; } - inline uint32_t getDestinationMOCS(void) const { + inline uint32_t getDestinationMOCS() const { return (TheStructure.Common.DestinationMOCS); } @@ -4506,7 +4506,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationCompressionType = value; } - inline DESTINATION_COMPRESSION_TYPE getDestinationCompressionType(void) const { + inline DESTINATION_COMPRESSION_TYPE getDestinationCompressionType() const { return static_cast(TheStructure.Common.DestinationCompressionType); } @@ -4514,7 +4514,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationCompressionEnable = value; } - inline DESTINATION_COMPRESSION_ENABLE getDestinationCompressionEnable(void) const { + inline DESTINATION_COMPRESSION_ENABLE getDestinationCompressionEnable() const { return static_cast(TheStructure.Common.DestinationCompressionEnable); } @@ -4522,7 +4522,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationTiling = value; } - inline DESTINATION_TILING getDestinationTiling(void) const { + inline DESTINATION_TILING getDestinationTiling() const { return static_cast(TheStructure.Common.DestinationTiling); } @@ -4530,7 +4530,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return (TheStructure.Common.DestinationX1Coordinate_Left); } @@ -4538,7 +4538,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return (TheStructure.Common.DestinationY1Coordinate_Top); } @@ -4546,7 +4546,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return (TheStructure.Common.DestinationX2Coordinate_Right); } @@ -4554,7 +4554,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return (TheStructure.Common.DestinationY2Coordinate_Bottom); } @@ -4562,7 +4562,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return (TheStructure.Common.DestinationBaseAddress); } @@ -4570,7 +4570,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationXoffset = value; } - inline uint32_t getDestinationXoffset(void) const { + inline uint32_t getDestinationXoffset() const { return (TheStructure.Common.DestinationXoffset); } @@ -4578,7 +4578,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationYoffset = value; } - inline uint32_t getDestinationYoffset(void) const { + inline uint32_t getDestinationYoffset() const { return (TheStructure.Common.DestinationYoffset); } @@ -4586,7 +4586,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationTargetMemory = value; } - inline DESTINATION_TARGET_MEMORY getDestinationTargetMemory(void) const { + inline DESTINATION_TARGET_MEMORY getDestinationTargetMemory() const { return static_cast(TheStructure.Common.DestinationTargetMemory); } @@ -4601,7 +4601,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationCompressionFormat = value; } - inline uint32_t getDestinationCompressionFormat(void) const { + inline uint32_t getDestinationCompressionFormat() const { return (TheStructure.Common.DestinationCompressionFormat); } @@ -4609,7 +4609,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationClearValueEnable = value; } - inline DESTINATION_CLEAR_VALUE_ENABLE getDestinationClearValueEnable(void) const { + inline DESTINATION_CLEAR_VALUE_ENABLE getDestinationClearValueEnable() const { return static_cast(TheStructure.Common.DestinationClearValueEnable); } @@ -4622,7 +4622,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationClearAddressLow = value >> DESTINATIONCLEARADDRESSLOW_BIT_SHIFT; } - inline uint32_t getDestinationClearAddressLow(void) const { + inline uint32_t getDestinationClearAddressLow() const { return (TheStructure.Common.DestinationClearAddressLow << DESTINATIONCLEARADDRESSLOW_BIT_SHIFT); } @@ -4630,7 +4630,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationClearAddressHigh = value; } - inline uint32_t getDestinationClearAddressHigh(void) const { + inline uint32_t getDestinationClearAddressHigh() const { return (TheStructure.Common.DestinationClearAddressHigh); } @@ -4638,7 +4638,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationSurfaceHeight = value - 1; } - inline uint32_t getDestinationSurfaceHeight(void) const { + inline uint32_t getDestinationSurfaceHeight() const { return (TheStructure.Common.DestinationSurfaceHeight + 1); } @@ -4646,7 +4646,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationSurfaceWidth = value - 1; } - inline uint32_t getDestinationSurfaceWidth(void) const { + inline uint32_t getDestinationSurfaceWidth() const { return (TheStructure.Common.DestinationSurfaceWidth + 1); } @@ -4654,7 +4654,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationSurfaceType = value; } - inline DESTINATION_SURFACE_TYPE getDestinationSurfaceType(void) const { + inline DESTINATION_SURFACE_TYPE getDestinationSurfaceType() const { return static_cast(TheStructure.Common.DestinationSurfaceType); } @@ -4662,7 +4662,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationLOD = value; } - inline uint32_t getDestinationLOD(void) const { + inline uint32_t getDestinationLOD() const { return (TheStructure.Common.DestinationLOD); } @@ -4670,7 +4670,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationSurfaceQpitch = value; } - inline uint32_t getDestinationSurfaceQpitch(void) const { + inline uint32_t getDestinationSurfaceQpitch() const { return (TheStructure.Common.DestinationSurfaceQpitch); } @@ -4678,7 +4678,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationSurfaceDepth = value; } - inline uint32_t getDestinationSurfaceDepth(void) const { + inline uint32_t getDestinationSurfaceDepth() const { return (TheStructure.Common.DestinationSurfaceDepth); } @@ -4686,7 +4686,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationHorizontalAlign = value; } - inline uint32_t getDestinationHorizontalAlign(void) const { + inline uint32_t getDestinationHorizontalAlign() const { return (TheStructure.Common.DestinationHorizontalAlign); } @@ -4694,7 +4694,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationVerticalAlign = value; } - inline uint32_t getDestinationVerticalAlign(void) const { + inline uint32_t getDestinationVerticalAlign() const { return (TheStructure.Common.DestinationVerticalAlign); } @@ -4702,7 +4702,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationMipTailStartLOD = value; } - inline uint32_t getDestinationMipTailStartLOD(void) const { + inline uint32_t getDestinationMipTailStartLOD() const { return (TheStructure.Common.DestinationMipTailStartLOD); } @@ -4710,7 +4710,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationDepthStencilResource = value; } - inline uint32_t getDestinationDepthStencilResource(void) const { + inline uint32_t getDestinationDepthStencilResource() const { return (TheStructure.Common.DestinationDepthStencilResource); } @@ -4718,7 +4718,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationArrayIndex = value - 1; } - inline uint32_t getDestinationArrayIndex(void) const { + inline uint32_t getDestinationArrayIndex() const { return (TheStructure.Common.DestinationArrayIndex + 1); } }; @@ -4774,13 +4774,13 @@ struct MI_FLUSH_DW { COMMAND_TYPE_MI_COMMAND = 0, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH::DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE::MI_COMMAND_OPCODE_MI_FLUSH_DW; } - static MI_FLUSH_DW sInit(void) { + static MI_FLUSH_DW sInit() { MI_FLUSH_DW state; state.init(); return state; @@ -4795,7 +4795,7 @@ struct MI_FLUSH_DW { TheStructure.Common.NotifyEnable = value; } - inline uint32_t getNotifyEnable(void) const { + inline uint32_t getNotifyEnable() const { return (TheStructure.Common.NotifyEnable); } @@ -4803,7 +4803,7 @@ struct MI_FLUSH_DW { TheStructure.Common.FlushLlc = value; } - inline uint32_t getFlushLlc(void) const { + inline uint32_t getFlushLlc() const { return (TheStructure.Common.FlushLlc); } @@ -4811,7 +4811,7 @@ struct MI_FLUSH_DW { TheStructure.Common.FlushCcs = value; } - inline uint32_t getFlushCcs(void) const { + inline uint32_t getFlushCcs() const { return (TheStructure.Common.FlushCcs); } @@ -4819,7 +4819,7 @@ struct MI_FLUSH_DW { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } @@ -4827,7 +4827,7 @@ struct MI_FLUSH_DW { TheStructure.Common.TlbInvalidate = value; } - inline uint32_t getTlbInvalidate(void) const { + inline uint32_t getTlbInvalidate() const { return (TheStructure.Common.TlbInvalidate); } @@ -4835,7 +4835,7 @@ struct MI_FLUSH_DW { TheStructure.Common.StoreDataIndex = value; } - inline uint32_t getStoreDataIndex(void) const { + inline uint32_t getStoreDataIndex() const { return (TheStructure.Common.StoreDataIndex); } @@ -4848,7 +4848,7 @@ struct MI_FLUSH_DW { TheStructure.Common.DestinationAddress = value >> DESTINATIONADDRESS_BIT_SHIFT; } - inline uint64_t getDestinationAddress(void) const { + inline uint64_t getDestinationAddress() const { return (TheStructure.Common.DestinationAddress << DESTINATIONADDRESS_BIT_SHIFT); } @@ -4856,7 +4856,7 @@ struct MI_FLUSH_DW { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return (TheStructure.Common.ImmediateData); } }; @@ -4898,12 +4898,12 @@ typedef struct tag_3DSTATE_BTD_BODY { PER_DSS_MEMORY_BACKED_BUFFER_SIZE_64KB = 0x5, PER_DSS_MEMORY_BACKED_BUFFER_SIZE_128KB = 0x6, } PER_DSS_MEMORY_BACKED_BUFFER_SIZE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.AmfsMode = AMFS_MODE_NORMAL_MODE; TheStructure.Common.PerDssMemoryBackedBufferSize = PER_DSS_MEMORY_BACKED_BUFFER_SIZE_128KB; } - static tag_3DSTATE_BTD_BODY sInit(void) { + static tag_3DSTATE_BTD_BODY sInit() { _3DSTATE_BTD_BODY state; state.init(); return state; @@ -4916,19 +4916,19 @@ typedef struct tag_3DSTATE_BTD_BODY { UNRECOVERABLE_IF(value > 0x3); TheStructure.Common.DispatchTimeoutCounter = value; } - inline uint32_t getDispatchTimeoutCounter(void) const { + inline uint32_t getDispatchTimeoutCounter() const { return TheStructure.Common.DispatchTimeoutCounter; } inline void setAmfsMode(const AMFS_MODE value) { TheStructure.Common.AmfsMode = value; } - inline AMFS_MODE getAmfsMode(void) const { + inline AMFS_MODE getAmfsMode() const { return static_cast(TheStructure.Common.AmfsMode); } inline void setPerDssMemoryBackedBufferSize(const PER_DSS_MEMORY_BACKED_BUFFER_SIZE value) { TheStructure.Common.PerDssMemoryBackedBufferSize = value; } - inline PER_DSS_MEMORY_BACKED_BUFFER_SIZE getPerDssMemoryBackedBufferSize(void) const { + inline PER_DSS_MEMORY_BACKED_BUFFER_SIZE getPerDssMemoryBackedBufferSize() const { return static_cast(TheStructure.Common.PerDssMemoryBackedBufferSize); } typedef enum tagMEMORYBACKEDBUFFERBASEPOINTER { @@ -4939,14 +4939,14 @@ typedef struct tag_3DSTATE_BTD_BODY { UNRECOVERABLE_IF(value > 0xffffffffffffffffL); TheStructure.Common.MemoryBackedBufferBasePointer = value >> MEMORYBACKEDBUFFERBASEPOINTER_BIT_SHIFT; } - inline uint64_t getMemoryBackedBufferBasePointer(void) const { + inline uint64_t getMemoryBackedBufferBasePointer() const { return TheStructure.Common.MemoryBackedBufferBasePointer << MEMORYBACKEDBUFFERBASEPOINTER_BIT_SHIFT; } inline void setPerThreadScratchSpace(const uint64_t value) { UNRECOVERABLE_IF(value > 0xfL); TheStructure.Common.PerThreadScratchSpace = value; } - inline uint64_t getPerThreadScratchSpace(void) const { + inline uint64_t getPerThreadScratchSpace() const { return TheStructure.Common.PerThreadScratchSpace; } typedef enum tagBTDSCRATCHSPACEBASEPOINTER { @@ -4957,7 +4957,7 @@ typedef struct tag_3DSTATE_BTD_BODY { UNRECOVERABLE_IF(value > 0xffffffffL); TheStructure.Common.BtdScratchSpaceBasePointer = value >> BTDSCRATCHSPACEBASEPOINTER_BIT_SHIFT; } - inline uint64_t getBtdScratchSpaceBasePointer(void) const { + inline uint64_t getBtdScratchSpaceBasePointer() const { return TheStructure.Common.BtdScratchSpaceBasePointer << BTDSCRATCHSPACEBASEPOINTER_BIT_SHIFT; } } _3DSTATE_BTD_BODY; @@ -4993,7 +4993,7 @@ typedef struct tag_3DSTATE_BTD { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_3DSTATE_BTD; @@ -5002,7 +5002,7 @@ typedef struct tag_3DSTATE_BTD { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.BtdStateBody.init(); } - static tag_3DSTATE_BTD sInit(void) { + static tag_3DSTATE_BTD sInit() { _3DSTATE_BTD state; state.init(); return state; @@ -5014,7 +5014,7 @@ typedef struct tag_3DSTATE_BTD { inline void setBtdStateBody(const _3DSTATE_BTD_BODY &value) { TheStructure.Common.BtdStateBody = value; } - inline _3DSTATE_BTD_BODY &getBtdStateBody(void) { + inline _3DSTATE_BTD_BODY &getBtdStateBody() { return TheStructure.Common.BtdStateBody; } } _3DSTATE_BTD; @@ -5053,11 +5053,11 @@ typedef struct tagPOSTSYNC_DATA { OPERATION_WRITE_IMMEDIATE_DATA = 0x1, OPERATION_WRITE_TIMESTAMP = 0x3, } OPERATION; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.Operation = OPERATION_NO_WRITE; } - static tagPOSTSYNC_DATA sInit(void) { + static tagPOSTSYNC_DATA sInit() { POSTSYNC_DATA state; state.init(); return state; @@ -5069,13 +5069,13 @@ typedef struct tagPOSTSYNC_DATA { inline void setOperation(const OPERATION value) { TheStructure.Common.Operation = value; } - inline OPERATION getOperation(void) const { + inline OPERATION getOperation() const { return static_cast(TheStructure.Common.Operation); } inline void setDataportPipelineFlush(const bool value) { TheStructure.Common.DataportPipelineFlush = value; } - inline bool getDataportPipelineFlush(void) const { + inline bool getDataportPipelineFlush() const { return TheStructure.Common.DataportPipelineFlush; } inline void setMocs(const uint32_t value) { // patched @@ -5083,19 +5083,19 @@ typedef struct tagPOSTSYNC_DATA { TheStructure.Common.MocsReserved_4 = value; TheStructure.Common.MocsIndexToMocsTables = value >> 1; } - inline uint32_t getMocs(void) const { // patched + inline uint32_t getMocs() const { // patched return (TheStructure.Common.MocsIndexToMocsTables << 1) | TheStructure.Common.MocsReserved_4; } inline void setDestinationAddress(const uint64_t value) { TheStructure.Common.DestinationAddress = value; } - inline uint64_t getDestinationAddress(void) const { + inline uint64_t getDestinationAddress() const { return TheStructure.Common.DestinationAddress; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } } POSTSYNC_DATA; @@ -5187,7 +5187,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { ROUNDING_MODE_RTZ = 0x3, } ROUNDING_MODE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.FloatingPointMode = FLOATING_POINT_MODE_IEEE_754; TheStructure.Common.SingleProgramFlow = SINGLE_PROGRAM_FLOW_MULTIPLE; @@ -5199,7 +5199,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { SHARED_LOCAL_MEMORY_SIZE_ENCODES_0K; TheStructure.Common.RoundingMode = ROUNDING_MODE_RTNE; } - static tagINTERFACE_DESCRIPTOR_DATA sInit(void) { + static tagINTERFACE_DESCRIPTOR_DATA sInit() { INTERFACE_DESCRIPTOR_DATA state; state.init(); return state; @@ -5216,61 +5216,61 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.KernelStartPointer = (uint32_t)value >> KERNELSTARTPOINTER_BIT_SHIFT; } - inline uint32_t getKernelStartPointer(void) const { + inline uint32_t getKernelStartPointer() const { return (TheStructure.Common.KernelStartPointer << KERNELSTARTPOINTER_BIT_SHIFT); } inline void setKernelStartPointerHigh(const uint32_t value) { TheStructure.Common.KernelStartPointerHigh = value; } - inline uint32_t getKernelStartPointerHigh(void) const { + inline uint32_t getKernelStartPointerHigh() const { return (TheStructure.Common.KernelStartPointerHigh); } inline void setSoftwareExceptionEnable(const uint32_t value) { TheStructure.Common.SoftwareExceptionEnable = value; } - inline uint32_t getSoftwareExceptionEnable(void) const { + inline uint32_t getSoftwareExceptionEnable() const { return (TheStructure.Common.SoftwareExceptionEnable); } inline void setMaskStackExceptionEnable(const uint32_t value) { TheStructure.Common.MaskStackExceptionEnable = value; } - inline uint32_t getMaskStackExceptionEnable(void) const { + inline uint32_t getMaskStackExceptionEnable() const { return (TheStructure.Common.MaskStackExceptionEnable); } inline void setIllegalOpcodeExceptionEnable(const uint32_t value) { TheStructure.Common.IllegalOpcodeExceptionEnable = value; } - inline uint32_t getIllegalOpcodeExceptionEnable(void) const { + inline uint32_t getIllegalOpcodeExceptionEnable() const { return (TheStructure.Common.IllegalOpcodeExceptionEnable); } inline void setFloatingPointMode(const FLOATING_POINT_MODE value) { TheStructure.Common.FloatingPointMode = value; } - inline FLOATING_POINT_MODE getFloatingPointMode(void) const { + inline FLOATING_POINT_MODE getFloatingPointMode() const { return static_cast(TheStructure.Common.FloatingPointMode); } inline void setSingleProgramFlow(const SINGLE_PROGRAM_FLOW value) { TheStructure.Common.SingleProgramFlow = value; } - inline SINGLE_PROGRAM_FLOW getSingleProgramFlow(void) const { + inline SINGLE_PROGRAM_FLOW getSingleProgramFlow() const { return static_cast(TheStructure.Common.SingleProgramFlow); } inline void setDenormMode(const DENORM_MODE value) { TheStructure.Common.DenormMode = value; } - inline DENORM_MODE getDenormMode(void) const { + inline DENORM_MODE getDenormMode() const { return static_cast(TheStructure.Common.DenormMode); } inline void setThreadPreemptionDisable(const THREAD_PREEMPTION_DISABLE value) { TheStructure.Common.ThreadPreemptionDisable = value; } - inline THREAD_PREEMPTION_DISABLE getThreadPreemptionDisable(void) const { + inline THREAD_PREEMPTION_DISABLE getThreadPreemptionDisable() const { return static_cast(TheStructure.Common.ThreadPreemptionDisable); } inline void setSamplerCount(const SAMPLER_COUNT value) { TheStructure.Common.SamplerCount = value; } - inline SAMPLER_COUNT getSamplerCount(void) const { + inline SAMPLER_COUNT getSamplerCount() const { return static_cast(TheStructure.Common.SamplerCount); } typedef enum tagSAMPLERSTATEPOINTER { @@ -5281,13 +5281,13 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SamplerStatePointer = (uint32_t)value >> SAMPLERSTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSamplerStatePointer(void) const { + inline uint32_t getSamplerStatePointer() const { return (TheStructure.Common.SamplerStatePointer << SAMPLERSTATEPOINTER_BIT_SHIFT); } inline void setBindingTableEntryCount(const uint32_t value) { TheStructure.Common.BindingTableEntryCount = value; } - inline uint32_t getBindingTableEntryCount(void) const { + inline uint32_t getBindingTableEntryCount() const { return (TheStructure.Common.BindingTableEntryCount); } typedef enum tagBINDINGTABLEPOINTER { @@ -5298,37 +5298,37 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.BindingTablePointer = (uint32_t)value >> BINDINGTABLEPOINTER_BIT_SHIFT; } - inline uint32_t getBindingTablePointer(void) const { + inline uint32_t getBindingTablePointer() const { return (TheStructure.Common.BindingTablePointer << BINDINGTABLEPOINTER_BIT_SHIFT); } inline void setNumberOfThreadsInGpgpuThreadGroup(const uint32_t value) { TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup = value; } - inline uint32_t getNumberOfThreadsInGpgpuThreadGroup(void) const { + inline uint32_t getNumberOfThreadsInGpgpuThreadGroup() const { return (TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup); } inline void setSharedLocalMemorySize(const SHARED_LOCAL_MEMORY_SIZE value) { TheStructure.Common.SharedLocalMemorySize = value; } - inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize(void) const { + inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize() const { return static_cast(TheStructure.Common.SharedLocalMemorySize); } inline void setBarrierEnable(const uint32_t value) { TheStructure.Common.BarrierEnable = (value > 0u) ? 1u : 0u; } - inline bool getBarrierEnable(void) const { + inline bool getBarrierEnable() const { return (TheStructure.Common.BarrierEnable); } inline void setRoundingMode(const ROUNDING_MODE value) { TheStructure.Common.RoundingMode = value; } - inline ROUNDING_MODE getRoundingMode(void) const { + inline ROUNDING_MODE getRoundingMode() const { return static_cast(TheStructure.Common.RoundingMode); } inline void setThreadGroupDispatchSize(const uint32_t value) { TheStructure.Common.ThreadGroupDispatchSize = value; } - inline uint32_t getThreadGroupDispatchSize(void) const { + inline uint32_t getThreadGroupDispatchSize() const { return (TheStructure.Common.ThreadGroupDispatchSize); } } INTERFACE_DESCRIPTOR_DATA; @@ -5447,7 +5447,7 @@ typedef struct tagCOMPUTE_WALKER { PARTITION_ID_SUPPORTED_MIN = 0x0, PARTITION_ID_SUPPORTED_MAX = 0xf, } PARTITION_ID; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_FIXED_SIZE; TheStructure.Common.CfeSubopcodeVariant = CFE_SUBOPCODE_VARIANT_STANDARD; @@ -5460,7 +5460,7 @@ typedef struct tagCOMPUTE_WALKER { TheStructure.Common.InterfaceDescriptor.init(); TheStructure.Common.PostSync.init(); } - static tagCOMPUTE_WALKER sInit(void) { + static tagCOMPUTE_WALKER sInit() { COMPUTE_WALKER state; state.init(); return state; @@ -5472,80 +5472,80 @@ typedef struct tagCOMPUTE_WALKER { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return TheStructure.Common.PredicateEnable; } inline void setWorkloadPartitionEnable(const bool value) { TheStructure.Common.WorkloadPartitionEnable = value; } - inline bool getWorkloadPartitionEnable(void) const { + inline bool getWorkloadPartitionEnable() const { return TheStructure.Common.WorkloadPartitionEnable; } inline void setIndirectParameterEnable(const bool value) { TheStructure.Common.IndirectParameterEnable = value; } - inline bool getIndirectParameterEnable(void) const { + inline bool getIndirectParameterEnable() const { return TheStructure.Common.IndirectParameterEnable; } inline void setUavWaitToProduce(const bool value) { TheStructure.Common.UavWaitToProduce = value; } - inline bool getUavWaitToProduce(void) const { + inline bool getUavWaitToProduce() const { return TheStructure.Common.UavWaitToProduce; } inline void setUavProducer(const bool value) { TheStructure.Common.UavProducer = value; } - inline bool getUavProducer(void) const { + inline bool getUavProducer() const { return TheStructure.Common.UavProducer; } inline void setUavConsumer(const bool value) { TheStructure.Common.UavConsumer = value; } - inline bool getUavConsumer(void) const { + inline bool getUavConsumer() const { return TheStructure.Common.UavConsumer; } inline void setSystolicModeEnable(const bool value) { TheStructure.Common.SystolicModeEnable = value; } - inline bool getSystolicModeEnable(void) const { + inline bool getSystolicModeEnable() const { return TheStructure.Common.SystolicModeEnable; } inline void setCfeSubopcodeVariant(const CFE_SUBOPCODE_VARIANT value) { TheStructure.Common.CfeSubopcodeVariant = value; } - inline CFE_SUBOPCODE_VARIANT getCfeSubopcodeVariant(void) const { + inline CFE_SUBOPCODE_VARIANT getCfeSubopcodeVariant() const { return static_cast(TheStructure.Common.CfeSubopcodeVariant); } inline void setCfeSubopcode(const CFE_SUBOPCODE value) { TheStructure.Common.CfeSubopcode = value; } - inline CFE_SUBOPCODE getCfeSubopcode(void) const { + inline CFE_SUBOPCODE getCfeSubopcode() const { return static_cast(TheStructure.Common.CfeSubopcode); } inline void setComputeCommandOpcode(const COMPUTE_COMMAND_OPCODE value) { TheStructure.Common.ComputeCommandOpcode = value; } - inline COMPUTE_COMMAND_OPCODE getComputeCommandOpcode(void) const { + inline COMPUTE_COMMAND_OPCODE getComputeCommandOpcode() const { return static_cast(TheStructure.Common.ComputeCommandOpcode); } inline void setIndirectDataLength(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1ffff); TheStructure.Common.IndirectDataLength = value; } - inline uint32_t getIndirectDataLength(void) const { + inline uint32_t getIndirectDataLength() const { return TheStructure.Common.IndirectDataLength; } inline void setPartitionType(const PARTITION_TYPE value) { TheStructure.Common.PartitionType = value; } - inline PARTITION_TYPE getPartitionType(void) const { + inline PARTITION_TYPE getPartitionType() const { return static_cast(TheStructure.Common.PartitionType); } typedef enum tagINDIRECTDATASTARTADDRESS { @@ -5556,151 +5556,151 @@ typedef struct tagCOMPUTE_WALKER { UNRECOVERABLE_IF(value > 0xffffffc0); TheStructure.Common.IndirectDataStartAddress = value >> INDIRECTDATASTARTADDRESS_BIT_SHIFT; } - inline uint32_t getIndirectDataStartAddress(void) const { + inline uint32_t getIndirectDataStartAddress() const { return TheStructure.Common.IndirectDataStartAddress << INDIRECTDATASTARTADDRESS_BIT_SHIFT; } inline void setMessageSimd(const uint32_t value) { TheStructure.Common.MessageSimd = value; } - inline uint32_t getMessageSimd(void) const { + inline uint32_t getMessageSimd() const { return (TheStructure.Common.MessageSimd); } inline void setTileLayout(const uint32_t value) { TheStructure.Common.TileLayout = value; } - inline uint32_t getTileLayout(void) const { + inline uint32_t getTileLayout() const { return (TheStructure.Common.TileLayout); } inline void setWalkOrder(const uint32_t value) { TheStructure.Common.WalkOrder = value; } - inline uint32_t getWalkOrder(void) const { + inline uint32_t getWalkOrder() const { return (TheStructure.Common.WalkOrder); } inline void setEmitInlineParameter(const uint32_t value) { TheStructure.Common.EmitInlineParameter = value; } - inline uint32_t getEmitInlineParameter(void) const { + inline uint32_t getEmitInlineParameter() const { return (TheStructure.Common.EmitInlineParameter); } inline void setEmitLocalId(const uint32_t value) { TheStructure.Common.EmitLocalId = value; } - inline uint32_t getEmitLocalId(void) const { + inline uint32_t getEmitLocalId() const { return (TheStructure.Common.EmitLocalId); } inline void setGenerateLocalId(const uint32_t value) { TheStructure.Common.GenerateLocalId = value; } - inline uint32_t getGenerateLocalId(void) const { + inline uint32_t getGenerateLocalId() const { return (TheStructure.Common.GenerateLocalId); } inline void setSimdSize(const SIMD_SIZE value) { TheStructure.Common.SimdSize = value; } - inline SIMD_SIZE getSimdSize(void) const { + inline SIMD_SIZE getSimdSize() const { return static_cast(TheStructure.Common.SimdSize); } inline void setExecutionMask(const uint32_t value) { TheStructure.Common.ExecutionMask = value; } - inline uint32_t getExecutionMask(void) const { + inline uint32_t getExecutionMask() const { return TheStructure.Common.ExecutionMask; } inline void setLocalXMaximum(const uint32_t value) { TheStructure.Common.LocalXMaximum = value; } - inline uint32_t getLocalXMaximum(void) const { + inline uint32_t getLocalXMaximum() const { return (TheStructure.Common.LocalXMaximum); } inline void setLocalYMaximum(const uint32_t value) { TheStructure.Common.LocalYMaximum = value; } - inline uint32_t getLocalYMaximum(void) const { + inline uint32_t getLocalYMaximum() const { return (TheStructure.Common.LocalYMaximum); } inline void setLocalZMaximum(const uint32_t value) { TheStructure.Common.LocalZMaximum = value; } - inline uint32_t getLocalZMaximum(void) const { + inline uint32_t getLocalZMaximum() const { return (TheStructure.Common.LocalZMaximum); } inline void setThreadGroupIdXDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdXDimension = value; } - inline uint32_t getThreadGroupIdXDimension(void) const { + inline uint32_t getThreadGroupIdXDimension() const { return TheStructure.Common.ThreadGroupIdXDimension; } inline void setThreadGroupIdYDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdYDimension = value; } - inline uint32_t getThreadGroupIdYDimension(void) const { + inline uint32_t getThreadGroupIdYDimension() const { return TheStructure.Common.ThreadGroupIdYDimension; } inline void setThreadGroupIdZDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdZDimension = value; } - inline uint32_t getThreadGroupIdZDimension(void) const { + inline uint32_t getThreadGroupIdZDimension() const { return TheStructure.Common.ThreadGroupIdZDimension; } inline void setThreadGroupIdStartingX(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingX = value; } - inline uint32_t getThreadGroupIdStartingX(void) const { + inline uint32_t getThreadGroupIdStartingX() const { return TheStructure.Common.ThreadGroupIdStartingX; } inline void setThreadGroupIdStartingY(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingY = value; } - inline uint32_t getThreadGroupIdStartingY(void) const { + inline uint32_t getThreadGroupIdStartingY() const { return TheStructure.Common.ThreadGroupIdStartingY; } inline void setThreadGroupIdStartingZ(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingZ = value; } - inline uint32_t getThreadGroupIdStartingZ(void) const { + inline uint32_t getThreadGroupIdStartingZ() const { return TheStructure.Common.ThreadGroupIdStartingZ; } inline void setPartitionId(const uint64_t value) { TheStructure.Common.PartitionId = value; } - inline uint64_t getPartitionId(void) const { + inline uint64_t getPartitionId() const { return TheStructure.Common.PartitionId; } inline void setPartitionSize(const uint64_t value) { TheStructure.Common.PartitionSize = value; } - inline uint64_t getPartitionSize(void) const { + inline uint64_t getPartitionSize() const { return TheStructure.Common.PartitionSize; } inline void setPreemptX(const uint32_t value) { TheStructure.Common.PreemptX = value; } - inline uint32_t getPreemptX(void) const { + inline uint32_t getPreemptX() const { return TheStructure.Common.PreemptX; } inline void setPreemptY(const uint32_t value) { TheStructure.Common.PreemptY = value; } - inline uint32_t getPreemptY(void) const { + inline uint32_t getPreemptY() const { return TheStructure.Common.PreemptY; } inline void setPreemptZ(const uint32_t value) { TheStructure.Common.PreemptZ = value; } - inline uint32_t getPreemptZ(void) const { + inline uint32_t getPreemptZ() const { return TheStructure.Common.PreemptZ; } inline void setInterfaceDescriptor(const INTERFACE_DESCRIPTOR_DATA &value) { TheStructure.Common.InterfaceDescriptor = value; } - inline INTERFACE_DESCRIPTOR_DATA &getInterfaceDescriptor(void) { + inline INTERFACE_DESCRIPTOR_DATA &getInterfaceDescriptor() { return TheStructure.Common.InterfaceDescriptor; } inline void setPostSync(const POSTSYNC_DATA &value) { TheStructure.Common.PostSync = value; } - inline POSTSYNC_DATA &getPostSync(void) { + inline POSTSYNC_DATA &getPostSync() { return TheStructure.Common.PostSync; } inline uint32_t *getInlineDataPointer() { @@ -5770,7 +5770,7 @@ typedef struct tagCFE_STATE { OVER_DISPATCH_CONTROL_NORMAL = 0x2, OVER_DISPATCH_CONTROL_HIGH = 0x3, } OVER_DISPATCH_CONTROL; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.CfeSubopcodeVariant = CFE_SUBOPCODE_VARIANT_STANDARD; @@ -5780,7 +5780,7 @@ typedef struct tagCFE_STATE { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.OverDispatchControl = OVER_DISPATCH_CONTROL_NORMAL; } - static tagCFE_STATE sInit(void) { + static tagCFE_STATE sInit() { CFE_STATE state; state.init(); return state; @@ -5792,19 +5792,19 @@ typedef struct tagCFE_STATE { inline void setCfeSubopcodeVariant(const CFE_SUBOPCODE_VARIANT value) { TheStructure.Common.CfeSubopcodeVariant = value; } - inline CFE_SUBOPCODE_VARIANT getCfeSubopcodeVariant(void) const { + inline CFE_SUBOPCODE_VARIANT getCfeSubopcodeVariant() const { return static_cast(TheStructure.Common.CfeSubopcodeVariant); } inline void setCfeSubopcode(const CFE_SUBOPCODE value) { TheStructure.Common.CfeSubopcode = value; } - inline CFE_SUBOPCODE getCfeSubopcode(void) const { + inline CFE_SUBOPCODE getCfeSubopcode() const { return static_cast(TheStructure.Common.CfeSubopcode); } inline void setComputeCommandOpcode(const COMPUTE_COMMAND_OPCODE value) { TheStructure.Common.ComputeCommandOpcode = value; } - inline COMPUTE_COMMAND_OPCODE getComputeCommandOpcode(void) const { + inline COMPUTE_COMMAND_OPCODE getComputeCommandOpcode() const { return static_cast(TheStructure.Common.ComputeCommandOpcode); } typedef enum tagSCRATCHSPACEBUFFER { @@ -5815,20 +5815,20 @@ typedef struct tagCFE_STATE { UNRECOVERABLE_IF(value > 0xfffffc00L); TheStructure.Common.ScratchSpaceBuffer = static_cast(value) >> SCRATCHSPACEBUFFER_BIT_SHIFT; } - inline uint64_t getScratchSpaceBuffer(void) const { + inline uint64_t getScratchSpaceBuffer() const { return TheStructure.Common.ScratchSpaceBuffer << SCRATCHSPACEBUFFER_BIT_SHIFT; } inline void setNumberOfWalkers(const uint32_t value) { UNRECOVERABLE_IF(value > 0x38); TheStructure.Common.NumberOfWalkers = value - 1; } - inline uint32_t getNumberOfWalkers(void) const { + inline uint32_t getNumberOfWalkers() const { return TheStructure.Common.NumberOfWalkers + 1; } inline void setFusedEuDispatch(const bool value) { TheStructure.Common.FusedEuDispatch = value; } - inline bool getFusedEuDispatch(void) const { + inline bool getFusedEuDispatch() const { return TheStructure.Common.FusedEuDispatch; } inline void setLargeGRFThreadAdjustDisable(const bool value) { @@ -5852,20 +5852,20 @@ typedef struct tagCFE_STATE { inline void setSingleSliceDispatchCcsMode(const bool value) { TheStructure.Common.SingleSliceDispatchCcsMode = value; } - inline bool getSingleSliceDispatchCcsMode(void) const { + inline bool getSingleSliceDispatchCcsMode() const { return TheStructure.Common.SingleSliceDispatchCcsMode; } inline void setOverDispatchControl(const OVER_DISPATCH_CONTROL value) { TheStructure.Common.OverDispatchControl = value; } - inline OVER_DISPATCH_CONTROL getOverDispatchControl(void) const { + inline OVER_DISPATCH_CONTROL getOverDispatchControl() const { return static_cast(TheStructure.Common.OverDispatchControl); } inline void setMaximumNumberOfThreads(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.MaximumNumberOfThreads = value; } - inline uint32_t getMaximumNumberOfThreads(void) const { + inline uint32_t getMaximumNumberOfThreads() const { return TheStructure.Common.MaximumNumberOfThreads; } } CFE_STATE; @@ -5889,12 +5889,12 @@ typedef struct tagMI_ARB_CHECK { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_ARB_CHECK; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_ARB_CHECK sInit(void) { + static tagMI_ARB_CHECK sInit() { MI_ARB_CHECK state; state.init(); return state; @@ -5907,14 +5907,14 @@ typedef struct tagMI_ARB_CHECK { TheStructure.Common.Pre_FetchDisable = value; TheStructure.Common.MaskBits = 1 << 0; //PreFetchDisable is at bit0, so set bit0 of mask to 1 } - inline uint32_t getPreFetchDisable(void) const { + inline uint32_t getPreFetchDisable() const { return TheStructure.Common.Pre_FetchDisable; } inline void setMaskBits(const uint32_t value) { DEBUG_BREAK_IF(value > 0xff00); TheStructure.Common.MaskBits = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return TheStructure.Common.MaskBits; } } MI_ARB_CHECK; @@ -5978,7 +5978,7 @@ typedef struct tagMI_BATCH_BUFFER_START { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.AddressSpaceIndicator = ADDRESS_SPACE_INDICATOR_PPGTT; @@ -5987,7 +5987,7 @@ typedef struct tagMI_BATCH_BUFFER_START { TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; TheStructure.Mi_Mode_Nestedbatchbufferenableis1.NestedLevelBatchBuffer = NESTED_LEVEL_BATCH_BUFFER_CHAIN; } - static tagMI_BATCH_BUFFER_START sInit(void) { + static tagMI_BATCH_BUFFER_START sInit() { MI_BATCH_BUFFER_START state; state.init(); return state; @@ -5999,49 +5999,49 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setAddressSpaceIndicator(const ADDRESS_SPACE_INDICATOR value) { TheStructure.Common.AddressSpaceIndicator = value; } - inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator(void) const { + inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator() const { return static_cast(TheStructure.Common.AddressSpaceIndicator); } inline void setResourceStreamerEnable(const bool value) { TheStructure.Common.ResourceStreamerEnable = value; } - inline bool getResourceStreamerEnable(void) const { + inline bool getResourceStreamerEnable() const { return TheStructure.Common.ResourceStreamerEnable; } inline void setPredicationEnable(const uint32_t value) { TheStructure.Common.PredicationEnable = value; } - inline uint32_t getPredicationEnable(void) const { + inline uint32_t getPredicationEnable() const { return TheStructure.Common.PredicationEnable; } inline void setAddOffsetEnable(const bool value) { TheStructure.Common.AddOffsetEnable = value; } - inline bool getAddOffsetEnable(void) const { + inline bool getAddOffsetEnable() const { return TheStructure.Common.AddOffsetEnable; } inline void setEnableCommandCache(const uint32_t value) { TheStructure.Common.EnableCommandCache = value; } - inline uint32_t getEnableCommandCache(void) const { + inline uint32_t getEnableCommandCache() const { return TheStructure.Common.EnableCommandCache; } inline void setPoshEnable(const uint32_t value) { TheStructure.Common.PoshEnable = value; } - inline uint32_t getPoshEnable(void) const { + inline uint32_t getPoshEnable() const { return TheStructure.Common.PoshEnable; } inline void setPoshStart(const uint32_t value) { TheStructure.Common.PoshStart = value; } - inline uint32_t getPoshStart(void) const { + inline uint32_t getPoshStart() const { return TheStructure.Common.PoshStart; } inline void setSecondLevelBatchBuffer(const SECOND_LEVEL_BATCH_BUFFER value) { TheStructure.Common.SecondLevelBatchBuffer = value; } - inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer(void) const { + inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer() const { return static_cast(TheStructure.Common.SecondLevelBatchBuffer); } typedef enum tagBATCHBUFFERSTARTADDRESS { @@ -6054,16 +6054,16 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setBatchBufferStartAddressGraphicsaddress472(const uint64_t value) { TheStructure.Common.BatchBufferStartAddress = value >> BATCHBUFFERSTARTADDRESS_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddress(void) const { + inline uint64_t getBatchBufferStartAddress() const { return TheStructure.Common.BatchBufferStartAddress << BATCHBUFFERSTARTADDRESS_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddressGraphicsaddress472(void) const { + 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; } - inline NESTED_LEVEL_BATCH_BUFFER getNestedLevelBatchBuffer(void) const { + inline NESTED_LEVEL_BATCH_BUFFER getNestedLevelBatchBuffer() const { return static_cast(TheStructure.Mi_Mode_Nestedbatchbufferenableis1.NestedLevelBatchBuffer); } } MI_BATCH_BUFFER_START; @@ -6103,14 +6103,14 @@ typedef struct tagMI_LOAD_REGISTER_MEM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_MEM sInit(void) { + static tagMI_LOAD_REGISTER_MEM sInit() { MI_LOAD_REGISTER_MEM state; state.init(); return state; @@ -6124,43 +6124,43 @@ typedef struct tagMI_LOAD_REGISTER_MEM { DEBUG_BREAK_IF(value > 0x7e00); TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); } inline void setMemoryObjectControlStateEnable(const bool value) { TheStructure.Common.MemoryObjectControlStateEnable = value; } - inline bool getMemoryObjectControlStateEnable(void) const { + inline bool getMemoryObjectControlStateEnable() const { return TheStructure.Common.MemoryObjectControlStateEnable; } inline void setVirtualEngineIdOffsetEnable(const bool value) { TheStructure.Common.VirtualEngineIdOffsetEnable = value; } - inline bool getVirtualEngineIdOffsetEnable(void) const { + inline bool getVirtualEngineIdOffsetEnable() const { return TheStructure.Common.VirtualEngineIdOffsetEnable; } inline void setMmioRemapEnable(const bool value) { TheStructure.Common.MmioRemapEnable = value; } - inline bool getMmioRemapEnable(void) const { + inline bool getMmioRemapEnable() const { return TheStructure.Common.MmioRemapEnable; } inline void setAddCsMmioStartOffset(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline uint32_t getAddCsMmioStartOffset(void) const { + inline uint32_t getAddCsMmioStartOffset() const { return TheStructure.Common.AddCsMmioStartOffset; } inline void setAsyncModeEnable(const bool value) { TheStructure.Common.AsyncModeEnable = value; } - inline bool getAsyncModeEnable(void) const { + inline bool getAsyncModeEnable() const { return TheStructure.Common.AsyncModeEnable; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } typedef enum tagREGISTERADDRESS { @@ -6171,7 +6171,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { DEBUG_BREAK_IF(value > 0x7ffffc); TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT; } typedef enum tagMEMORYADDRESS { @@ -6182,7 +6182,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { DEBUG_BREAK_IF(value > 0xfffffffffffffffcL); TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT; } } MI_LOAD_REGISTER_MEM; @@ -6218,13 +6218,13 @@ typedef struct tagMI_LOAD_REGISTER_REG { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_REG; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_REG sInit(void) { + static tagMI_LOAD_REGISTER_REG sInit() { MI_LOAD_REGISTER_REG state; state.init(); return state; @@ -6236,25 +6236,25 @@ typedef struct tagMI_LOAD_REGISTER_REG { inline void setMmioRemapEnableSource(const bool value) { TheStructure.Common.MmioRemapEnableSource = value; } - inline bool getMmioRemapEnableSource(void) const { + inline bool getMmioRemapEnableSource() const { return TheStructure.Common.MmioRemapEnableSource; } inline void setMmioRemapEnableDestination(const bool value) { TheStructure.Common.MmioRemapEnableDestination = value; } - inline bool getMmioRemapEnableDestination(void) const { + inline bool getMmioRemapEnableDestination() const { return TheStructure.Common.MmioRemapEnableDestination; } inline void setAddCsMmioStartOffsetSource(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffsetSource = value; } - inline uint32_t getAddCsMmioStartOffsetSource(void) const { + inline uint32_t getAddCsMmioStartOffsetSource() const { return TheStructure.Common.AddCsMmioStartOffsetSource; } inline void setAddCsMmioStartOffsetDestination(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffsetDestination = value; } - inline uint32_t getAddCsMmioStartOffsetDestination(void) const { + inline uint32_t getAddCsMmioStartOffsetDestination() const { return TheStructure.Common.AddCsMmioStartOffsetDestination; } typedef enum tagSOURCEREGISTERADDRESS { @@ -6265,7 +6265,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { DEBUG_BREAK_IF(value > 0x7ffffc); TheStructure.Common.SourceRegisterAddress = value >> SOURCEREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getSourceRegisterAddress(void) const { + inline uint32_t getSourceRegisterAddress() const { return TheStructure.Common.SourceRegisterAddress << SOURCEREGISTERADDRESS_BIT_SHIFT; } typedef enum tagDESTINATIONREGISTERADDRESS { @@ -6276,7 +6276,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { DEBUG_BREAK_IF(value > 0x7ffffc); TheStructure.Common.DestinationRegisterAddress = value >> DESTINATIONREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getDestinationRegisterAddress(void) const { + inline uint32_t getDestinationRegisterAddress() const { return TheStructure.Common.DestinationRegisterAddress << DESTINATIONREGISTERADDRESS_BIT_SHIFT; } } MI_LOAD_REGISTER_REG; @@ -6334,7 +6334,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.CompareOperation = @@ -6345,7 +6345,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_SEMAPHORE_WAIT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_SEMAPHORE_WAIT sInit(void) { + static tagMI_SEMAPHORE_WAIT sInit() { MI_SEMAPHORE_WAIT state; state.init(); return state; @@ -6357,38 +6357,38 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setCompareOperation(const COMPARE_OPERATION value) { TheStructure.Common.CompareOperation = value; } - inline COMPARE_OPERATION getCompareOperation(void) const { + inline COMPARE_OPERATION getCompareOperation() const { return static_cast(TheStructure.Common.CompareOperation); } inline void setWaitMode(const WAIT_MODE value) { TheStructure.Common.WaitMode = value; } - inline WAIT_MODE getWaitMode(void) const { + inline WAIT_MODE getWaitMode() const { return static_cast(TheStructure.Common.WaitMode); } inline void setRegisterPollMode(const REGISTER_POLL_MODE value) { TheStructure.Common.RegisterPollMode = value; } - inline REGISTER_POLL_MODE getRegisterPollMode(void) const { + inline REGISTER_POLL_MODE getRegisterPollMode() const { return static_cast( TheStructure.Common.RegisterPollMode); } inline void setWorkloadPartitionIdOffsetEnable(const bool value) { TheStructure.Common.WorkloadPartitionIdOffsetEnable = value; } - inline bool getWorkloadPartitionIdOffsetEnable(void) const { + inline bool getWorkloadPartitionIdOffsetEnable() const { return TheStructure.Common.WorkloadPartitionIdOffsetEnable; } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } inline void setSemaphoreDataDword(const uint32_t value) { TheStructure.Common.SemaphoreDataDword = value; } - inline uint32_t getSemaphoreDataDword(void) const { + inline uint32_t getSemaphoreDataDword() const { return TheStructure.Common.SemaphoreDataDword; } typedef enum tagSEMAPHOREADDRESS { @@ -6398,14 +6398,14 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setSemaphoreGraphicsAddress(const uint64_t value) { TheStructure.Common.SemaphoreAddress = value >> SEMAPHOREADDRESS_BIT_SHIFT; } - inline uint64_t getSemaphoreGraphicsAddress(void) const { + inline uint64_t getSemaphoreGraphicsAddress() const { return TheStructure.Common.SemaphoreAddress << SEMAPHOREADDRESS_BIT_SHIFT; } inline void setWaitTokenNumber(const uint32_t value) { DEBUG_BREAK_IF(value > 0x3e0); TheStructure.Common.WaitTokenNumber = value; } - inline uint32_t getWaitTokenNumber(void) const { + inline uint32_t getWaitTokenNumber() const { return TheStructure.Common.WaitTokenNumber; } } MI_SEMAPHORE_WAIT; @@ -6444,13 +6444,13 @@ typedef struct tagMI_STORE_DATA_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_STORE_DWORD; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_DATA_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_DATA_IMM sInit(void) { + static tagMI_STORE_DATA_IMM sInit() { MI_STORE_DATA_IMM state; state.init(); return state; @@ -6462,13 +6462,13 @@ typedef struct tagMI_STORE_DATA_IMM { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setWorkloadPartitionIdOffsetEnable(const bool value) { TheStructure.Common.WorkloadPartitionIdOffsetEnable = value; } - inline bool getWorkloadPartitionIdOffsetEnable(void) const { + inline bool getWorkloadPartitionIdOffsetEnable() const { return TheStructure.Common.WorkloadPartitionIdOffsetEnable; } inline void @@ -6476,31 +6476,31 @@ typedef struct tagMI_STORE_DATA_IMM { DEBUG_BREAK_IF(value > 0xfc000); TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); } inline void setMemoryObjectControlStateEnable(const bool value) { TheStructure.Common.MemoryObjectControlStateEnable = value; } - inline bool getMemoryObjectControlStateEnable(void) const { + inline bool getMemoryObjectControlStateEnable() const { return TheStructure.Common.MemoryObjectControlStateEnable; } inline void setStoreQword(const bool value) { TheStructure.Common.StoreQword = value; } - inline bool getStoreQword(void) const { + inline bool getStoreQword() const { return TheStructure.Common.StoreQword; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } inline void setCoreModeEnable(const uint64_t value) { TheStructure.Common.CoreModeEnable = value; } - inline uint64_t getCoreModeEnable(void) const { + inline uint64_t getCoreModeEnable() const { return TheStructure.Common.CoreModeEnable; } typedef enum tagADDRESS { @@ -6511,19 +6511,19 @@ typedef struct tagMI_STORE_DATA_IMM { DEBUG_BREAK_IF(value > 0xfffffffffffcL); TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint64_t getAddress(void) const { + inline uint64_t getAddress() const { return TheStructure.Common.Address << ADDRESS_BIT_SHIFT; } inline void setDataDword0(const uint32_t value) { TheStructure.Common.DataDword0 = value; } - inline uint32_t getDataDword0(void) const { + inline uint32_t getDataDword0() const { return TheStructure.Common.DataDword0; } inline void setDataDword1(const uint32_t value) { TheStructure.Common.DataDword1 = value; } - inline uint32_t getDataDword1(void) const { + inline uint32_t getDataDword1() const { return TheStructure.Common.DataDword1; } } MI_STORE_DATA_IMM; @@ -6563,14 +6563,14 @@ typedef struct tagMI_STORE_REGISTER_MEM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_REGISTER_MEM sInit(void) { + static tagMI_STORE_REGISTER_MEM sInit() { MI_STORE_REGISTER_MEM state; state.init(); return state; @@ -6584,43 +6584,43 @@ typedef struct tagMI_STORE_REGISTER_MEM { DEBUG_BREAK_IF(value > 0x7e00); TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); } inline void setMemoryObjectControlStateEnable(const bool value) { TheStructure.Common.MemoryObjectControlStateEnable = value; } - inline bool getMemoryObjectControlStateEnable(void) const { + inline bool getMemoryObjectControlStateEnable() const { return TheStructure.Common.MemoryObjectControlStateEnable; } inline void setWorkloadPartitionIdOffsetEnable(const bool value) { TheStructure.Common.WorkloadPartitionIdOffsetEnable = value; } - inline bool getWorkloadPartitionIdOffsetEnable(void) const { + inline bool getWorkloadPartitionIdOffsetEnable() const { return TheStructure.Common.WorkloadPartitionIdOffsetEnable; } inline void setMmioRemapEnable(const bool value) { TheStructure.Common.MmioRemapEnable = value; } - inline bool getMmioRemapEnable(void) const { + inline bool getMmioRemapEnable() const { return TheStructure.Common.MmioRemapEnable; } inline void setAddCsMmioStartOffset(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline uint32_t getAddCsMmioStartOffset(void) const { + inline uint32_t getAddCsMmioStartOffset() const { return TheStructure.Common.AddCsMmioStartOffset; } inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return TheStructure.Common.PredicateEnable; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } typedef enum tagREGISTERADDRESS { @@ -6631,7 +6631,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { DEBUG_BREAK_IF(value > 0x7ffffc); TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT; } typedef enum tagMEMORYADDRESS { @@ -6642,7 +6642,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { DEBUG_BREAK_IF(value > 0xfffffffffffffffcL); TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT; } } MI_STORE_REGISTER_MEM; @@ -6683,7 +6683,7 @@ typedef struct tagPIPELINE_SELECT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.PipelineSelection = PIPELINE_SELECTION_3D; TheStructure.Common._3DCommandSubOpcode = @@ -6693,7 +6693,7 @@ typedef struct tagPIPELINE_SELECT { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_SINGLE_DW; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagPIPELINE_SELECT sInit(void) { + static tagPIPELINE_SELECT sInit() { PIPELINE_SELECT state; state.init(); return state; @@ -6705,45 +6705,45 @@ typedef struct tagPIPELINE_SELECT { inline void setPipelineSelection(const PIPELINE_SELECTION value) { TheStructure.Common.PipelineSelection = value; } - inline PIPELINE_SELECTION getPipelineSelection(void) const { + inline PIPELINE_SELECTION getPipelineSelection() const { return static_cast( TheStructure.Common.PipelineSelection); } inline void setRenderSliceCommonPowerGateEnable(const bool value) { TheStructure.Common.RenderSliceCommonPowerGateEnable = value; } - inline bool getRenderSliceCommonPowerGateEnable(void) const { + inline bool getRenderSliceCommonPowerGateEnable() const { return TheStructure.Common.RenderSliceCommonPowerGateEnable; } inline void setRenderSamplerPowerGateEnable(const bool value) { TheStructure.Common.RenderSamplerPowerGateEnable = value; } - inline bool getRenderSamplerPowerGateEnable(void) const { + inline bool getRenderSamplerPowerGateEnable() const { return TheStructure.Common.RenderSamplerPowerGateEnable; } inline void setMediaSamplerDopClockGateEnable(const bool value) { TheStructure.Common.MediaSamplerDopClockGateEnable = value; } - inline bool getMediaSamplerDopClockGateEnable(void) const { + inline bool getMediaSamplerDopClockGateEnable() const { return TheStructure.Common.MediaSamplerDopClockGateEnable; } inline void setMediaSamplerPowerClockGateDisable(const bool value) { TheStructure.Common.MediaSamplerPowerClockGateDisable = value; } - inline bool getMediaSamplerPowerClockGateDisable(void) const { + inline bool getMediaSamplerPowerClockGateDisable() const { return TheStructure.Common.MediaSamplerPowerClockGateDisable; } inline void setSystolicModeEnable(const bool value) { TheStructure.Common.SystolicModeEnable = value; } - inline bool getSystolicModeEnable(void) const { + inline bool getSystolicModeEnable() const { return TheStructure.Common.SystolicModeEnable; } inline void setMaskBits(const uint32_t value) { DEBUG_BREAK_IF(value > 0xff00); TheStructure.Common.MaskBits = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return TheStructure.Common.MaskBits; } } PIPELINE_SELECT; @@ -6808,7 +6808,7 @@ typedef struct tagSTATE_COMPUTE_MODE { DISABLE_ATOMIC_ON_CLEAR_DATA_ENABLE = 0x0, DISABLE_ATOMIC_ON_CLEAR_DATA_DISABLE = 0x1, } DISABLE_ATOMIC_ON_CLEAR_DATA; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_COMPUTE_MODE; @@ -6820,7 +6820,7 @@ typedef struct tagSTATE_COMPUTE_MODE { TheStructure.Common.DisableSlmReadMergeOptimization = DISABLE_SLM_READ_MERGE_OPTIMIZATION_ENABLED; TheStructure.Common.DisableAtomicOnClearData = DISABLE_ATOMIC_ON_CLEAR_DATA_ENABLE; } - static tagSTATE_COMPUTE_MODE sInit(void) { + static tagSTATE_COMPUTE_MODE sInit() { STATE_COMPUTE_MODE state; state.init(); return state; @@ -6832,62 +6832,62 @@ typedef struct tagSTATE_COMPUTE_MODE { inline void setDisableSupportForMultiGpuFence(const bool value) { TheStructure.Common.DisableSupportForMultiGpuFence = value; } - inline bool getDisableSupportForMultiGpuFence(void) const { + inline bool getDisableSupportForMultiGpuFence() const { return TheStructure.Common.DisableSupportForMultiGpuFence; } inline void setForceDisableSupportForMultiGpuAtomics(const bool value) { TheStructure.Common.ForceDisableSupportForMultiGpuAtomics = value; } - inline bool getForceDisableSupportForMultiGpuAtomics(void) const { + inline bool getForceDisableSupportForMultiGpuAtomics() const { return TheStructure.Common.ForceDisableSupportForMultiGpuAtomics; } inline void setForceDisableSupportForMultiGpuPartialWrites(const bool value) { TheStructure.Common.ForceDisableSupportForMultiGpuPartialWrites = value; } - inline bool getForceDisableSupportForMultiGpuPartialWrites(void) const { + inline bool getForceDisableSupportForMultiGpuPartialWrites() const { return TheStructure.Common.ForceDisableSupportForMultiGpuPartialWrites; } inline void setForceNonCoherent(const FORCE_NON_COHERENT value) { TheStructure.Common.ForceNonCoherent = value; } - inline FORCE_NON_COHERENT getForceNonCoherent(void) const { + inline FORCE_NON_COHERENT getForceNonCoherent() const { return static_cast(TheStructure.Common.ForceNonCoherent); } inline void setFastClearDisabledOnCompressedSurface(const FAST_CLEAR_DISABLED_ON_COMPRESSED_SURFACE value) { TheStructure.Common.FastClearDisabledOnCompressedSurface = value; } - inline FAST_CLEAR_DISABLED_ON_COMPRESSED_SURFACE getFastClearDisabledOnCompressedSurface(void) const { + inline FAST_CLEAR_DISABLED_ON_COMPRESSED_SURFACE getFastClearDisabledOnCompressedSurface() const { return static_cast(TheStructure.Common.FastClearDisabledOnCompressedSurface); } inline void setDisableSlmReadMergeOptimization(const DISABLE_SLM_READ_MERGE_OPTIMIZATION value) { TheStructure.Common.DisableSlmReadMergeOptimization = value; } - inline DISABLE_SLM_READ_MERGE_OPTIMIZATION getDisableSlmReadMergeOptimization(void) const { + inline DISABLE_SLM_READ_MERGE_OPTIMIZATION getDisableSlmReadMergeOptimization() const { return static_cast(TheStructure.Common.DisableSlmReadMergeOptimization); } inline void setDisableAtomicOnClearData(const DISABLE_ATOMIC_ON_CLEAR_DATA value) { TheStructure.Common.DisableAtomicOnClearData = value; } - inline DISABLE_ATOMIC_ON_CLEAR_DATA getDisableAtomicOnClearData(void) const { + inline DISABLE_ATOMIC_ON_CLEAR_DATA getDisableAtomicOnClearData() const { return static_cast(TheStructure.Common.DisableAtomicOnClearData); } inline void setDisableL1InvalidateForNonL1CacheableWrites(const bool value) { TheStructure.Common.DisableL1InvalidateForNonL1CacheableWrites = value; } - inline bool getDisableL1InvalidateForNonL1CacheableWrites(void) const { + inline bool getDisableL1InvalidateForNonL1CacheableWrites() const { return TheStructure.Common.DisableL1InvalidateForNonL1CacheableWrites; } inline void setLargeGrfMode(const bool value) { TheStructure.Common.LargeGrfMode = value; } - inline bool getLargeGrfMode(void) const { + inline bool getLargeGrfMode() const { return TheStructure.Common.LargeGrfMode; } inline void setMaskBits(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.MaskBits = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return TheStructure.Common.MaskBits; } } STATE_COMPUTE_MODE; @@ -6930,7 +6930,7 @@ typedef struct tag_3DSTATE_BINDING_TABLE_POOL_ALLOC { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_3DSTATE_BINDING_TABLE_POOL_ALLOC; @@ -6939,7 +6939,7 @@ typedef struct tag_3DSTATE_BINDING_TABLE_POOL_ALLOC { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.BindingTablePoolBufferSize = 0; } - static tag_3DSTATE_BINDING_TABLE_POOL_ALLOC sInit(void) { + static tag_3DSTATE_BINDING_TABLE_POOL_ALLOC sInit() { _3DSTATE_BINDING_TABLE_POOL_ALLOC state; state.init(); return state; @@ -6951,14 +6951,14 @@ typedef struct tag_3DSTATE_BINDING_TABLE_POOL_ALLOC { inline void setSurfaceObjectControlStateEncryptedData(const bool value) { TheStructure.Common.SurfaceObjectControlStateEncryptedData = value; } - inline bool getSurfaceObjectControlStateEncryptedData(void) const { + inline bool getSurfaceObjectControlStateEncryptedData() const { return TheStructure.Common.SurfaceObjectControlStateEncryptedData; } inline void setSurfaceObjectControlStateIndexToMocsTables(const uint64_t value) { UNRECOVERABLE_IF(value > 0x7eL); TheStructure.Common.SurfaceObjectControlStateIndexToMocsTables = value >> 1; } - inline uint64_t getSurfaceObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getSurfaceObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceObjectControlStateIndexToMocsTables << 1); } typedef enum tagBINDINGTABLEPOOLBASEADDRESS { @@ -6968,11 +6968,11 @@ typedef struct tag_3DSTATE_BINDING_TABLE_POOL_ALLOC { inline void setBindingTablePoolBaseAddress(const uint64_t value) { TheStructure.Common.BindingTablePoolBaseAddress = value >> BINDINGTABLEPOOLBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindingTablePoolBaseAddress(void) const { + inline uint64_t getBindingTablePoolBaseAddress() const { return TheStructure.Common.BindingTablePoolBaseAddress << BINDINGTABLEPOOLBASEADDRESS_BIT_SHIFT; } inline void setBindingTablePoolBufferSize(const uint32_t value) { TheStructure.Common.BindingTablePoolBufferSize = value; } - inline uint32_t getBindingTablePoolBufferSize(void) const { return TheStructure.Common.BindingTablePoolBufferSize; } + inline uint32_t getBindingTablePoolBufferSize() const { return TheStructure.Common.BindingTablePoolBufferSize; } } _3DSTATE_BINDING_TABLE_POOL_ALLOC; STATIC_ASSERT(16 == sizeof(_3DSTATE_BINDING_TABLE_POOL_ALLOC)); @@ -6995,11 +6995,11 @@ typedef struct tagL3_FLUSH_ADDRESS_RANGE { L3_FLUSH_EVICTION_POLICY_FLUSH_L3_WITH_OUT_EVICTION = 0x1, L3_FLUSH_EVICTION_POLICY_DISCARD = 0x2, } L3_FLUSH_EVICTION_POLICY; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.L3FlushEvictionPolicy = L3_FLUSH_EVICTION_POLICY_FLUSH_L3_WITH_EVICTION; } - static tagL3_FLUSH_ADDRESS_RANGE sInit(void) { + static tagL3_FLUSH_ADDRESS_RANGE sInit() { L3_FLUSH_ADDRESS_RANGE state; state.init(); return state; @@ -7018,7 +7018,7 @@ typedef struct tagL3_FLUSH_ADDRESS_RANGE { TheStructure.Common.AddressLow = value >> ADDRESSLOW_BIT_SHIFT; } - inline uint64_t getAddressLow(void) const { + inline uint64_t getAddressLow() const { return (TheStructure.Common.AddressLow << ADDRESSLOW_BIT_SHIFT); } @@ -7042,14 +7042,14 @@ typedef struct tagL3_FLUSH_ADDRESS_RANGE { inline void setL3FlushEvictionPolicy(const L3_FLUSH_EVICTION_POLICY value) { TheStructure.Common.L3FlushEvictionPolicy = value; } - inline L3_FLUSH_EVICTION_POLICY getL3FlushEvictionPolicy(void) const { + inline L3_FLUSH_EVICTION_POLICY getL3FlushEvictionPolicy() const { return static_cast(TheStructure.Common.L3FlushEvictionPolicy); } inline void setAddressMask(const uint64_t value) { UNRECOVERABLE_IF(value > 0x1f8); TheStructure.Common.AddressMask = value; } - inline uint32_t getAddressMask(void) const { + inline uint32_t getAddressMask() const { return TheStructure.Common.AddressMask; } } L3_FLUSH_ADDRESS_RANGE; @@ -7066,7 +7066,7 @@ struct L3_CONTROL_POST_SYNC_DATA { uint32_t RawData[4]; } TheStructure; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); } @@ -7077,13 +7077,13 @@ struct L3_CONTROL_POST_SYNC_DATA { inline void setAddress(const uint64_t value) { TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint64_t getAddress(void) const { + inline uint64_t getAddress() const { return TheStructure.Common.Address << ADDRESS_BIT_SHIFT; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } }; @@ -7139,7 +7139,7 @@ struct L3_CONTROL { typedef enum tagTYPE { TYPE_GFXPIPE = 0x3, } TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.RenderTargetCacheFlushEnable = RENDER_TARGET_CACHE_FLUSH_ENABLED; TheStructure.Common.PostSyncOperation = POST_SYNC_OPERATION_NO_WRITE; @@ -7151,7 +7151,7 @@ struct L3_CONTROL { TheStructure.Common.Type = TYPE_GFXPIPE; TheStructure.Common.PostSyncData.init(); } - static L3_CONTROL sInit(void) { + static L3_CONTROL sInit() { L3_CONTROL state; state.init(); return state; @@ -7163,55 +7163,55 @@ struct L3_CONTROL { inline void setLength(const uint32_t value) { TheStructure.Common.Length = value; } - inline uint32_t getLength(void) const { + inline uint32_t getLength() const { return TheStructure.Common.Length; } inline void setDepthCacheFlush(const bool value) { TheStructure.Common.DepthCacheFlush = value; } - inline bool getDepthCacheFlush(void) const { + inline bool getDepthCacheFlush() const { return TheStructure.Common.DepthCacheFlush; } inline void setRenderTargetCacheFlushEnable(const bool value) { TheStructure.Common.RenderTargetCacheFlushEnable = value; } - inline bool getRenderTargetCacheFlushEnable(void) const { + inline bool getRenderTargetCacheFlushEnable() const { return TheStructure.Common.RenderTargetCacheFlushEnable; } inline void setHdcPipelineFlush(const bool value) { TheStructure.Common.HdcPipelineFlush = value; } - inline bool getHdcPipelineFlush(void) const { + inline bool getHdcPipelineFlush() const { return TheStructure.Common.HdcPipelineFlush; } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setPostSyncOperationL3CacheabilityControl(const POST_SYNC_OPERATION_L3_CACHEABILITY_CONTROL value) { TheStructure.Common.PostSyncOperationL3CacheabilityControl = value; } - inline POST_SYNC_OPERATION_L3_CACHEABILITY_CONTROL getPostSyncOperationL3CacheabilityControl(void) const { + inline POST_SYNC_OPERATION_L3_CACHEABILITY_CONTROL getPostSyncOperationL3CacheabilityControl() const { return static_cast(TheStructure.Common.PostSyncOperationL3CacheabilityControl); } inline void setCommandStreamerStallEnable(const bool value) { TheStructure.Common.CommandStreamerStallEnable = value; } - inline bool getCommandStreamerStallEnable(void) const { + inline bool getCommandStreamerStallEnable() const { return TheStructure.Common.CommandStreamerStallEnable; } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } inline void setType(const TYPE value) { TheStructure.Common.Type = value; } - inline TYPE getType(void) const { + inline TYPE getType() const { return static_cast(TheStructure.Common.Type); } L3_CONTROL_POST_SYNC_DATA &getPostSyncData() { @@ -7226,7 +7226,7 @@ struct L3_CONTROL { getPostSyncData().setAddress(value); } - inline uint64_t getPostSyncAddress(void) const { + inline uint64_t getPostSyncAddress() const { return getPostSyncData().getAddress(); } @@ -7234,7 +7234,7 @@ struct L3_CONTROL { getPostSyncData().setImmediateData(value); } - inline uint64_t getPostSyncImmediateData(void) const { + inline uint64_t getPostSyncImmediateData() const { return getPostSyncData().getImmediateData(); } }; @@ -7272,7 +7272,7 @@ typedef struct tagSTATE_SIP { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_SIP; @@ -7280,7 +7280,7 @@ typedef struct tagSTATE_SIP { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagSTATE_SIP sInit(void) { + static tagSTATE_SIP sInit() { STATE_SIP state; state.init(); return state; @@ -7297,7 +7297,7 @@ typedef struct tagSTATE_SIP { UNRECOVERABLE_IF(value > 0xffffffffffffffffL); TheStructure.Common.SystemInstructionPointer = value >> SYSTEMINSTRUCTIONPOINTER_BIT_SHIFT; } - inline uint64_t getSystemInstructionPointer(void) const { + inline uint64_t getSystemInstructionPointer() const { return TheStructure.Common.SystemInstructionPointer << SYSTEMINSTRUCTIONPOINTER_BIT_SHIFT; } } STATE_SIP; @@ -7317,14 +7317,14 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { } Common; uint32_t RawData[4]; } TheStructure; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.BorderColorRed = 0.0; TheStructure.Common.BorderColorGreen = 0.0; TheStructure.Common.BorderColorBlue = 0.0; TheStructure.Common.BorderColorAlpha = 0.0; } - static tagSAMPLER_BORDER_COLOR_STATE sInit(void) { + static tagSAMPLER_BORDER_COLOR_STATE sInit() { SAMPLER_BORDER_COLOR_STATE state; state.init(); return state; @@ -7336,25 +7336,25 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { inline void setBorderColorRed(const float value) { TheStructure.Common.BorderColorRed = value; } - inline float getBorderColorRed(void) const { + inline float getBorderColorRed() const { return TheStructure.Common.BorderColorRed; } inline void setBorderColorGreen(const float value) { TheStructure.Common.BorderColorGreen = value; } - inline float getBorderColorGreen(void) const { + inline float getBorderColorGreen() const { return TheStructure.Common.BorderColorGreen; } inline void setBorderColorBlue(const float value) { TheStructure.Common.BorderColorBlue = value; } - inline float getBorderColorBlue(void) const { + inline float getBorderColorBlue() const { return TheStructure.Common.BorderColorBlue; } inline void setBorderColorAlpha(const float value) { TheStructure.Common.BorderColorAlpha = value; } - inline float getBorderColorAlpha(void) const { + inline float getBorderColorAlpha() const { return TheStructure.Common.BorderColorAlpha; } } SAMPLER_BORDER_COLOR_STATE; diff --git a/shared/source/generated/xe_hpg_core/hw_cmds_generated_xe_hpg_core.inl b/shared/source/generated/xe_hpg_core/hw_cmds_generated_xe_hpg_core.inl index 61e1b2b670..e407ad93ce 100644 --- a/shared/source/generated/xe_hpg_core/hw_cmds_generated_xe_hpg_core.inl +++ b/shared/source/generated/xe_hpg_core/hw_cmds_generated_xe_hpg_core.inl @@ -19,10 +19,10 @@ typedef struct tagBINDING_TABLE_STATE { SURFACESTATEPOINTER_BYTEOFFSET = 0x0, SURFACESTATEPOINTER_INDEX = 0x0, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); } - static tagBINDING_TABLE_STATE sInit(void) { + static tagBINDING_TABLE_STATE sInit() { BINDING_TABLE_STATE state; state.init(); return state; @@ -43,7 +43,7 @@ typedef struct tagBINDING_TABLE_STATE { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SurfaceStatePointer = (uint32_t)value >> SURFACESTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSurfaceStatePointer(void) const { + inline uint32_t getSurfaceStatePointer() const { return (TheStructure.Common.SurfaceStatePointer << SURFACESTATEPOINTER_BIT_SHIFT); } } BINDING_TABLE_STATE; @@ -191,7 +191,7 @@ typedef struct tagMEDIA_SURFACE_STATE { SURFACEBASEADDRESSHIGH_BYTEOFFSET = 0x1c, SURFACEBASEADDRESSHIGH_INDEX = 0x7, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.Rotation = ROTATION_NO_ROTATION_OR_0_DEGREE; TheStructure.Common.PictureStructure = PICTURE_STRUCTURE_FRAME_PICTURE; @@ -201,7 +201,7 @@ typedef struct tagMEDIA_SURFACE_STATE { TheStructure.Common.SurfaceFormat = SURFACE_FORMAT_YCRCB_NORMAL; TheStructure.Common.TiledResourceMode = TILED_RESOURCE_MODE_TRMODE_NONE; } - static tagMEDIA_SURFACE_STATE sInit(void) { + static tagMEDIA_SURFACE_STATE sInit() { MEDIA_SURFACE_STATE state; state.init(); return state; @@ -213,153 +213,153 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setRotation(const ROTATION value) { TheStructure.Common.Rotation = value; } - inline ROTATION getRotation(void) const { + inline ROTATION getRotation() const { return static_cast(TheStructure.Common.Rotation); } inline void setCrVCbUPixelOffsetVDirection(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetVDirection = value; } - inline uint32_t getCrVCbUPixelOffsetVDirection(void) const { + inline uint32_t getCrVCbUPixelOffsetVDirection() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetVDirection); } inline void setPictureStructure(const PICTURE_STRUCTURE value) { TheStructure.Common.PictureStructure = value; } - inline PICTURE_STRUCTURE getPictureStructure(void) const { + inline PICTURE_STRUCTURE getPictureStructure() const { return static_cast(TheStructure.Common.PictureStructure); } inline void setWidth(const uint32_t value) { TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return (TheStructure.Common.Width + 1); } inline void setHeight(const uint32_t value) { TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return (TheStructure.Common.Height + 1); } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setHalfPitchForChroma(const bool value) { TheStructure.Common.HalfPitchForChroma = value; } - inline bool getHalfPitchForChroma(void) const { + inline bool getHalfPitchForChroma() const { return (TheStructure.Common.HalfPitchForChroma); } inline void setSurfacePitch(const uint32_t value) { TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return (TheStructure.Common.SurfacePitch + 1); } inline void setAddressControl(const ADDRESS_CONTROL value) { TheStructure.Common.AddressControl = value; } - inline ADDRESS_CONTROL getAddressControl(void) const { + inline ADDRESS_CONTROL getAddressControl() const { return static_cast(TheStructure.Common.AddressControl); } inline void setMemoryCompressionEnable(const bool value) { TheStructure.Common.MemoryCompressionEnable = value; } - inline bool getMemoryCompressionEnable(void) const { + inline bool getMemoryCompressionEnable() const { return (TheStructure.Common.MemoryCompressionEnable); } inline void setMemoryCompressionMode(const MEMORY_COMPRESSION_MODE value) { TheStructure.Common.MemoryCompressionMode = value; } - inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode(void) const { + inline MEMORY_COMPRESSION_MODE getMemoryCompressionMode() const { return static_cast(TheStructure.Common.MemoryCompressionMode); } inline void setCrVCbUPixelOffsetVDirectionMsb(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetVDirectionMsb = value; } - inline uint32_t getCrVCbUPixelOffsetVDirectionMsb(void) const { + inline uint32_t getCrVCbUPixelOffsetVDirectionMsb() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetVDirectionMsb); } inline void setCrVCbUPixelOffsetUDirection(const uint32_t value) { TheStructure.Common.Cr_VCb_UPixelOffsetUDirection = value; } - inline uint32_t getCrVCbUPixelOffsetUDirection(void) const { + inline uint32_t getCrVCbUPixelOffsetUDirection() const { return (TheStructure.Common.Cr_VCb_UPixelOffsetUDirection); } inline void setInterleaveChroma(const bool value) { TheStructure.Common.InterleaveChroma = value; } - inline bool getInterleaveChroma(void) const { + inline bool getInterleaveChroma() const { return (TheStructure.Common.InterleaveChroma); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setYOffsetForUCb(const uint32_t value) { TheStructure.Common.YOffsetForU_Cb = value; } - inline uint32_t getYOffsetForUCb(void) const { + inline uint32_t getYOffsetForUCb() const { return (TheStructure.Common.YOffsetForU_Cb); } inline void setXOffsetForUCb(const uint32_t value) { TheStructure.Common.XOffsetForU_Cb = value; } - inline uint32_t getXOffsetForUCb(void) const { + inline uint32_t getXOffsetForUCb() const { return (TheStructure.Common.XOffsetForU_Cb); } inline void setSurfaceMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_Reserved = value; } - inline uint32_t getSurfaceMemoryObjectControlStateReserved(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_Reserved); } inline void setSurfaceMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables << 1); } inline void setTiledResourceMode(const TILED_RESOURCE_MODE value) { TheStructure.Common.TiledResourceMode = value; } - inline TILED_RESOURCE_MODE getTiledResourceMode(void) const { + inline TILED_RESOURCE_MODE getTiledResourceMode() const { return static_cast(TheStructure.Common.TiledResourceMode); } inline void setDepth(const uint32_t value) { TheStructure.Common.Depth = value; } - inline uint32_t getDepth(void) const { + inline uint32_t getDepth() const { return (TheStructure.Common.Depth); } inline void setVerticalLineStrideOffset(const uint32_t value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline uint32_t getVerticalLineStrideOffset(void) const { + inline uint32_t getVerticalLineStrideOffset() const { return (TheStructure.Common.VerticalLineStrideOffset); } inline void setVerticalLineStride(const uint32_t value) { TheStructure.Common.VerticalLineStride = value; } - inline uint32_t getVerticalLineStride(void) const { + inline uint32_t getVerticalLineStride() const { return (TheStructure.Common.VerticalLineStride); } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddressLow = static_cast(value & 0xffffffff); TheStructure.Common.SurfaceBaseAddressHigh = (value >> 32) & 0xffffffff; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return (TheStructure.Common.SurfaceBaseAddressLow | static_cast(TheStructure.Common.SurfaceBaseAddressHigh) << 32); } inline void setSurfaceBaseAddressHigh(const uint32_t value) { TheStructure.Common.SurfaceBaseAddressHigh = value; } - inline uint32_t getSurfaceBaseAddressHigh(void) const { + inline uint32_t getSurfaceBaseAddressHigh() const { return (TheStructure.Common.SurfaceBaseAddressHigh); } typedef enum tagYOFFSET { @@ -369,7 +369,7 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setYOffset(const uint32_t value) { TheStructure.SurfaceFormatIsOneOfPlanarFormats.YOffset = value >> YOFFSET_BIT_SHIFT; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return (TheStructure.SurfaceFormatIsOneOfPlanarFormats.YOffset << YOFFSET_BIT_SHIFT); } typedef enum tagXOFFSET { @@ -379,19 +379,19 @@ typedef struct tagMEDIA_SURFACE_STATE { inline void setXOffset(const uint32_t value) { TheStructure.SurfaceFormatIsOneOfPlanarFormats.XOffset = value >> XOFFSET_BIT_SHIFT; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return (TheStructure.SurfaceFormatIsOneOfPlanarFormats.XOffset << XOFFSET_BIT_SHIFT); } inline void setYOffsetForVCr(const uint32_t value) { TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr = value; } - inline uint32_t getYOffsetForVCr(void) const { + inline uint32_t getYOffsetForVCr() const { return (TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.YOffsetForV_Cr); } inline void setXOffsetForVCr(const uint32_t value) { TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr = value; } - inline uint32_t getXOffsetForVCr(void) const { + inline uint32_t getXOffsetForVCr() const { return (TheStructure._SurfaceFormatIsOneOfPlanarAnd_InterleaveChromaIs0.XOffsetForV_Cr); } } MEDIA_SURFACE_STATE; @@ -517,7 +517,7 @@ typedef struct tagPIPE_CONTROL { TBIMR_FORCE_BATCH_CLOSURE_NO_BATCH_CLOSURE = 0x0, TBIMR_FORCE_BATCH_CLOSURE_CLOSE_BATCH = 0x1, } TBIMR_FORCE_BATCH_CLOSURE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.UnTypedDataPortCacheFlush = UN_TYPED_DATA_PORT_CACHE_FLUSH_DISABLED; @@ -531,7 +531,7 @@ typedef struct tagPIPE_CONTROL { TheStructure.Common.TbimrForceBatchClosure = TBIMR_FORCE_BATCH_CLOSURE_NO_BATCH_CLOSURE; TheStructure.Common.CommandStreamerStallEnable = 1; } - static tagPIPE_CONTROL sInit(void) { + static tagPIPE_CONTROL sInit() { PIPE_CONTROL state; state.init(); return state; @@ -543,211 +543,211 @@ typedef struct tagPIPE_CONTROL { inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return TheStructure.Common.PredicateEnable; } inline void setHdcPipelineFlush(const bool value) { TheStructure.Common.HdcPipelineFlush = value; } - inline bool getHdcPipelineFlush(void) const { + inline bool getHdcPipelineFlush() const { return TheStructure.Common.HdcPipelineFlush; } inline void setUnTypedDataPortCacheFlush(const bool value) { TheStructure.Common.UnTypedDataPortCacheFlush = value; } - inline bool getUnTypedDataPortCacheFlush(void) const { + inline bool getUnTypedDataPortCacheFlush() const { return TheStructure.Common.UnTypedDataPortCacheFlush; } inline void setCompressionControlSurfaceCcsFlush(const bool value) { TheStructure.Common.CompressionControlSurfaceCcsFlush = value; } - inline bool getCompressionControlSurfaceCcsFlush(void) const { + inline bool getCompressionControlSurfaceCcsFlush() const { return TheStructure.Common.CompressionControlSurfaceCcsFlush; } inline void setWorkloadPartitionIdOffsetEnable(const bool value) { TheStructure.Common.WorkloadPartitionIdOffsetEnable = value; } - inline bool getWorkloadPartitionIdOffsetEnable(void) const { + inline bool getWorkloadPartitionIdOffsetEnable() const { return TheStructure.Common.WorkloadPartitionIdOffsetEnable; } inline void setDepthCacheFlushEnable(const bool value) { TheStructure.Common.DepthCacheFlushEnable = value; } - inline bool getDepthCacheFlushEnable(void) const { + inline bool getDepthCacheFlushEnable() const { return TheStructure.Common.DepthCacheFlushEnable; } inline void setStallAtPixelScoreboard(const bool value) { TheStructure.Common.StallAtPixelScoreboard = value; } - inline bool getStallAtPixelScoreboard(void) const { + inline bool getStallAtPixelScoreboard() const { return TheStructure.Common.StallAtPixelScoreboard; } inline void setStateCacheInvalidationEnable(const bool value) { TheStructure.Common.StateCacheInvalidationEnable = value; } - inline bool getStateCacheInvalidationEnable(void) const { + inline bool getStateCacheInvalidationEnable() const { return TheStructure.Common.StateCacheInvalidationEnable; } inline void setConstantCacheInvalidationEnable(const bool value) { TheStructure.Common.ConstantCacheInvalidationEnable = value; } - inline bool getConstantCacheInvalidationEnable(void) const { + inline bool getConstantCacheInvalidationEnable() const { return TheStructure.Common.ConstantCacheInvalidationEnable; } inline void setVfCacheInvalidationEnable(const bool value) { TheStructure.Common.VfCacheInvalidationEnable = value; } - inline bool getVfCacheInvalidationEnable(void) const { + inline bool getVfCacheInvalidationEnable() const { return TheStructure.Common.VfCacheInvalidationEnable; } inline void setDcFlushEnable(const bool value) { TheStructure.Common.DcFlushEnable = value; } - inline bool getDcFlushEnable(void) const { + inline bool getDcFlushEnable() const { return TheStructure.Common.DcFlushEnable; } inline void setProtectedMemoryApplicationId(const bool value) { TheStructure.Common.ProtectedMemoryApplicationId = value; } - inline bool getProtectedMemoryApplicationId(void) const { + inline bool getProtectedMemoryApplicationId() const { return TheStructure.Common.ProtectedMemoryApplicationId; } inline void setPipeControlFlushEnable(const bool value) { TheStructure.Common.PipeControlFlushEnable = value; } - inline bool getPipeControlFlushEnable(void) const { + inline bool getPipeControlFlushEnable() const { return TheStructure.Common.PipeControlFlushEnable; } inline void setNotifyEnable(const bool value) { TheStructure.Common.NotifyEnable = value; } - inline bool getNotifyEnable(void) const { + inline bool getNotifyEnable() const { return TheStructure.Common.NotifyEnable; } inline void setIndirectStatePointersDisable(const bool value) { TheStructure.Common.IndirectStatePointersDisable = value; } - inline bool getIndirectStatePointersDisable(void) const { + inline bool getIndirectStatePointersDisable() const { return TheStructure.Common.IndirectStatePointersDisable; } inline void setTextureCacheInvalidationEnable(const bool value) { TheStructure.Common.TextureCacheInvalidationEnable = value; } - inline bool getTextureCacheInvalidationEnable(void) const { + inline bool getTextureCacheInvalidationEnable() const { return TheStructure.Common.TextureCacheInvalidationEnable; } inline void setInstructionCacheInvalidateEnable(const bool value) { TheStructure.Common.InstructionCacheInvalidateEnable = value; } - inline bool getInstructionCacheInvalidateEnable(void) const { + inline bool getInstructionCacheInvalidateEnable() const { return TheStructure.Common.InstructionCacheInvalidateEnable; } inline void setRenderTargetCacheFlushEnable(const bool value) { TheStructure.Common.RenderTargetCacheFlushEnable = value; } - inline bool getRenderTargetCacheFlushEnable(void) const { + inline bool getRenderTargetCacheFlushEnable() const { return TheStructure.Common.RenderTargetCacheFlushEnable; } inline void setDepthStallEnable(const bool value) { TheStructure.Common.DepthStallEnable = value; } - inline bool getDepthStallEnable(void) const { + inline bool getDepthStallEnable() const { return TheStructure.Common.DepthStallEnable; } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setGenericMediaStateClear(const bool value) { TheStructure.Common.GenericMediaStateClear = value; } - inline bool getGenericMediaStateClear(void) const { + inline bool getGenericMediaStateClear() const { return TheStructure.Common.GenericMediaStateClear; } inline void setPssStallSyncEnable(const bool value) { TheStructure.Common.PssStallSyncEnable = value; } - inline bool getPssStallSyncEnable(void) const { + inline bool getPssStallSyncEnable() const { return TheStructure.Common.PssStallSyncEnable; } inline void setTlbInvalidate(const bool value) { TheStructure.Common.TlbInvalidate = value; } - inline bool getTlbInvalidate(void) const { + inline bool getTlbInvalidate() const { return TheStructure.Common.TlbInvalidate; } inline void setDepthStallSyncEnable(const bool value) { TheStructure.Common.DepthStallSyncEnable = value; } - inline bool getDepthStallSyncEnable(void) const { + inline bool getDepthStallSyncEnable() const { return TheStructure.Common.DepthStallSyncEnable; } inline void setCommandStreamerStallEnable(const uint32_t value) { TheStructure.Common.CommandStreamerStallEnable = value; } - inline uint32_t getCommandStreamerStallEnable(void) const { + inline uint32_t getCommandStreamerStallEnable() const { return TheStructure.Common.CommandStreamerStallEnable; } inline void setStoreDataIndex(const bool value) { TheStructure.Common.StoreDataIndex = value; } - inline bool getStoreDataIndex(void) const { + inline bool getStoreDataIndex() const { return TheStructure.Common.StoreDataIndex; } inline void setProtectedMemoryEnable(const bool value) { TheStructure.Common.ProtectedMemoryEnable = value; } - inline bool getProtectedMemoryEnable(void) const { + inline bool getProtectedMemoryEnable() const { return TheStructure.Common.ProtectedMemoryEnable; } inline void setLriPostSyncOperation(const LRI_POST_SYNC_OPERATION value) { TheStructure.Common.LriPostSyncOperation = value; } - inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation(void) const { + inline LRI_POST_SYNC_OPERATION getLriPostSyncOperation() const { return static_cast(TheStructure.Common.LriPostSyncOperation); } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } inline void setAmfsFlushEnable(const bool value) { TheStructure.Common.AmfsFlushEnable = value; } - inline bool getAmfsFlushEnable(void) const { + inline bool getAmfsFlushEnable() const { return TheStructure.Common.AmfsFlushEnable; } inline void setFlushLlc(const bool value) { TheStructure.Common.FlushLlc = value; } - inline bool getFlushLlc(void) const { + inline bool getFlushLlc() const { return TheStructure.Common.FlushLlc; } inline void setProtectedMemoryDisable(const bool value) { TheStructure.Common.ProtectedMemoryDisable = value; } - inline bool getProtectedMemoryDisable(void) const { + inline bool getProtectedMemoryDisable() const { return TheStructure.Common.ProtectedMemoryDisable; } inline void setTileCacheFlushEnable(const bool value) { TheStructure.Common.TileCacheFlushEnable = value; } - inline bool getTileCacheFlushEnable(void) const { + inline bool getTileCacheFlushEnable() const { return TheStructure.Common.TileCacheFlushEnable; } inline void setL3FabricFlush(const bool value) { TheStructure.Common.L3FabricFlush = value; } - inline bool getL3FabricFlush(void) const { + inline bool getL3FabricFlush() const { return TheStructure.Common.L3FabricFlush; } inline void setTbimrForceBatchClosure(const TBIMR_FORCE_BATCH_CLOSURE value) { TheStructure.Common.TbimrForceBatchClosure = value; } - inline TBIMR_FORCE_BATCH_CLOSURE getTbimrForceBatchClosure(void) const { + inline TBIMR_FORCE_BATCH_CLOSURE getTbimrForceBatchClosure() const { return static_cast(TheStructure.Common.TbimrForceBatchClosure); } typedef enum tagADDRESS { @@ -758,19 +758,19 @@ typedef struct tagPIPE_CONTROL { UNRECOVERABLE_IF(value > 0xfffffffc); TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint32_t getAddress(void) const { + inline uint32_t getAddress() const { return TheStructure.Common.Address << ADDRESS_BIT_SHIFT; } inline void setAddressHigh(const uint32_t value) { TheStructure.Common.AddressHigh = value; } - inline uint32_t getAddressHigh(void) const { + inline uint32_t getAddressHigh() const { return TheStructure.Common.AddressHigh; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } } PIPE_CONTROL; @@ -836,7 +836,7 @@ typedef struct tagMI_ATOMIC { ATOMIC_8B_INCREMENT = 0x25, ATOMIC_8B_DECREMENT = 0x26, } ATOMIC_OPCODES; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_INLINE_DATA_0; TheStructure.Common.DataSize = DATA_SIZE_DWORD; @@ -846,7 +846,7 @@ typedef struct tagMI_ATOMIC { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_ATOMIC; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_ATOMIC sInit(void) { + static tagMI_ATOMIC sInit() { MI_ATOMIC state; state.init(); return state; @@ -858,55 +858,55 @@ typedef struct tagMI_ATOMIC { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setAtomicOpcode(const uint32_t value) { DEBUG_BREAK_IF(value > 0xff00); TheStructure.Common.AtomicOpcode = value; } - inline uint32_t getAtomicOpcode(void) const { + inline uint32_t getAtomicOpcode() const { return TheStructure.Common.AtomicOpcode; } inline void setReturnDataControl(const uint32_t value) { TheStructure.Common.ReturnDataControl = value; } - inline uint32_t getReturnDataControl(void) const { + inline uint32_t getReturnDataControl() const { return TheStructure.Common.ReturnDataControl; } inline void setCsStall(const uint32_t value) { TheStructure.Common.CsStall = value; } - inline uint32_t getCsStall(void) const { return TheStructure.Common.CsStall; } + inline uint32_t getCsStall() const { return TheStructure.Common.CsStall; } inline void setInlineData(const uint32_t value) { TheStructure.Common.InlineData = value; } - inline uint32_t getInlineData(void) const { + inline uint32_t getInlineData() const { return TheStructure.Common.InlineData; } inline void setDataSize(const DATA_SIZE value) { TheStructure.Common.DataSize = value; } - inline DATA_SIZE getDataSize(void) const { + inline DATA_SIZE getDataSize() const { return static_cast(TheStructure.Common.DataSize); } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast( TheStructure.Common.PostSyncOperation); } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } inline void setWorkloadPartitionIdOffsetEnable(const bool value) { TheStructure.Common.WorkloadPartitionIdOffsetEnable = value; } - inline bool getWorkloadPartitionIdOffsetEnable(void) const { + inline bool getWorkloadPartitionIdOffsetEnable() const { return TheStructure.Common.WorkloadPartitionIdOffsetEnable; } typedef enum tagMEMORYADDRESS { @@ -917,61 +917,61 @@ typedef struct tagMI_ATOMIC { DEBUG_BREAK_IF(value > 0xfffffffcL); TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint32_t getMemoryAddress(void) const { + inline uint32_t getMemoryAddress() const { return TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT; } inline void setMemoryAddressHigh(const uint32_t value) { TheStructure.Common.MemoryAddressHigh = value; } - inline uint32_t getMemoryAddressHigh(void) const { + inline uint32_t getMemoryAddressHigh() const { return TheStructure.Common.MemoryAddressHigh; } inline void setOperand1DataDword0(const uint32_t value) { TheStructure.Common.Operand1DataDword0 = value; } - inline uint32_t getOperand1DataDword0(void) const { + inline uint32_t getOperand1DataDword0() const { return TheStructure.Common.Operand1DataDword0; } inline void setOperand2DataDword0(const uint32_t value) { TheStructure.Common.Operand2DataDword0 = value; } - inline uint32_t getOperand2DataDword0(void) const { + inline uint32_t getOperand2DataDword0() const { return TheStructure.Common.Operand2DataDword0; } inline void setOperand1DataDword1(const uint32_t value) { TheStructure.Common.Operand1DataDword1 = value; } - inline uint32_t getOperand1DataDword1(void) const { + inline uint32_t getOperand1DataDword1() const { return TheStructure.Common.Operand1DataDword1; } inline void setOperand2DataDword1(const uint32_t value) { TheStructure.Common.Operand2DataDword1 = value; } - inline uint32_t getOperand2DataDword1(void) const { + inline uint32_t getOperand2DataDword1() const { return TheStructure.Common.Operand2DataDword1; } inline void setOperand1DataDword2(const uint32_t value) { TheStructure.Common.Operand1DataDword2 = value; } - inline uint32_t getOperand1DataDword2(void) const { + inline uint32_t getOperand1DataDword2() const { return TheStructure.Common.Operand1DataDword2; } inline void setOperand2DataDword2(const uint32_t value) { TheStructure.Common.Operand2DataDword2 = value; } - inline uint32_t getOperand2DataDword2(void) const { + inline uint32_t getOperand2DataDword2() const { return TheStructure.Common.Operand2DataDword2; } inline void setOperand1DataDword3(const uint32_t value) { TheStructure.Common.Operand1DataDword3 = value; } - inline uint32_t getOperand1DataDword3(void) const { + inline uint32_t getOperand1DataDword3() const { return TheStructure.Common.Operand1DataDword3; } inline void setOperand2DataDword3(const uint32_t value) { TheStructure.Common.Operand2DataDword3 = value; } - inline uint32_t getOperand2DataDword3(void) const { + inline uint32_t getOperand2DataDword3() const { return TheStructure.Common.Operand2DataDword3; } } MI_ATOMIC; @@ -993,12 +993,12 @@ typedef struct tagMI_BATCH_BUFFER_END { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_BATCH_BUFFER_END; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_BATCH_BUFFER_END sInit(void) { + static tagMI_BATCH_BUFFER_END sInit() { MI_BATCH_BUFFER_END state; state.init(); return state; @@ -1010,7 +1010,7 @@ typedef struct tagMI_BATCH_BUFFER_END { inline void setEndContext(const bool value) { TheStructure.Common.EndContext = value; } - inline bool getEndContext(void) const { + inline bool getEndContext() const { return (TheStructure.Common.EndContext); } } MI_BATCH_BUFFER_END; @@ -1044,13 +1044,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_IMM sInit(void) { + static tagMI_LOAD_REGISTER_IMM sInit() { MI_LOAD_REGISTER_IMM state; state.init(); return state; @@ -1062,13 +1062,13 @@ typedef struct tagMI_LOAD_REGISTER_IMM { inline void setByteWriteDisables(const uint32_t value) { TheStructure.Common.ByteWriteDisables = value; } - inline uint32_t getByteWriteDisables(void) const { + inline uint32_t getByteWriteDisables() const { return (TheStructure.Common.ByteWriteDisables); } inline void setAddCsMmioStartOffset(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline uint32_t getAddCsMmioStartOffset(void) const { + inline uint32_t getAddCsMmioStartOffset() const { return (TheStructure.Common.AddCsMmioStartOffset); } typedef enum tagREGISTEROFFSET { @@ -1078,19 +1078,19 @@ typedef struct tagMI_LOAD_REGISTER_IMM { inline void setRegisterOffset(const uint32_t value) { TheStructure.Common.RegisterOffset = value >> REGISTEROFFSET_BIT_SHIFT; } - inline uint32_t getRegisterOffset(void) const { + inline uint32_t getRegisterOffset() const { return (TheStructure.Common.RegisterOffset << REGISTEROFFSET_BIT_SHIFT); } inline void setDataDword(const uint32_t value) { TheStructure.Common.DataDword = value; } - inline uint32_t getDataDword(void) const { + inline uint32_t getDataDword() const { return (TheStructure.Common.DataDword); } inline void setMmioRemapEnable(const bool value) { TheStructure.Common.MmioRemapEnable = value; } - inline bool getMmioRemapEnable(void) const { + inline bool getMmioRemapEnable() const { return TheStructure.Common.MmioRemapEnable; } } MI_LOAD_REGISTER_IMM; @@ -1112,12 +1112,12 @@ typedef struct tagMI_NOOP { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_NOOP; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_NOOP sInit(void) { + static tagMI_NOOP sInit() { MI_NOOP state; state.init(); return state; @@ -1129,13 +1129,13 @@ typedef struct tagMI_NOOP { inline void setIdentificationNumber(const uint32_t value) { TheStructure.Common.IdentificationNumber = value; } - inline uint32_t getIdentificationNumber(void) const { + inline uint32_t getIdentificationNumber() const { return (TheStructure.Common.IdentificationNumber); } inline void setIdentificationNumberRegisterWriteEnable(const bool value) { TheStructure.Common.IdentificationNumberRegisterWriteEnable = value; } - inline bool getIdentificationNumberRegisterWriteEnable(void) const { + inline bool getIdentificationNumberRegisterWriteEnable() const { return (TheStructure.Common.IdentificationNumberRegisterWriteEnable); } } MI_NOOP; @@ -1916,7 +1916,7 @@ typedef struct tagRENDER_SURFACE_STATE { L1_CACHE_POLICY_WT = 0x3, L1_CACHE_POLICY_WS = 0x4, } L1_CACHE_POLICY; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MediaBoundaryPixelMode = MEDIA_BOUNDARY_PIXEL_MODE_NORMAL_MODE; TheStructure.Common.RenderCacheReadWriteMode = RENDER_CACHE_READ_WRITE_MODE_WRITE_ONLY_CACHE; @@ -1937,7 +1937,7 @@ typedef struct tagRENDER_SURFACE_STATE { TheStructure.Common.DisableSupportForMultiGpuPartialWrites = 1; TheStructure.Common.L1CachePolicyL1CacheControl = L1_CACHE_POLICY::L1_CACHE_POLICY_WBP; } - static tagRENDER_SURFACE_STATE sInit(void) { + static tagRENDER_SURFACE_STATE sInit() { RENDER_SURFACE_STATE state; state.init(); return state; @@ -1949,109 +1949,109 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setCubeFaceEnablePositiveZ(const bool value) { TheStructure.Common.CubeFaceEnablePositiveZ = value; } - inline bool getCubeFaceEnablePositiveZ(void) const { + inline bool getCubeFaceEnablePositiveZ() const { return TheStructure.Common.CubeFaceEnablePositiveZ; } inline void setCubeFaceEnableNegativeZ(const bool value) { TheStructure.Common.CubeFaceEnableNegativeZ = value; } - inline bool getCubeFaceEnableNegativeZ(void) const { + inline bool getCubeFaceEnableNegativeZ() const { return TheStructure.Common.CubeFaceEnableNegativeZ; } inline void setCubeFaceEnablePositiveY(const bool value) { TheStructure.Common.CubeFaceEnablePositiveY = value; } - inline bool getCubeFaceEnablePositiveY(void) const { + inline bool getCubeFaceEnablePositiveY() const { return TheStructure.Common.CubeFaceEnablePositiveY; } inline void setCubeFaceEnableNegativeY(const bool value) { TheStructure.Common.CubeFaceEnableNegativeY = value; } - inline bool getCubeFaceEnableNegativeY(void) const { + inline bool getCubeFaceEnableNegativeY() const { return TheStructure.Common.CubeFaceEnableNegativeY; } inline void setCubeFaceEnablePositiveX(const bool value) { TheStructure.Common.CubeFaceEnablePositiveX = value; } - inline bool getCubeFaceEnablePositiveX(void) const { + inline bool getCubeFaceEnablePositiveX() const { return TheStructure.Common.CubeFaceEnablePositiveX; } inline void setCubeFaceEnableNegativeX(const bool value) { TheStructure.Common.CubeFaceEnableNegativeX = value; } - inline bool getCubeFaceEnableNegativeX(void) const { + inline bool getCubeFaceEnableNegativeX() const { return TheStructure.Common.CubeFaceEnableNegativeX; } inline void setMediaBoundaryPixelMode(const MEDIA_BOUNDARY_PIXEL_MODE value) { TheStructure.Common.MediaBoundaryPixelMode = value; } - inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode(void) const { + inline MEDIA_BOUNDARY_PIXEL_MODE getMediaBoundaryPixelMode() const { return static_cast(TheStructure.Common.MediaBoundaryPixelMode); } inline void setRenderCacheReadWriteMode(const RENDER_CACHE_READ_WRITE_MODE value) { TheStructure.Common.RenderCacheReadWriteMode = value; } - inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode(void) const { + inline RENDER_CACHE_READ_WRITE_MODE getRenderCacheReadWriteMode() const { return static_cast(TheStructure.Common.RenderCacheReadWriteMode); } inline void setSamplerL2OutOfOrderModeDisable(const bool value) { TheStructure.Common.SamplerL2OutOfOrderModeDisable = value; } - inline bool getSamplerL2OutOfOrderModeDisable(void) const { + inline bool getSamplerL2OutOfOrderModeDisable() const { return TheStructure.Common.SamplerL2OutOfOrderModeDisable; } inline void setVerticalLineStrideOffset(const bool value) { TheStructure.Common.VerticalLineStrideOffset = value; } - inline bool getVerticalLineStrideOffset(void) const { + inline bool getVerticalLineStrideOffset() const { return TheStructure.Common.VerticalLineStrideOffset; } inline void setVerticalLineStride(const bool value) { TheStructure.Common.VerticalLineStride = value; } - inline bool getVerticalLineStride(void) const { + inline bool getVerticalLineStride() const { return TheStructure.Common.VerticalLineStride; } inline void setTileMode(const TILE_MODE value) { TheStructure.Common.TileMode = value; } - inline TILE_MODE getTileMode(void) const { + inline TILE_MODE getTileMode() const { return static_cast(TheStructure.Common.TileMode); } inline void setSurfaceHorizontalAlignment(const SURFACE_HORIZONTAL_ALIGNMENT value) { TheStructure.Common.SurfaceHorizontalAlignment = value; } - inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment(void) const { + inline SURFACE_HORIZONTAL_ALIGNMENT getSurfaceHorizontalAlignment() const { return static_cast(TheStructure.Common.SurfaceHorizontalAlignment); } inline void setSurfaceVerticalAlignment(const SURFACE_VERTICAL_ALIGNMENT value) { TheStructure.Common.SurfaceVerticalAlignment = value; } - inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment(void) const { + inline SURFACE_VERTICAL_ALIGNMENT getSurfaceVerticalAlignment() const { return static_cast(TheStructure.Common.SurfaceVerticalAlignment); } inline void setSurfaceFormat(const SURFACE_FORMAT value) { TheStructure.Common.SurfaceFormat = value; } - inline SURFACE_FORMAT getSurfaceFormat(void) const { + inline SURFACE_FORMAT getSurfaceFormat() const { return static_cast(TheStructure.Common.SurfaceFormat); } inline void setAstcEnable(const bool value) { TheStructure.Common.AstcEnable = value; } - inline bool getAstcEnable(void) const { + inline bool getAstcEnable() const { return TheStructure.Common.AstcEnable; } inline void setSurfaceArray(const bool value) { TheStructure.Common.SurfaceArray = value; } - inline bool getSurfaceArray(void) const { + inline bool getSurfaceArray() const { return TheStructure.Common.SurfaceArray; } inline void setSurfaceType(const SURFACE_TYPE value) { TheStructure.Common.SurfaceType = value; } - inline SURFACE_TYPE getSurfaceType(void) const { + inline SURFACE_TYPE getSurfaceType() const { return static_cast(TheStructure.Common.SurfaceType); } typedef enum tagSURFACEQPITCH { @@ -2062,46 +2062,46 @@ typedef struct tagRENDER_SURFACE_STATE { DEBUG_BREAK_IF(value > 0x7fff); TheStructure.Common.SurfaceQpitch = value >> SURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getSurfaceQpitch(void) const { + inline uint32_t getSurfaceQpitch() const { return TheStructure.Common.SurfaceQpitch << SURFACEQPITCH_BIT_SHIFT; } inline void setSampleTapDiscardDisable(const SAMPLE_TAP_DISCARD_DISABLE value) { TheStructure.Common.SampleTapDiscardDisable = value; } - inline SAMPLE_TAP_DISCARD_DISABLE getSampleTapDiscardDisable(void) const { + inline SAMPLE_TAP_DISCARD_DISABLE getSampleTapDiscardDisable() const { return static_cast(TheStructure.Common.SampleTapDiscardDisable); } inline void setDoubleFetchDisable(const bool value) { TheStructure.Common.DoubleFetchDisable = value; } - inline bool getDoubleFetchDisable(void) const { + inline bool getDoubleFetchDisable() const { return TheStructure.Common.DoubleFetchDisable; } inline void setCornerTexelMode(const bool value) { TheStructure.Common.CornerTexelMode = value; } - inline bool getCornerTexelMode(void) const { + inline bool getCornerTexelMode() const { return TheStructure.Common.CornerTexelMode; } inline void setBaseMipLevel(const uint32_t value) { UNRECOVERABLE_IF(value > 0xf80000); TheStructure.Common.BaseMipLevel = value; } - inline uint32_t getBaseMipLevel(void) const { + inline uint32_t getBaseMipLevel() const { return TheStructure.Common.BaseMipLevel; } inline void setMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { DEBUG_BREAK_IF(value > 0x7e000000L); TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); } inline void setMemoryObjectControlState(const uint32_t value) { TheStructure.Common.MemoryObjectControlStateEncryptedData = value; TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = (value >> 1); } - inline uint32_t getMemoryObjectControlState(void) const { + inline uint32_t getMemoryObjectControlState() const { uint32_t mocs = TheStructure.Common.MemoryObjectControlStateEncryptedData; mocs |= (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); return (mocs); @@ -2109,131 +2109,131 @@ typedef struct tagRENDER_SURFACE_STATE { inline void setEnableUnormPathInColorPipe(const bool value) { TheStructure.Common.EnableUnormPathInColorPipe = value; } - inline bool getEnableUnormPathInColorPipe(void) const { + inline bool getEnableUnormPathInColorPipe() const { return TheStructure.Common.EnableUnormPathInColorPipe; } inline void setWidth(const uint32_t value) { UNRECOVERABLE_IF(value > (0x3fff + 1)); TheStructure.Common.Width = value - 1; } - inline uint32_t getWidth(void) const { + inline uint32_t getWidth() const { return TheStructure.Common.Width + 1; } inline void setHeight(const uint32_t value) { UNRECOVERABLE_IF(value > (0x3fff0000 + 1)); TheStructure.Common.Height = value - 1; } - inline uint32_t getHeight(void) const { + inline uint32_t getHeight() const { return TheStructure.Common.Height + 1; } inline void setDepthStencilResource(const bool value) { TheStructure.Common.DepthStencilResource = value; } - inline bool getDepthStencilResource(void) const { + inline bool getDepthStencilResource() const { return TheStructure.Common.DepthStencilResource; } inline void setSurfacePitch(const uint32_t value) { UNRECOVERABLE_IF(value > (0x3ffff + 1)); TheStructure.Common.SurfacePitch = value - 1; } - inline uint32_t getSurfacePitch(void) const { + inline uint32_t getSurfacePitch() const { return TheStructure.Common.SurfacePitch + 1; } inline void setNullProbingEnable(const NULL_PROBING_ENABLE value) { TheStructure.Common.NullProbingEnable = value; } - inline NULL_PROBING_ENABLE getNullProbingEnable(void) const { + inline NULL_PROBING_ENABLE getNullProbingEnable() const { return static_cast(TheStructure.Common.NullProbingEnable); } inline void setDepth(const uint32_t value) { UNRECOVERABLE_IF(value > (0xffe00000 + 1)); TheStructure.Common.Depth = value - 1; } - inline uint32_t getDepth(void) const { + inline uint32_t getDepth() const { return TheStructure.Common.Depth + 1; } inline void setMultisamplePositionPaletteIndex(const uint32_t value) { UNRECOVERABLE_IF(value > 0x7); TheStructure.Common.MultisamplePositionPaletteIndex = value; } - inline uint32_t getMultisamplePositionPaletteIndex(void) const { + inline uint32_t getMultisamplePositionPaletteIndex() const { return TheStructure.Common.MultisamplePositionPaletteIndex; } inline void setNumberOfMultisamples(const NUMBER_OF_MULTISAMPLES value) { TheStructure.Common.NumberOfMultisamples = value; } - inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples(void) const { + inline NUMBER_OF_MULTISAMPLES getNumberOfMultisamples() const { return static_cast(TheStructure.Common.NumberOfMultisamples); } inline void setMultisampledSurfaceStorageFormat(const MULTISAMPLED_SURFACE_STORAGE_FORMAT value) { TheStructure.Common.MultisampledSurfaceStorageFormat = value; } - inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat(void) const { + inline MULTISAMPLED_SURFACE_STORAGE_FORMAT getMultisampledSurfaceStorageFormat() const { return static_cast(TheStructure.Common.MultisampledSurfaceStorageFormat); } inline void setRenderTargetViewExtent(const uint32_t value) { UNRECOVERABLE_IF(value > (0x3ff80 + 1)); TheStructure.Common.RenderTargetViewExtent = value - 1; } - inline uint32_t getRenderTargetViewExtent(void) const { + inline uint32_t getRenderTargetViewExtent() const { return TheStructure.Common.RenderTargetViewExtent + 1; } inline void setMinimumArrayElement(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1ffc0000); TheStructure.Common.MinimumArrayElement = value; } - inline uint32_t getMinimumArrayElement(void) const { + inline uint32_t getMinimumArrayElement() const { return TheStructure.Common.MinimumArrayElement; } inline void setDecompressInL3(const uint32_t value) { TheStructure.Common.DecompressInL3 = value; } - inline uint32_t getDecompressInL3(void) const { + inline uint32_t getDecompressInL3() const { return TheStructure.Common.DecompressInL3; } inline void setRenderTargetAndSampleUnormRotation(const RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION value) { TheStructure.Common.RenderTargetAndSampleUnormRotation = value; } - inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation(void) const { + inline RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION getRenderTargetAndSampleUnormRotation() const { return static_cast(TheStructure.Common.RenderTargetAndSampleUnormRotation); } inline void setMipCountLod(const uint32_t value) { UNRECOVERABLE_IF(value > 0xf); TheStructure.Common.MipCountLod = value; } - inline uint32_t getMipCountLod(void) const { + inline uint32_t getMipCountLod() const { return TheStructure.Common.MipCountLod; } inline void setSurfaceMinLod(const uint32_t value) { UNRECOVERABLE_IF(value > 0xf0); TheStructure.Common.SurfaceMinLod = value; } - inline uint32_t getSurfaceMinLod(void) const { + inline uint32_t getSurfaceMinLod() const { return TheStructure.Common.SurfaceMinLod; } inline void setMipTailStartLod(const uint32_t value) { UNRECOVERABLE_IF(value > 0xf00); TheStructure.Common.MipTailStartLod = value; } - inline uint32_t getMipTailStartLod(void) const { + inline uint32_t getMipTailStartLod() const { return TheStructure.Common.MipTailStartLod; } inline void setCoherencyType(const COHERENCY_TYPE value) { TheStructure.Common.CoherencyType = value; } - inline COHERENCY_TYPE getCoherencyType(void) const { + inline COHERENCY_TYPE getCoherencyType() const { return static_cast(TheStructure.Common.CoherencyType); } inline void setL1CachePolicyL1CacheControl(const uint32_t value) { TheStructure.Common.L1CachePolicyL1CacheControl = value; } - inline uint32_t getL1CachePolicyL1CacheControl(void) const { + inline uint32_t getL1CachePolicyL1CacheControl() const { return TheStructure.Common.L1CachePolicyL1CacheControl; } inline void setEwaDisableForCube(const bool value) { TheStructure.Common.EwaDisableForCube = value; } - inline bool getEwaDisableForCube(void) const { + inline bool getEwaDisableForCube() const { return TheStructure.Common.EwaDisableForCube; } typedef enum tagYOFFSET { @@ -2244,7 +2244,7 @@ typedef struct tagRENDER_SURFACE_STATE { UNRECOVERABLE_IF(value > 0xe00000); TheStructure.Common.YOffset = value >> YOFFSET_BIT_SHIFT; } - inline uint32_t getYOffset(void) const { + inline uint32_t getYOffset() const { return TheStructure.Common.YOffset << YOFFSET_BIT_SHIFT; } typedef enum tagXOFFSET { @@ -2255,101 +2255,101 @@ typedef struct tagRENDER_SURFACE_STATE { UNRECOVERABLE_IF(value > 0xfe000000); TheStructure.Common.XOffset = value >> XOFFSET_BIT_SHIFT; } - inline uint32_t getXOffset(void) const { + inline uint32_t getXOffset() const { return TheStructure.Common.XOffset << XOFFSET_BIT_SHIFT; } inline void setResourceMinLod(const uint32_t value) { UNRECOVERABLE_IF(value > 0xfff); TheStructure.Common.ResourceMinLod = value; } - inline uint32_t getResourceMinLod(void) const { + inline uint32_t getResourceMinLod() const { return TheStructure.Common.ResourceMinLod; } inline void setDisableSupportForMultiGpuAtomics(const bool value) { TheStructure.Common.DisableSupportForMultiGpuAtomics = value; } - inline bool getDisableSupportForMultiGpuAtomics(void) const { + inline bool getDisableSupportForMultiGpuAtomics() const { return TheStructure.Common.DisableSupportForMultiGpuAtomics; } inline void setDisableSupportForMultiGpuPartialWrites(const bool value) { TheStructure.Common.DisableSupportForMultiGpuPartialWrites = value; } - inline bool getDisableSupportForMultiGpuPartialWrites(void) const { + inline bool getDisableSupportForMultiGpuPartialWrites() const { return TheStructure.Common.DisableSupportForMultiGpuPartialWrites; } inline void setShaderChannelSelectAlpha(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectAlpha = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectAlpha() const { return static_cast(TheStructure.Common.ShaderChannelSelectAlpha); } inline void setShaderChannelSelectBlue(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectBlue = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectBlue() const { return static_cast(TheStructure.Common.ShaderChannelSelectBlue); } inline void setShaderChannelSelectGreen(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectGreen = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectGreen() const { return static_cast(TheStructure.Common.ShaderChannelSelectGreen); } inline void setShaderChannelSelectRed(const SHADER_CHANNEL_SELECT value) { TheStructure.Common.ShaderChannelSelectRed = value; } - inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed(void) const { + inline SHADER_CHANNEL_SELECT getShaderChannelSelectRed() const { return static_cast(TheStructure.Common.ShaderChannelSelectRed); } inline void setMemoryCompressionEnable(const bool value) { TheStructure.Common.MemoryCompressionEnable = value; } - inline bool getMemoryCompressionEnable(void) const { + inline bool getMemoryCompressionEnable() const { return TheStructure.Common.MemoryCompressionEnable; } inline void setMemoryCompressionType(const MEMORY_COMPRESSION_TYPE value) { TheStructure.Common.MemoryCompressionType = value; } - inline MEMORY_COMPRESSION_TYPE getMemoryCompressionType(void) const { + inline MEMORY_COMPRESSION_TYPE getMemoryCompressionType() const { return static_cast(TheStructure.Common.MemoryCompressionType); } inline void setCompressionFormat(uint32_t compressionFormat) { UNRECOVERABLE_IF(compressionFormat > 0x1F); TheStructure.Common.CompressionFormat = compressionFormat; } - inline uint32_t getCompressionFormat(void) const { + inline uint32_t getCompressionFormat() const { return TheStructure.Common.CompressionFormat; } inline void setSurfaceBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceBaseAddress = value; } - inline uint64_t getSurfaceBaseAddress(void) const { + inline uint64_t getSurfaceBaseAddress() const { return TheStructure.Common.SurfaceBaseAddress; } inline void setQuiltWidth(const uint64_t value) { UNRECOVERABLE_IF(value > 0x1fL); TheStructure.Common.QuiltWidth = value; } - inline uint64_t getQuiltWidth(void) const { + inline uint64_t getQuiltWidth() const { return TheStructure.Common.QuiltWidth; } inline void setQuiltHeight(const uint64_t value) { UNRECOVERABLE_IF(value > 0x3e0L); TheStructure.Common.QuiltHeight = value; } - inline uint64_t getQuiltHeight(void) const { + inline uint64_t getQuiltHeight() const { return TheStructure.Common.QuiltHeight; } inline void setClearValueAddressEnable(const bool value) { TheStructure.Common.ClearValueAddressEnable = value; } - inline bool getClearValueAddressEnable(void) const { + inline bool getClearValueAddressEnable() const { return TheStructure.Common.ClearValueAddressEnable; } inline void setProceduralTexture(const bool value) { TheStructure.Common.ProceduralTexture = value; } - inline bool getProceduralTexture(void) const { + inline bool getProceduralTexture() const { return TheStructure.Common.ProceduralTexture; } typedef enum tagCLEARADDRESSLOW { @@ -2360,33 +2360,33 @@ typedef struct tagRENDER_SURFACE_STATE { UNRECOVERABLE_IF(value > 0xffffffc0); TheStructure.Common.ClearColorAddress = value >> CLEARADDRESSLOW_BIT_SHIFT; } - inline uint32_t getClearColorAddress(void) const { + inline uint32_t getClearColorAddress() const { return TheStructure.Common.ClearColorAddress << CLEARADDRESSLOW_BIT_SHIFT; } inline void setClearColorAddressHigh(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.ClearColorAddressHigh = value; } - inline uint32_t getClearColorAddressHigh(void) const { + inline uint32_t getClearColorAddressHigh() const { return TheStructure.Common.ClearColorAddressHigh; } inline void setDisallowLowQualityFlitering(const bool value) { TheStructure.Common.DisallowLowQualityFlitering = value; } - inline bool getDisallowLowQualityFlitering(void) const { + inline bool getDisallowLowQualityFlitering() const { return TheStructure.Common.DisallowLowQualityFlitering; } inline void setAuxiliarySurfaceMode(const AUXILIARY_SURFACE_MODE value) { TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode = value; } - inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode(void) const { + inline AUXILIARY_SURFACE_MODE getAuxiliarySurfaceMode() const { return static_cast(TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceMode); } inline void setAuxiliarySurfacePitch(const uint32_t value) { UNRECOVERABLE_IF(value > (0x1ff8 + 1)); TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch = value - 1; } - inline uint32_t getAuxiliarySurfacePitch(void) const { + inline uint32_t getAuxiliarySurfacePitch() const { return TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfacePitch + 1; } typedef enum tagAUXILIARYSURFACEQPITCH { @@ -2397,47 +2397,47 @@ typedef struct tagRENDER_SURFACE_STATE { UNRECOVERABLE_IF(value > 0x7fff0000); TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch = value >> AUXILIARYSURFACEQPITCH_BIT_SHIFT; } - inline uint32_t getAuxiliarySurfaceQpitch(void) const { + inline uint32_t getAuxiliarySurfaceQpitch() const { return TheStructure._SurfaceFormatIsnotPlanar.AuxiliarySurfaceQpitch << AUXILIARYSURFACEQPITCH_BIT_SHIFT; } inline void setYOffsetForUOrUvPlane(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff); TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane = value; } - inline uint32_t getYOffsetForUOrUvPlane(void) const { + inline uint32_t getYOffsetForUOrUvPlane() const { return TheStructure._SurfaceFormatIsPlanar.YOffsetForUOrUvPlane; } inline void setXOffsetForUOrUvPlane(const uint32_t value) { UNRECOVERABLE_IF(value > 0x3fff0000); TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane = value; } - inline uint32_t getXOffsetForUOrUvPlane(void) const { + inline uint32_t getXOffsetForUOrUvPlane() const { return TheStructure._SurfaceFormatIsPlanar.XOffsetForUOrUvPlane; } inline void setHalfPitchForChroma(const HALF_PITCH_FOR_CHROMA value) { TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma = value; } - inline HALF_PITCH_FOR_CHROMA getHalfPitchForChroma(void) const { + inline HALF_PITCH_FOR_CHROMA getHalfPitchForChroma() const { return static_cast(TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma); } inline void setSeparateUvPlaneEnable(const bool value) { TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable = value; } - inline bool getSeparateUvPlaneEnable(void) const { + inline bool getSeparateUvPlaneEnable() const { return TheStructure._SurfaceFormatIsPlanar.SeparateUvPlaneEnable; } inline void setYOffsetForVPlane(const uint64_t value) { UNRECOVERABLE_IF(value > 0x3fff00000000L); TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane = value; } - inline uint64_t getYOffsetForVPlane(void) const { + inline uint64_t getYOffsetForVPlane() const { return TheStructure._SurfaceFormatIsPlanar.YOffsetForVPlane; } inline void setXOffsetForVPlane(const uint64_t value) { UNRECOVERABLE_IF(value > 0x3fff000000000000L); TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane = value; } - inline uint64_t getXOffsetForVPlane(void) const { + inline uint64_t getXOffsetForVPlane() const { return TheStructure._SurfaceFormatIsPlanar.XOffsetForVPlane; } typedef enum tagAUXILIARYSURFACEBASEADDRESS { @@ -2448,7 +2448,7 @@ typedef struct tagRENDER_SURFACE_STATE { UNRECOVERABLE_IF(value > 0xfffffffffffff000L); TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress = value >> AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getAuxiliarySurfaceBaseAddress(void) const { + inline uint64_t getAuxiliarySurfaceBaseAddress() const { return TheStructure._SurfaceFormatIsnotPlanarAndMemoryCompressionEnableIs0.AuxiliarySurfaceBaseAddress << AUXILIARYSURFACEBASEADDRESS_BIT_SHIFT; } } RENDER_SURFACE_STATE; @@ -2604,7 +2604,7 @@ typedef struct tagSAMPLER_STATE { LOW_QUALITY_FILTER_DISABLE = 0x0, LOW_QUALITY_FILTER_ENABLE = 0x1, } LOW_QUALITY_FILTER; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.LodAlgorithm = LOD_ALGORITHM_LEGACY; TheStructure.Common.MinModeFilter = MIN_MODE_FILTER_NEAREST; @@ -2628,7 +2628,7 @@ typedef struct tagSAMPLER_STATE { TheStructure.Common.ReductionType = REDUCTION_TYPE_STD_FILTER; TheStructure.Common.LowQualityFilter = LOW_QUALITY_FILTER_DISABLE; } - static tagSAMPLER_STATE sInit(void) { + static tagSAMPLER_STATE sInit() { SAMPLER_STATE state; state.init(); return state; @@ -2640,131 +2640,131 @@ typedef struct tagSAMPLER_STATE { inline void setLodAlgorithm(const LOD_ALGORITHM value) { TheStructure.Common.LodAlgorithm = value; } - inline LOD_ALGORITHM getLodAlgorithm(void) const { + inline LOD_ALGORITHM getLodAlgorithm() const { return static_cast(TheStructure.Common.LodAlgorithm); } inline void setTextureLodBias(const uint32_t value) { DEBUG_BREAK_IF(value > 0x3ffe); TheStructure.Common.TextureLodBias = value; } - inline uint32_t getTextureLodBias(void) const { + inline uint32_t getTextureLodBias() const { return TheStructure.Common.TextureLodBias; } inline void setMinModeFilter(const MIN_MODE_FILTER value) { TheStructure.Common.MinModeFilter = value; } - inline MIN_MODE_FILTER getMinModeFilter(void) const { + inline MIN_MODE_FILTER getMinModeFilter() const { return static_cast(TheStructure.Common.MinModeFilter); } inline void setMagModeFilter(const MAG_MODE_FILTER value) { TheStructure.Common.MagModeFilter = value; } - inline MAG_MODE_FILTER getMagModeFilter(void) const { + inline MAG_MODE_FILTER getMagModeFilter() const { return static_cast(TheStructure.Common.MagModeFilter); } inline void setMipModeFilter(const MIP_MODE_FILTER value) { TheStructure.Common.MipModeFilter = value; } - inline MIP_MODE_FILTER getMipModeFilter(void) const { + inline MIP_MODE_FILTER getMipModeFilter() const { return static_cast(TheStructure.Common.MipModeFilter); } inline void setCoarseLodQualityMode(const COARSE_LOD_QUALITY_MODE value) { TheStructure.Common.CoarseLodQualityMode = value; } - inline COARSE_LOD_QUALITY_MODE getCoarseLodQualityMode(void) const { + inline COARSE_LOD_QUALITY_MODE getCoarseLodQualityMode() const { return static_cast(TheStructure.Common.CoarseLodQualityMode); } inline void setLodPreclampMode(const LOD_PRECLAMP_MODE value) { TheStructure.Common.LodPreclampMode = value; } - inline LOD_PRECLAMP_MODE getLodPreclampMode(void) const { + inline LOD_PRECLAMP_MODE getLodPreclampMode() const { return static_cast(TheStructure.Common.LodPreclampMode); } inline void setTextureBorderColorMode(const TEXTURE_BORDER_COLOR_MODE value) { TheStructure.Common.TextureBorderColorMode = value; } - inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode(void) const { + inline TEXTURE_BORDER_COLOR_MODE getTextureBorderColorMode() const { return static_cast(TheStructure.Common.TextureBorderColorMode); } inline void setCpsLodCompensationEnable(const bool value) { TheStructure.Common.CpsLodCompensationEnable = value; } - inline bool getCpsLodCompensationEnable(void) const { + inline bool getCpsLodCompensationEnable() const { return TheStructure.Common.CpsLodCompensationEnable; } inline void setSamplerDisable(const bool value) { TheStructure.Common.SamplerDisable = value; } - inline bool getSamplerDisable(void) const { + inline bool getSamplerDisable() const { return TheStructure.Common.SamplerDisable; } inline void setCubeSurfaceControlMode(const CUBE_SURFACE_CONTROL_MODE value) { TheStructure.Common.CubeSurfaceControlMode = value; } - inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode(void) const { + inline CUBE_SURFACE_CONTROL_MODE getCubeSurfaceControlMode() const { return static_cast(TheStructure.Common.CubeSurfaceControlMode); } inline void setShadowFunction(const SHADOW_FUNCTION value) { TheStructure.Common.ShadowFunction = value; } - inline SHADOW_FUNCTION getShadowFunction(void) const { + inline SHADOW_FUNCTION getShadowFunction() const { return static_cast(TheStructure.Common.ShadowFunction); } inline void setChromakeyMode(const CHROMAKEY_MODE value) { TheStructure.Common.ChromakeyMode = value; } - inline CHROMAKEY_MODE getChromakeyMode(void) const { + inline CHROMAKEY_MODE getChromakeyMode() const { return static_cast(TheStructure.Common.ChromakeyMode); } inline void setChromakeyIndex(const uint32_t value) { DEBUG_BREAK_IF(value > 0x60); TheStructure.Common.ChromakeyIndex = value; } - inline uint32_t getChromakeyIndex(void) const { + inline uint32_t getChromakeyIndex() const { return TheStructure.Common.ChromakeyIndex; } inline void setChromakeyEnable(const bool value) { TheStructure.Common.ChromakeyEnable = value; } - inline bool getChromakeyEnable(void) const { + inline bool getChromakeyEnable() const { return TheStructure.Common.ChromakeyEnable; } inline void setMaxLod(const uint32_t value) { DEBUG_BREAK_IF(value > 0xfff00); TheStructure.Common.MaxLod = value; } - inline uint32_t getMaxLod(void) const { + inline uint32_t getMaxLod() const { return TheStructure.Common.MaxLod; } inline void setMinLod(const uint32_t value) { DEBUG_BREAK_IF(value > 0xfff00000L); TheStructure.Common.MinLod = value; } - inline uint32_t getMinLod(void) const { + inline uint32_t getMinLod() const { return TheStructure.Common.MinLod; } inline void setLodClampMagnificationMode(const LOD_CLAMP_MAGNIFICATION_MODE value) { TheStructure.Common.LodClampMagnificationMode = value; } - inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode(void) const { + inline LOD_CLAMP_MAGNIFICATION_MODE getLodClampMagnificationMode() const { return static_cast(TheStructure.Common.LodClampMagnificationMode); } inline void setSrgbDecode(const SRGB_DECODE value) { TheStructure.Common.SrgbDecode = value; } - inline SRGB_DECODE getSrgbDecode(void) const { + inline SRGB_DECODE getSrgbDecode() const { return static_cast(TheStructure.Common.SrgbDecode); } inline void setReturnFilterWeightForNullTexels(const RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS value) { TheStructure.Common.ReturnFilterWeightForNullTexels = value; } - inline RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS getReturnFilterWeightForNullTexels(void) const { + inline RETURN_FILTER_WEIGHT_FOR_NULL_TEXELS getReturnFilterWeightForNullTexels() const { return static_cast(TheStructure.Common.ReturnFilterWeightForNullTexels); } inline void setReturnFilterWeightForBorderTexels(const RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS value) { TheStructure.Common.ReturnFilterWeightForBorderTexels = value; } - inline RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS getReturnFilterWeightForBorderTexels(void) const { + inline RETURN_FILTER_WEIGHT_FOR_BORDER_TEXELS getReturnFilterWeightForBorderTexels() const { return static_cast(TheStructure.Common.ReturnFilterWeightForBorderTexels); } typedef enum tagINDIRECTSTATEPOINTER { @@ -2775,103 +2775,103 @@ typedef struct tagSAMPLER_STATE { DEBUG_BREAK_IF(value > 0xffffc0); TheStructure.Common.IndirectStatePointer = static_cast(value) >> INDIRECTSTATEPOINTER_BIT_SHIFT; } - inline uint32_t getIndirectStatePointer(void) const { + inline uint32_t getIndirectStatePointer() const { return TheStructure.Common.IndirectStatePointer << INDIRECTSTATEPOINTER_BIT_SHIFT; } inline void setTczAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TczAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTczAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTczAddressControlMode() const { return static_cast(TheStructure.Common.TczAddressControlMode); } inline void setTcyAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcyAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcyAddressControlMode() const { return static_cast(TheStructure.Common.TcyAddressControlMode); } inline void setTcxAddressControlMode(const TEXTURE_COORDINATE_MODE value) { TheStructure.Common.TcxAddressControlMode = value; } - inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode(void) const { + inline TEXTURE_COORDINATE_MODE getTcxAddressControlMode() const { return static_cast(TheStructure.Common.TcxAddressControlMode); } inline void setReductionTypeEnable(const bool value) { TheStructure.Common.ReductionTypeEnable = value; } - inline bool getReductionTypeEnable(void) const { + inline bool getReductionTypeEnable() const { return TheStructure.Common.ReductionTypeEnable; } inline void setNonNormalizedCoordinateEnable(const bool value) { TheStructure.Common.NonNormalizedCoordinateEnable = value; } - inline bool getNonNormalizedCoordinateEnable(void) const { + inline bool getNonNormalizedCoordinateEnable() const { return TheStructure.Common.NonNormalizedCoordinateEnable; } inline void setTrilinearFilterQuality(const TRILINEAR_FILTER_QUALITY value) { TheStructure.Common.TrilinearFilterQuality = value; } - inline TRILINEAR_FILTER_QUALITY getTrilinearFilterQuality(void) const { + inline TRILINEAR_FILTER_QUALITY getTrilinearFilterQuality() const { return static_cast(TheStructure.Common.TrilinearFilterQuality); } inline void setRAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMinFilterRoundingEnable = value; } - inline bool getRAddressMinFilterRoundingEnable(void) const { + inline bool getRAddressMinFilterRoundingEnable() const { return TheStructure.Common.RAddressMinFilterRoundingEnable; } inline void setRAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.RAddressMagFilterRoundingEnable = value; } - inline bool getRAddressMagFilterRoundingEnable(void) const { + inline bool getRAddressMagFilterRoundingEnable() const { return TheStructure.Common.RAddressMagFilterRoundingEnable; } inline void setVAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMinFilterRoundingEnable = value; } - inline bool getVAddressMinFilterRoundingEnable(void) const { + inline bool getVAddressMinFilterRoundingEnable() const { return TheStructure.Common.VAddressMinFilterRoundingEnable; } inline void setVAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.VAddressMagFilterRoundingEnable = value; } - inline bool getVAddressMagFilterRoundingEnable(void) const { + inline bool getVAddressMagFilterRoundingEnable() const { return TheStructure.Common.VAddressMagFilterRoundingEnable; } inline void setUAddressMinFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMinFilterRoundingEnable = value; } - inline bool getUAddressMinFilterRoundingEnable(void) const { + inline bool getUAddressMinFilterRoundingEnable() const { return TheStructure.Common.UAddressMinFilterRoundingEnable; } inline void setUAddressMagFilterRoundingEnable(const bool value) { TheStructure.Common.UAddressMagFilterRoundingEnable = value; } - inline bool getUAddressMagFilterRoundingEnable(void) const { + inline bool getUAddressMagFilterRoundingEnable() const { return TheStructure.Common.UAddressMagFilterRoundingEnable; } inline void setMaximumAnisotropy(const MAXIMUM_ANISOTROPY value) { TheStructure.Common.MaximumAnisotropy = value; } - inline MAXIMUM_ANISOTROPY getMaximumAnisotropy(void) const { + inline MAXIMUM_ANISOTROPY getMaximumAnisotropy() const { return static_cast(TheStructure.Common.MaximumAnisotropy); } inline void setReductionType(const REDUCTION_TYPE value) { TheStructure.Common.ReductionType = value; } - inline REDUCTION_TYPE getReductionType(void) const { + inline REDUCTION_TYPE getReductionType() const { return static_cast(TheStructure.Common.ReductionType); } inline void setLowQualityFilter(const LOW_QUALITY_FILTER value) { TheStructure.Common.LowQualityFilter = value; } - inline LOW_QUALITY_FILTER getLowQualityFilter(void) const { + inline LOW_QUALITY_FILTER getLowQualityFilter() const { return static_cast(TheStructure.Common.LowQualityFilter); } inline void setAllowLowQualityLodCalculation(const bool value) { TheStructure.Common.AllowLowQualityLodCalculation = value; } - inline bool getAllowLowQualityLodCalculation(void) const { + inline bool getAllowLowQualityLodCalculation() const { return TheStructure.Common.AllowLowQualityLodCalculation; } } SAMPLER_STATE; @@ -3004,7 +3004,7 @@ typedef struct tagSTATE_BASE_ADDRESS { BINDLESSSAMPLERSTATEBASEADDRESS_BYTEOFFSET = 0x4c, BINDLESSSAMPLERSTATEBASEADDRESS_INDEX = 0x13, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_BASE_ADDRESS; @@ -3016,7 +3016,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.DisableSupportForMultiGpuPartialWritesForStatelessMessages = 1; TheStructure.Common.L1CachePolicyL1CacheControl = L1_CACHE_POLICY_WBP; } - static tagSTATE_BASE_ADDRESS sInit(void) { + static tagSTATE_BASE_ADDRESS sInit() { STATE_BASE_ADDRESS state; state.init(); return state; @@ -3028,19 +3028,19 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.GeneralStateBaseAddressModifyEnable = value; } - inline bool getGeneralStateBaseAddressModifyEnable(void) const { + inline bool getGeneralStateBaseAddressModifyEnable() const { return (TheStructure.Common.GeneralStateBaseAddressModifyEnable); } inline void setGeneralStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getGeneralStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_Reserved); } inline void setGeneralStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.GeneralStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getGeneralStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getGeneralStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.GeneralStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagGENERALSTATEBASEADDRESS { @@ -3050,50 +3050,50 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setGeneralStateBaseAddress(const uint64_t value) { TheStructure.Common.GeneralStateBaseAddress = value >> GENERALSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getGeneralStateBaseAddress(void) const { + inline uint64_t getGeneralStateBaseAddress() const { return (TheStructure.Common.GeneralStateBaseAddress << GENERALSTATEBASEADDRESS_BIT_SHIFT); } inline void setEnableMemoryCompressionForAllStatelessAccesses(const ENABLE_MEMORY_COMPRESSION_FOR_ALL_STATELESS_ACCESSES value) { TheStructure.Common.EnableMemoryCompressionForAllStatelessAccesses = value; } - inline ENABLE_MEMORY_COMPRESSION_FOR_ALL_STATELESS_ACCESSES getEnableMemoryCompressionForAllStatelessAccesses(void) const { + inline ENABLE_MEMORY_COMPRESSION_FOR_ALL_STATELESS_ACCESSES getEnableMemoryCompressionForAllStatelessAccesses() const { return static_cast(TheStructure.Common.EnableMemoryCompressionForAllStatelessAccesses); } inline void setDisableSupportForMultiGpuAtomicsForStatelessAccesses(const bool value) { TheStructure.Common.DisableSupportForMultiGpuAtomicsForStatelessAccesses = value; } - inline bool getDisableSupportForMultiGpuAtomicsForStatelessAccesses(void) const { + inline bool getDisableSupportForMultiGpuAtomicsForStatelessAccesses() const { return (TheStructure.Common.DisableSupportForMultiGpuAtomicsForStatelessAccesses); } inline void setDisableSupportForMultiGpuPartialWritesForStatelessMessages(const bool value) { TheStructure.Common.DisableSupportForMultiGpuPartialWritesForStatelessMessages = value; } - inline bool getDisableSupportForMultiGpuPartialWritesForStatelessMessages(void) const { + inline bool getDisableSupportForMultiGpuPartialWritesForStatelessMessages() const { return (TheStructure.Common.DisableSupportForMultiGpuPartialWritesForStatelessMessages); } inline void setStatelessDataPortAccessMemoryObjectControlStateReserved(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateReserved() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved); } inline void setStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1); } inline void setL1CachePolicyL1CacheControl(const L1_CACHE_POLICY value) { TheStructure.Common.L1CachePolicyL1CacheControl = value; } - inline L1_CACHE_POLICY getL1CachePolicyL1CacheControl(void) const { + inline L1_CACHE_POLICY getL1CachePolicyL1CacheControl() const { return static_cast(TheStructure.Common.L1CachePolicyL1CacheControl); } inline void setStatelessDataPortAccessMemoryObjectControlState(const uint32_t value) { TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value; TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = (value >> 1); } - inline uint32_t getStatelessDataPortAccessMemoryObjectControlState(void) const { + inline uint32_t getStatelessDataPortAccessMemoryObjectControlState() const { uint32_t mocs = TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1); return (mocs); @@ -3101,19 +3101,19 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.SurfaceStateBaseAddressModifyEnable = value; } - inline bool getSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.SurfaceStateBaseAddressModifyEnable); } inline void setSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_Reserved); } inline void setSurfaceStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.SurfaceStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getSurfaceStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getSurfaceStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagSURFACESTATEBASEADDRESS { @@ -3123,25 +3123,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.SurfaceStateBaseAddress = value >> SURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getSurfaceStateBaseAddress(void) const { + inline uint64_t getSurfaceStateBaseAddress() const { return (TheStructure.Common.SurfaceStateBaseAddress << SURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setDynamicStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.DynamicStateBaseAddressModifyEnable = value; } - inline bool getDynamicStateBaseAddressModifyEnable(void) const { + inline bool getDynamicStateBaseAddressModifyEnable() const { return (TheStructure.Common.DynamicStateBaseAddressModifyEnable); } inline void setDynamicStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getDynamicStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_Reserved); } inline void setDynamicStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.DynamicStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getDynamicStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getDynamicStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.DynamicStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagDYNAMICSTATEBASEADDRESS { @@ -3151,25 +3151,25 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setDynamicStateBaseAddress(const uint64_t value) { TheStructure.Common.DynamicStateBaseAddress = value >> DYNAMICSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getDynamicStateBaseAddress(void) const { + inline uint64_t getDynamicStateBaseAddress() const { return (TheStructure.Common.DynamicStateBaseAddress << DYNAMICSTATEBASEADDRESS_BIT_SHIFT); } inline void setInstructionBaseAddressModifyEnable(const bool value) { TheStructure.Common.InstructionBaseAddressModifyEnable = value; } - inline bool getInstructionBaseAddressModifyEnable(void) const { + inline bool getInstructionBaseAddressModifyEnable() const { return (TheStructure.Common.InstructionBaseAddressModifyEnable); } inline void setInstructionMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = value; } - inline uint64_t getInstructionMemoryObjectControlStateReserved(void) const { + inline uint64_t getInstructionMemoryObjectControlStateReserved() const { return (TheStructure.Common.InstructionMemoryObjectControlState_Reserved); } inline void setInstructionMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getInstructionMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getInstructionMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables << 1); } inline void setInstructionMemoryObjectControlState(const uint32_t value) { @@ -3177,7 +3177,7 @@ typedef struct tagSTATE_BASE_ADDRESS { TheStructure.Common.InstructionMemoryObjectControlState_Reserved = val; TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables = (val >> 1); } - inline uint32_t getInstructionMemoryObjectControlState(void) const { + inline uint32_t getInstructionMemoryObjectControlState() const { uint64_t mocs = TheStructure.Common.InstructionMemoryObjectControlState_Reserved; mocs |= (TheStructure.Common.InstructionMemoryObjectControlState_IndexToMocsTables << 1); return static_cast(mocs); @@ -3189,73 +3189,73 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setInstructionBaseAddress(const uint64_t value) { TheStructure.Common.InstructionBaseAddress = value >> INSTRUCTIONBASEADDRESS_BIT_SHIFT; } - inline uint64_t getInstructionBaseAddress(void) const { + inline uint64_t getInstructionBaseAddress() const { return (TheStructure.Common.InstructionBaseAddress << INSTRUCTIONBASEADDRESS_BIT_SHIFT); } inline void setGeneralStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.GeneralStateBufferSizeModifyEnable = value; } - inline bool getGeneralStateBufferSizeModifyEnable(void) const { + inline bool getGeneralStateBufferSizeModifyEnable() const { return (TheStructure.Common.GeneralStateBufferSizeModifyEnable); } inline void setGeneralStateBufferSize(const uint32_t value) { TheStructure.Common.GeneralStateBufferSize = value; } - inline uint32_t getGeneralStateBufferSize(void) const { + inline uint32_t getGeneralStateBufferSize() const { return (TheStructure.Common.GeneralStateBufferSize); } inline void setDynamicStateBufferSizeModifyEnable(const bool value) { TheStructure.Common.DynamicStateBufferSizeModifyEnable = value; } - inline bool getDynamicStateBufferSizeModifyEnable(void) const { + inline bool getDynamicStateBufferSizeModifyEnable() const { return (TheStructure.Common.DynamicStateBufferSizeModifyEnable); } inline void setDynamicStateBufferSize(const uint32_t value) { TheStructure.Common.DynamicStateBufferSize = value; } - inline uint32_t getDynamicStateBufferSize(void) const { + inline uint32_t getDynamicStateBufferSize() const { return (TheStructure.Common.DynamicStateBufferSize); } inline void setIndirectObjectBufferSizeModifyEnable(const bool value) { TheStructure.Common.IndirectObjectBufferSizeModifyEnable = value; } - inline bool getIndirectObjectBufferSizeModifyEnable(void) const { + inline bool getIndirectObjectBufferSizeModifyEnable() const { return (TheStructure.Common.IndirectObjectBufferSizeModifyEnable); } inline void setIndirectObjectBufferSize(const uint32_t value) { TheStructure.Common.IndirectObjectBufferSize = value; } - inline uint32_t getIndirectObjectBufferSize(void) const { + inline uint32_t getIndirectObjectBufferSize() const { return (TheStructure.Common.IndirectObjectBufferSize); } inline void setInstructionBufferSizeModifyEnable(const bool value) { TheStructure.Common.InstructionBufferSizeModifyEnable = value; } - inline bool getInstructionBufferSizeModifyEnable(void) const { + inline bool getInstructionBufferSizeModifyEnable() const { return (TheStructure.Common.InstructionBufferSizeModifyEnable); } inline void setInstructionBufferSize(const uint32_t value) { TheStructure.Common.InstructionBufferSize = value; } - inline uint32_t getInstructionBufferSize(void) const { + inline uint32_t getInstructionBufferSize() const { return (TheStructure.Common.InstructionBufferSize); } inline void setBindlessSurfaceStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.BindlessSurfaceStateBaseAddressModifyEnable = value; } - inline bool getBindlessSurfaceStateBaseAddressModifyEnable(void) const { + inline bool getBindlessSurfaceStateBaseAddressModifyEnable() const { return (TheStructure.Common.BindlessSurfaceStateBaseAddressModifyEnable); } inline void setBindlessSurfaceStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_Reserved); } inline void setBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getBindlessSurfaceStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.BindlessSurfaceStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagBINDLESSSURFACESTATEBASEADDRESS { @@ -3265,31 +3265,31 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setBindlessSurfaceStateBaseAddress(const uint64_t value) { TheStructure.Common.BindlessSurfaceStateBaseAddress = value >> BINDLESSSURFACESTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindlessSurfaceStateBaseAddress(void) const { + inline uint64_t getBindlessSurfaceStateBaseAddress() const { return (TheStructure.Common.BindlessSurfaceStateBaseAddress << BINDLESSSURFACESTATEBASEADDRESS_BIT_SHIFT); } inline void setBindlessSurfaceStateSize(const uint32_t value) { TheStructure.Common.BindlessSurfaceStateSize = value; } - inline uint32_t getBindlessSurfaceStateSize(void) const { + inline uint32_t getBindlessSurfaceStateSize() const { return TheStructure.Common.BindlessSurfaceStateSize; } inline void setBindlessSamplerStateBaseAddressModifyEnable(const bool value) { TheStructure.Common.BindlessSamplerStateBaseAddressModifyEnable = value; } - inline bool getBindlessSamplerStateBaseAddressModifyEnable(void) const { + inline bool getBindlessSamplerStateBaseAddressModifyEnable() const { return (TheStructure.Common.BindlessSamplerStateBaseAddressModifyEnable); } inline void setBindlessSamplerStateMemoryObjectControlStateReserved(const uint64_t value) { TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_Reserved = value; } - inline uint64_t getBindlessSamplerStateMemoryObjectControlStateReserved(void) const { + inline uint64_t getBindlessSamplerStateMemoryObjectControlStateReserved() const { return (TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_Reserved); } inline void setBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables(const uint64_t value) { TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_IndexToMocsTables = value >> 1; } - inline uint64_t getBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getBindlessSamplerStateMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.BindlessSamplerStateMemoryObjectControlState_IndexToMocsTables << 1); } typedef enum tagBINDLESSSAMPLERSTATEBASEADDRESS { @@ -3299,13 +3299,13 @@ typedef struct tagSTATE_BASE_ADDRESS { inline void setBindlessSamplerStateBaseAddress(const uint64_t value) { TheStructure.Common.BindlessSamplerStateBaseAddress = value >> BINDLESSSAMPLERSTATEBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindlessSamplerStateBaseAddress(void) const { + inline uint64_t getBindlessSamplerStateBaseAddress() const { return (TheStructure.Common.BindlessSamplerStateBaseAddress << BINDLESSSAMPLERSTATEBASEADDRESS_BIT_SHIFT); } inline void setBindlessSamplerStateBufferSize(const uint32_t value) { TheStructure.Common.BindlessSamplerStateBufferSize = value; } - inline uint32_t getBindlessSamplerStateBufferSize(void) const { + inline uint32_t getBindlessSamplerStateBufferSize() const { return (TheStructure.Common.BindlessSamplerStateBufferSize); } } STATE_BASE_ADDRESS; @@ -3340,13 +3340,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { MEMORYADDRESS_BYTEOFFSET = 0x4, MEMORYADDRESS_INDEX = 0x1, } PATCH_CONSTANTS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_REPORT_PERF_COUNT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_REPORT_PERF_COUNT sInit(void) { + static tagMI_REPORT_PERF_COUNT sInit() { MI_REPORT_PERF_COUNT state; state.init(); return state; @@ -3358,13 +3358,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return (TheStructure.Common.UseGlobalGtt); } inline void setCoreModeEnable(const uint64_t value) { TheStructure.Common.CoreModeEnable = value; } - inline uint64_t getCoreModeEnable(void) const { + inline uint64_t getCoreModeEnable() const { return (TheStructure.Common.CoreModeEnable); } typedef enum tagMEMORYADDRESS { @@ -3374,13 +3374,13 @@ typedef struct tagMI_REPORT_PERF_COUNT { inline void setMemoryAddress(const uint64_t value) { TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return (TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT); } inline void setReportId(const uint32_t value) { TheStructure.Common.ReportId = value; } - inline uint32_t getReportId(void) const { + inline uint32_t getReportId() const { return (TheStructure.Common.ReportId); } } MI_REPORT_PERF_COUNT; @@ -3401,11 +3401,11 @@ struct MI_USER_INTERRUPT { enum COMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MICommandOpcode = MI_COMMAND_OPCODE_MI_USER_INTERRUPT; } - static MI_USER_INTERRUPT sInit(void) { + static MI_USER_INTERRUPT sInit() { MI_USER_INTERRUPT state; state.init(); return state; @@ -3444,14 +3444,14 @@ typedef struct tagMI_SET_PREDICATE { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.PredicateEnable = PREDICATE_ENABLE_PREDICATE_DISABLE; TheStructure.Common.PredicateEnableWparid = PREDICATE_ENABLE_WPARID_NOOP_NEVER; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_SET_PREDICATE; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_SET_PREDICATE sInit(void) { + static tagMI_SET_PREDICATE sInit() { MI_SET_PREDICATE state; state.init(); return state; @@ -3463,13 +3463,13 @@ typedef struct tagMI_SET_PREDICATE { inline void setPredicateEnable(const PREDICATE_ENABLE value) { TheStructure.Common.PredicateEnable = value; } - inline PREDICATE_ENABLE getPredicateEnable(void) const { + inline PREDICATE_ENABLE getPredicateEnable() const { return static_cast(TheStructure.Common.PredicateEnable); } inline void setPredicateEnableWparid(const PREDICATE_ENABLE_WPARID value) { TheStructure.Common.PredicateEnableWparid = value; } - inline PREDICATE_ENABLE_WPARID getPredicateEnableWparid(void) const { + inline PREDICATE_ENABLE_WPARID getPredicateEnableWparid() const { return static_cast(TheStructure.Common.PredicateEnableWparid); } } MI_SET_PREDICATE; @@ -3518,7 +3518,7 @@ typedef struct tagMI_CONDITIONAL_BATCH_BUFFER_END { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.CompareOperation = COMPARE_OPERATION_MAD_GREATER_THAN_IDD; @@ -3526,7 +3526,7 @@ typedef struct tagMI_CONDITIONAL_BATCH_BUFFER_END { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_CONDITIONAL_BATCH_BUFFER_END; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_CONDITIONAL_BATCH_BUFFER_END sInit(void) { + static tagMI_CONDITIONAL_BATCH_BUFFER_END sInit() { MI_CONDITIONAL_BATCH_BUFFER_END state; state.init(); return state; @@ -3538,43 +3538,43 @@ typedef struct tagMI_CONDITIONAL_BATCH_BUFFER_END { inline void setCompareOperation(const COMPARE_OPERATION value) { TheStructure.Common.CompareOperation = value; } - inline COMPARE_OPERATION getCompareOperation(void) const { + inline COMPARE_OPERATION getCompareOperation() const { return static_cast(TheStructure.Common.CompareOperation); } inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return TheStructure.Common.PredicateEnable; } inline void setEndCurrentBatchBufferLevel(const bool value) { TheStructure.Common.EndCurrentBatchBufferLevel = value; } - inline bool getEndCurrentBatchBufferLevel(void) const { + inline bool getEndCurrentBatchBufferLevel() const { return TheStructure.Common.EndCurrentBatchBufferLevel; } inline void setCompareMaskMode(const COMPARE_MASK_MODE value) { TheStructure.Common.CompareMaskMode = value; } - inline COMPARE_MASK_MODE getCompareMaskMode(void) const { + inline COMPARE_MASK_MODE getCompareMaskMode() const { return static_cast(TheStructure.Common.CompareMaskMode); } inline void setCompareSemaphore(const bool value) { TheStructure.Common.CompareSemaphore = value; } - inline bool getCompareSemaphore(void) const { + inline bool getCompareSemaphore() const { return TheStructure.Common.CompareSemaphore; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } inline void setCompareDataDword(const uint32_t value) { TheStructure.Common.CompareDataDword = value; } - inline uint32_t getCompareDataDword(void) const { + inline uint32_t getCompareDataDword() const { return TheStructure.Common.CompareDataDword; } typedef enum tagCOMPAREADDRESS { @@ -3584,7 +3584,7 @@ typedef struct tagMI_CONDITIONAL_BATCH_BUFFER_END { inline void setCompareAddress(const uint64_t value) { TheStructure.Common.CompareAddress = value >> COMPAREADDRESS_BIT_SHIFT; } - inline uint64_t getCompareAddress(void) const { + inline uint64_t getCompareAddress() const { return TheStructure.Common.CompareAddress << COMPAREADDRESS_BIT_SHIFT; } } MI_CONDITIONAL_BATCH_BUFFER_END; @@ -3793,14 +3793,14 @@ struct XY_BLOCK_COPY_BLT { INSTRUCTIONTARGET_OPCODE_OPCODE = 0x41, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH::DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.InstructionTarget_Opcode = INSTRUCTIONTARGET_OPCODE_OPCODE; TheStructure.Common.Client = CLIENT::CLIENT_2D_PROCESSOR; } - static XY_BLOCK_COPY_BLT sInit(void) { + static XY_BLOCK_COPY_BLT sInit() { XY_BLOCK_COPY_BLT state; state.init(); return state; @@ -3815,7 +3815,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.NumberofMultisamples = value; } - inline NUMBER_OF_MULTISAMPLES getNumberofMultisamples(void) const { + inline NUMBER_OF_MULTISAMPLES getNumberofMultisamples() const { return static_cast(TheStructure.Common.NumberofMultisamples); } @@ -3823,7 +3823,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SpecialModeofOperation = value; } - inline SPECIAL_MODE_OF_OPERATION getSpecialModeofOperation(void) const { + inline SPECIAL_MODE_OF_OPERATION getSpecialModeofOperation() const { return static_cast(TheStructure.Common.SpecialModeofOperation); } @@ -3831,7 +3831,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } @@ -3839,7 +3839,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return (TheStructure.Common.InstructionTarget_Opcode); } @@ -3847,7 +3847,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } @@ -3855,7 +3855,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationPitch = value - 1; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return (TheStructure.Common.DestinationPitch + 1); } @@ -3863,7 +3863,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationAuxiliarysurfacemode = value; } - inline AUXILIARY_SURFACE_MODE getDestinationAuxiliarysurfacemode(void) const { + inline AUXILIARY_SURFACE_MODE getDestinationAuxiliarysurfacemode() const { return static_cast(TheStructure.Common.DestinationAuxiliarysurfacemode); } @@ -3871,7 +3871,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationMOCS = value; } - inline uint32_t getDestinationMOCS(void) const { + inline uint32_t getDestinationMOCS() const { return (TheStructure.Common.DestinationMOCS); } @@ -3879,7 +3879,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationCompressionType = value; } - inline COMPRESSION_TYPE getDestinationCompressionType(void) const { + inline COMPRESSION_TYPE getDestinationCompressionType() const { return static_cast(TheStructure.Common.DestinationCompressionType); } @@ -3887,7 +3887,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationCompressionEnable = value; } - inline COMPRESSION_ENABLE getDestinationCompressionEnable(void) const { + inline COMPRESSION_ENABLE getDestinationCompressionEnable() const { return static_cast(TheStructure.Common.DestinationCompressionEnable); } @@ -3895,7 +3895,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationTiling = value; } - inline TILING getDestinationTiling(void) const { + inline TILING getDestinationTiling() const { return static_cast(TheStructure.Common.DestinationTiling); } @@ -3903,7 +3903,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return (TheStructure.Common.DestinationX1Coordinate_Left); } @@ -3911,7 +3911,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return (TheStructure.Common.DestinationY1Coordinate_Top); } @@ -3919,7 +3919,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return (TheStructure.Common.DestinationX2Coordinate_Right); } @@ -3927,7 +3927,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return (TheStructure.Common.DestinationY2Coordinate_Bottom); } @@ -3935,7 +3935,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return (TheStructure.Common.DestinationBaseAddress); } @@ -3943,7 +3943,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationXoffset = value; } - inline uint32_t getDestinationXoffset(void) const { + inline uint32_t getDestinationXoffset() const { return (TheStructure.Common.DestinationXoffset); } @@ -3951,7 +3951,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationYoffset = value; } - inline uint32_t getDestinationYoffset(void) const { + inline uint32_t getDestinationYoffset() const { return (TheStructure.Common.DestinationYoffset); } @@ -3959,7 +3959,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationTargetMemory = value; } - inline TARGET_MEMORY getDestinationTargetMemory(void) const { + inline TARGET_MEMORY getDestinationTargetMemory() const { return static_cast(TheStructure.Common.DestinationTargetMemory); } @@ -3967,7 +3967,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceX1Coordinate_Left = value; } - inline uint32_t getSourceX1CoordinateLeft(void) const { + inline uint32_t getSourceX1CoordinateLeft() const { return (TheStructure.Common.SourceX1Coordinate_Left); } @@ -3975,7 +3975,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceY1Coordinate_Top = value; } - inline uint32_t getSourceY1CoordinateTop(void) const { + inline uint32_t getSourceY1CoordinateTop() const { return (TheStructure.Common.SourceY1Coordinate_Top); } @@ -3983,7 +3983,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourcePitch = value - 1; } - inline uint32_t getSourcePitch(void) const { + inline uint32_t getSourcePitch() const { return (TheStructure.Common.SourcePitch + 1); } @@ -3991,7 +3991,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceAuxiliarysurfacemode = value; } - inline AUXILIARY_SURFACE_MODE getSourceAuxiliarysurfacemode(void) const { + inline AUXILIARY_SURFACE_MODE getSourceAuxiliarysurfacemode() const { return static_cast(TheStructure.Common.SourceAuxiliarysurfacemode); } @@ -3999,7 +3999,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceMOCS = value; } - inline uint32_t getSourceMOCS(void) const { + inline uint32_t getSourceMOCS() const { return (TheStructure.Common.SourceMOCS); } @@ -4007,7 +4007,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceCompressionType = value; } - inline COMPRESSION_TYPE getSourceCompressionType(void) const { + inline COMPRESSION_TYPE getSourceCompressionType() const { return static_cast(TheStructure.Common.SourceCompressionType); } @@ -4015,7 +4015,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceCompressionEnable = value; } - inline COMPRESSION_ENABLE getSourceCompressionEnable(void) const { + inline COMPRESSION_ENABLE getSourceCompressionEnable() const { return static_cast(TheStructure.Common.SourceCompressionEnable); } @@ -4023,7 +4023,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceTiling = value; } - inline TILING getSourceTiling(void) const { + inline TILING getSourceTiling() const { return static_cast(TheStructure.Common.SourceTiling); } @@ -4031,7 +4031,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceBaseAddress = value; } - inline uint64_t getSourceBaseAddress(void) const { + inline uint64_t getSourceBaseAddress() const { return (TheStructure.Common.SourceBaseAddress); } @@ -4039,7 +4039,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceXoffset = value; } - inline uint32_t getSourceXoffset(void) const { + inline uint32_t getSourceXoffset() const { return (TheStructure.Common.SourceXoffset); } @@ -4047,7 +4047,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceYoffset = value; } - inline uint32_t getSourceYoffset(void) const { + inline uint32_t getSourceYoffset() const { return (TheStructure.Common.SourceYoffset); } @@ -4055,7 +4055,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceTargetMemory = value; } - inline TARGET_MEMORY getSourceTargetMemory(void) const { + inline TARGET_MEMORY getSourceTargetMemory() const { return static_cast(TheStructure.Common.SourceTargetMemory); } @@ -4063,7 +4063,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceCompressionFormat = value; } - inline uint32_t getSourceCompressionFormat(void) const { + inline uint32_t getSourceCompressionFormat() const { return (TheStructure.Common.SourceCompressionFormat); } @@ -4071,7 +4071,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceClearValueEnable = value; } - inline CLEAR_VALUE_ENABLE getSourceClearValueEnable(void) const { + inline CLEAR_VALUE_ENABLE getSourceClearValueEnable() const { return static_cast(TheStructure.Common.SourceClearValueEnable); } @@ -4084,7 +4084,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceClearAddressLow = value >> CLEARADDRESSLOW_BIT_SHIFT; } - inline uint32_t getSourceClearAddressLow(void) const { + inline uint32_t getSourceClearAddressLow() const { return (TheStructure.Common.SourceClearAddressLow << CLEARADDRESSLOW_BIT_SHIFT); } @@ -4092,7 +4092,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceClearAddressHigh = value; } - inline uint32_t getSourceClearAddressHigh(void) const { + inline uint32_t getSourceClearAddressHigh() const { return (TheStructure.Common.SourceClearAddressHigh); } @@ -4100,7 +4100,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationCompressionFormat = value; } - inline uint32_t getDestinationCompressionFormat(void) const { + inline uint32_t getDestinationCompressionFormat() const { return (TheStructure.Common.DestinationCompressionFormat); } @@ -4108,7 +4108,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationClearValueEnable = value; } - inline CLEAR_VALUE_ENABLE getDestinationClearValueEnable(void) const { + inline CLEAR_VALUE_ENABLE getDestinationClearValueEnable() const { return static_cast(TheStructure.Common.DestinationClearValueEnable); } @@ -4116,7 +4116,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationClearAddressLow = value >> CLEARADDRESSLOW_BIT_SHIFT; } - inline uint32_t getDestinationClearAddressLow(void) const { + inline uint32_t getDestinationClearAddressLow() const { return (TheStructure.Common.DestinationClearAddressLow << CLEARADDRESSLOW_BIT_SHIFT); } @@ -4124,7 +4124,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationClearAddressHigh = value; } - inline uint32_t getDestinationClearAddressHigh(void) const { + inline uint32_t getDestinationClearAddressHigh() const { return (TheStructure.Common.DestinationClearAddressHigh); } @@ -4132,7 +4132,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSurfaceHeight = value - 1; } - inline uint32_t getDestinationSurfaceHeight(void) const { + inline uint32_t getDestinationSurfaceHeight() const { return (TheStructure.Common.DestinationSurfaceHeight + 1); } @@ -4140,7 +4140,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSurfaceWidth = value - 1; } - inline uint32_t getDestinationSurfaceWidth(void) const { + inline uint32_t getDestinationSurfaceWidth() const { return (TheStructure.Common.DestinationSurfaceWidth + 1); } @@ -4148,7 +4148,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSurfaceType = value; } - inline SURFACE_TYPE getDestinationSurfaceType(void) const { + inline SURFACE_TYPE getDestinationSurfaceType() const { return static_cast(TheStructure.Common.DestinationSurfaceType); } @@ -4156,7 +4156,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationLOD = value; } - inline uint32_t getDestinationLOD(void) const { + inline uint32_t getDestinationLOD() const { return (TheStructure.Common.DestinationLOD); } @@ -4164,7 +4164,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSurfaceQpitch = value; } - inline uint32_t getDestinationSurfaceQpitch(void) const { + inline uint32_t getDestinationSurfaceQpitch() const { return (TheStructure.Common.DestinationSurfaceQpitch); } @@ -4172,7 +4172,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSurfaceDepth = value - 1; } - inline uint32_t getDestinationSurfaceDepth(void) const { + inline uint32_t getDestinationSurfaceDepth() const { return (TheStructure.Common.DestinationSurfaceDepth + 1); } @@ -4180,7 +4180,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationHorizontalAlign = value; } - inline uint32_t getDestinationHorizontalAlign(void) const { + inline uint32_t getDestinationHorizontalAlign() const { return (TheStructure.Common.DestinationHorizontalAlign); } @@ -4188,7 +4188,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationVerticalAlign = value; } - inline uint32_t getDestinationVerticalAlign(void) const { + inline uint32_t getDestinationVerticalAlign() const { return (TheStructure.Common.DestinationVerticalAlign); } @@ -4196,7 +4196,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationSSID = value; } - inline uint32_t getDestinationSSID(void) const { + inline uint32_t getDestinationSSID() const { return (TheStructure.Common.DestinationSSID); } @@ -4204,7 +4204,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationMipTailStartLOD = value; } - inline uint32_t getDestinationMipTailStartLOD(void) const { + inline uint32_t getDestinationMipTailStartLOD() const { return (TheStructure.Common.DestinationMipTailStartLOD); } @@ -4212,7 +4212,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationDepthStencilResource = value; } - inline uint32_t getDestinationDepthStencilResource(void) const { + inline uint32_t getDestinationDepthStencilResource() const { return (TheStructure.Common.DestinationDepthStencilResource); } @@ -4220,7 +4220,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.DestinationArrayIndex = value - 1; } - inline uint32_t getDestinationArrayIndex(void) const { + inline uint32_t getDestinationArrayIndex() const { return (TheStructure.Common.DestinationArrayIndex + 1); } @@ -4228,7 +4228,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSurfaceHeight = value - 1; } - inline uint32_t getSourceSurfaceHeight(void) const { + inline uint32_t getSourceSurfaceHeight() const { return (TheStructure.Common.SourceSurfaceHeight + 1); } @@ -4236,7 +4236,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSurfaceWidth = value - 1; } - inline uint32_t getSourceSurfaceWidth(void) const { + inline uint32_t getSourceSurfaceWidth() const { return (TheStructure.Common.SourceSurfaceWidth + 1); } @@ -4244,7 +4244,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSurfaceType = value; } - inline SURFACE_TYPE getSourceSurfaceType(void) const { + inline SURFACE_TYPE getSourceSurfaceType() const { return static_cast(TheStructure.Common.SourceSurfaceType); } @@ -4252,7 +4252,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceLOD = value; } - inline uint32_t getSourceLOD(void) const { + inline uint32_t getSourceLOD() const { return (TheStructure.Common.SourceLOD); } @@ -4260,7 +4260,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSurfaceQpitch = value; } - inline uint32_t getSourceSurfaceQpitch(void) const { + inline uint32_t getSourceSurfaceQpitch() const { return (TheStructure.Common.SourceSurfaceQpitch); } @@ -4268,7 +4268,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSurfaceDepth = value - 1; } - inline uint32_t getSourceSurfaceDepth(void) const { + inline uint32_t getSourceSurfaceDepth() const { return (TheStructure.Common.SourceSurfaceDepth + 1); } @@ -4276,7 +4276,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceHorizontalAlign = value; } - inline uint32_t getSourceHorizontalAlign(void) const { + inline uint32_t getSourceHorizontalAlign() const { return (TheStructure.Common.SourceHorizontalAlign); } @@ -4284,7 +4284,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceVerticalAlign = value; } - inline uint32_t getSourceVerticalAlign(void) const { + inline uint32_t getSourceVerticalAlign() const { return (TheStructure.Common.SourceVerticalAlign); } @@ -4292,7 +4292,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceSSID = value; } - inline uint32_t getSourceSSID(void) const { + inline uint32_t getSourceSSID() const { return (TheStructure.Common.SourceSSID); } @@ -4300,7 +4300,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceMipTailStartLOD = value; } - inline uint32_t getSourceMipTailStartLOD(void) const { + inline uint32_t getSourceMipTailStartLOD() const { return (TheStructure.Common.SourceMipTailStartLOD); } @@ -4308,7 +4308,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceDepthStencilResource = value; } - inline uint32_t getSourceDepthStencilResource(void) const { + inline uint32_t getSourceDepthStencilResource() const { return (TheStructure.Common.SourceDepthStencilResource); } @@ -4316,7 +4316,7 @@ struct XY_BLOCK_COPY_BLT { TheStructure.Common.SourceArrayIndex = value - 1; } - inline uint32_t getSourceArrayIndex(void) const { + inline uint32_t getSourceArrayIndex() const { return (TheStructure.Common.SourceArrayIndex + 1); } }; @@ -4471,14 +4471,14 @@ struct XY_FAST_COLOR_BLT { INSTRUCTIONTARGET_OPCODE_OPCODE = 0x44, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH::DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.InstructionTarget_Opcode = INSTRUCTIONTARGET_OPCODE::INSTRUCTIONTARGET_OPCODE_OPCODE; TheStructure.Common.Client = CLIENT::CLIENT_2D_PROCESSOR; } - static XY_FAST_COLOR_BLT sInit(void) { + static XY_FAST_COLOR_BLT sInit() { XY_FAST_COLOR_BLT state; state.init(); return state; @@ -4493,7 +4493,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.NumberofMultisamples = value; } - inline NUMBER_OF_MULTISAMPLES getNumberofMultisamples(void) const { + inline NUMBER_OF_MULTISAMPLES getNumberofMultisamples() const { return static_cast(TheStructure.Common.NumberofMultisamples); } @@ -4501,7 +4501,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.SpecialModeofOperation = value; } - inline SPECIAL_MODE_OF_OPERATION getSpecialModeofOperation(void) const { + inline SPECIAL_MODE_OF_OPERATION getSpecialModeofOperation() const { return static_cast(TheStructure.Common.SpecialModeofOperation); } @@ -4509,7 +4509,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.ColorDepth = value; } - inline COLOR_DEPTH getColorDepth(void) const { + inline COLOR_DEPTH getColorDepth() const { return static_cast(TheStructure.Common.ColorDepth); } @@ -4517,7 +4517,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.InstructionTarget_Opcode = value; } - inline uint32_t getInstructionTargetOpcode(void) const { + inline uint32_t getInstructionTargetOpcode() const { return (TheStructure.Common.InstructionTarget_Opcode); } @@ -4525,7 +4525,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.Client = value; } - inline CLIENT getClient(void) const { + inline CLIENT getClient() const { return static_cast(TheStructure.Common.Client); } @@ -4533,7 +4533,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationPitch = value - 1; } - inline uint32_t getDestinationPitch(void) const { + inline uint32_t getDestinationPitch() const { return (TheStructure.Common.DestinationPitch + 1); } @@ -4541,7 +4541,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationAuxiliarysurfacemode = value; } - inline DESTINATION_AUXILIARY_SURFACE_MODE getDestinationAuxiliarysurfacemode(void) const { + inline DESTINATION_AUXILIARY_SURFACE_MODE getDestinationAuxiliarysurfacemode() const { return static_cast(TheStructure.Common.DestinationAuxiliarysurfacemode); } @@ -4549,7 +4549,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationMOCS = value; } - inline uint32_t getDestinationMOCS(void) const { + inline uint32_t getDestinationMOCS() const { return (TheStructure.Common.DestinationMOCS); } @@ -4557,7 +4557,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationCompressionType = value; } - inline DESTINATION_COMPRESSION_TYPE getDestinationCompressionType(void) const { + inline DESTINATION_COMPRESSION_TYPE getDestinationCompressionType() const { return static_cast(TheStructure.Common.DestinationCompressionType); } @@ -4565,7 +4565,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationCompressionEnable = value; } - inline DESTINATION_COMPRESSION_ENABLE getDestinationCompressionEnable(void) const { + inline DESTINATION_COMPRESSION_ENABLE getDestinationCompressionEnable() const { return static_cast(TheStructure.Common.DestinationCompressionEnable); } @@ -4573,7 +4573,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationTiling = value; } - inline DESTINATION_TILING getDestinationTiling(void) const { + inline DESTINATION_TILING getDestinationTiling() const { return static_cast(TheStructure.Common.DestinationTiling); } @@ -4581,7 +4581,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationX1Coordinate_Left = value; } - inline uint32_t getDestinationX1CoordinateLeft(void) const { + inline uint32_t getDestinationX1CoordinateLeft() const { return (TheStructure.Common.DestinationX1Coordinate_Left); } @@ -4589,7 +4589,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationY1Coordinate_Top = value; } - inline uint32_t getDestinationY1CoordinateTop(void) const { + inline uint32_t getDestinationY1CoordinateTop() const { return (TheStructure.Common.DestinationY1Coordinate_Top); } @@ -4597,7 +4597,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationX2Coordinate_Right = value; } - inline uint32_t getDestinationX2CoordinateRight(void) const { + inline uint32_t getDestinationX2CoordinateRight() const { return (TheStructure.Common.DestinationX2Coordinate_Right); } @@ -4605,7 +4605,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationY2Coordinate_Bottom = value; } - inline uint32_t getDestinationY2CoordinateBottom(void) const { + inline uint32_t getDestinationY2CoordinateBottom() const { return (TheStructure.Common.DestinationY2Coordinate_Bottom); } @@ -4613,7 +4613,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationBaseAddress = value; } - inline uint64_t getDestinationBaseAddress(void) const { + inline uint64_t getDestinationBaseAddress() const { return (TheStructure.Common.DestinationBaseAddress); } @@ -4621,7 +4621,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationXoffset = value; } - inline uint32_t getDestinationXoffset(void) const { + inline uint32_t getDestinationXoffset() const { return (TheStructure.Common.DestinationXoffset); } @@ -4629,7 +4629,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationYoffset = value; } - inline uint32_t getDestinationYoffset(void) const { + inline uint32_t getDestinationYoffset() const { return (TheStructure.Common.DestinationYoffset); } @@ -4637,7 +4637,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationTargetMemory = value; } - inline DESTINATION_TARGET_MEMORY getDestinationTargetMemory(void) const { + inline DESTINATION_TARGET_MEMORY getDestinationTargetMemory() const { return static_cast(TheStructure.Common.DestinationTargetMemory); } @@ -4652,7 +4652,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationCompressionFormat = value; } - inline uint32_t getDestinationCompressionFormat(void) const { + inline uint32_t getDestinationCompressionFormat() const { return (TheStructure.Common.DestinationCompressionFormat); } @@ -4660,7 +4660,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationClearValueEnable = value; } - inline DESTINATION_CLEAR_VALUE_ENABLE getDestinationClearValueEnable(void) const { + inline DESTINATION_CLEAR_VALUE_ENABLE getDestinationClearValueEnable() const { return static_cast(TheStructure.Common.DestinationClearValueEnable); } @@ -4673,7 +4673,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationClearAddressLow = value >> DESTINATIONCLEARADDRESSLOW_BIT_SHIFT; } - inline uint32_t getDestinationClearAddressLow(void) const { + inline uint32_t getDestinationClearAddressLow() const { return (TheStructure.Common.DestinationClearAddressLow << DESTINATIONCLEARADDRESSLOW_BIT_SHIFT); } @@ -4681,7 +4681,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationClearAddressHigh = value; } - inline uint32_t getDestinationClearAddressHigh(void) const { + inline uint32_t getDestinationClearAddressHigh() const { return (TheStructure.Common.DestinationClearAddressHigh); } @@ -4689,7 +4689,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationSurfaceHeight = value - 1; } - inline uint32_t getDestinationSurfaceHeight(void) const { + inline uint32_t getDestinationSurfaceHeight() const { return (TheStructure.Common.DestinationSurfaceHeight + 1); } @@ -4697,7 +4697,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationSurfaceWidth = value - 1; } - inline uint32_t getDestinationSurfaceWidth(void) const { + inline uint32_t getDestinationSurfaceWidth() const { return (TheStructure.Common.DestinationSurfaceWidth + 1); } @@ -4705,7 +4705,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationSurfaceType = value; } - inline DESTINATION_SURFACE_TYPE getDestinationSurfaceType(void) const { + inline DESTINATION_SURFACE_TYPE getDestinationSurfaceType() const { return static_cast(TheStructure.Common.DestinationSurfaceType); } @@ -4713,7 +4713,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationLOD = value; } - inline uint32_t getDestinationLOD(void) const { + inline uint32_t getDestinationLOD() const { return (TheStructure.Common.DestinationLOD); } @@ -4721,7 +4721,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationSurfaceQpitch = value; } - inline uint32_t getDestinationSurfaceQpitch(void) const { + inline uint32_t getDestinationSurfaceQpitch() const { return (TheStructure.Common.DestinationSurfaceQpitch); } @@ -4729,7 +4729,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationSurfaceDepth = value; } - inline uint32_t getDestinationSurfaceDepth(void) const { + inline uint32_t getDestinationSurfaceDepth() const { return (TheStructure.Common.DestinationSurfaceDepth); } @@ -4737,7 +4737,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationHorizontalAlign = value; } - inline uint32_t getDestinationHorizontalAlign(void) const { + inline uint32_t getDestinationHorizontalAlign() const { return (TheStructure.Common.DestinationHorizontalAlign); } @@ -4745,7 +4745,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationVerticalAlign = value; } - inline uint32_t getDestinationVerticalAlign(void) const { + inline uint32_t getDestinationVerticalAlign() const { return (TheStructure.Common.DestinationVerticalAlign); } @@ -4753,7 +4753,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationMipTailStartLOD = value; } - inline uint32_t getDestinationMipTailStartLOD(void) const { + inline uint32_t getDestinationMipTailStartLOD() const { return (TheStructure.Common.DestinationMipTailStartLOD); } @@ -4761,7 +4761,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationDepthStencilResource = value; } - inline uint32_t getDestinationDepthStencilResource(void) const { + inline uint32_t getDestinationDepthStencilResource() const { return (TheStructure.Common.DestinationDepthStencilResource); } @@ -4769,7 +4769,7 @@ struct XY_FAST_COLOR_BLT { TheStructure.Common.DestinationArrayIndex = value - 1; } - inline uint32_t getDestinationArrayIndex(void) const { + inline uint32_t getDestinationArrayIndex() const { return (TheStructure.Common.DestinationArrayIndex + 1); } }; @@ -4825,13 +4825,13 @@ struct MI_FLUSH_DW { COMMAND_TYPE_MI_COMMAND = 0, }; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH::DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE::MI_COMMAND_OPCODE_MI_FLUSH_DW; } - static MI_FLUSH_DW sInit(void) { + static MI_FLUSH_DW sInit() { MI_FLUSH_DW state; state.init(); return state; @@ -4846,7 +4846,7 @@ struct MI_FLUSH_DW { TheStructure.Common.NotifyEnable = value; } - inline uint32_t getNotifyEnable(void) const { + inline uint32_t getNotifyEnable() const { return (TheStructure.Common.NotifyEnable); } @@ -4854,7 +4854,7 @@ struct MI_FLUSH_DW { TheStructure.Common.FlushLlc = value; } - inline uint32_t getFlushLlc(void) const { + inline uint32_t getFlushLlc() const { return (TheStructure.Common.FlushLlc); } @@ -4862,7 +4862,7 @@ struct MI_FLUSH_DW { TheStructure.Common.FlushCcs = value; } - inline uint32_t getFlushCcs(void) const { + inline uint32_t getFlushCcs() const { return (TheStructure.Common.FlushCcs); } @@ -4870,7 +4870,7 @@ struct MI_FLUSH_DW { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } @@ -4878,7 +4878,7 @@ struct MI_FLUSH_DW { TheStructure.Common.TlbInvalidate = value; } - inline uint32_t getTlbInvalidate(void) const { + inline uint32_t getTlbInvalidate() const { return (TheStructure.Common.TlbInvalidate); } @@ -4886,7 +4886,7 @@ struct MI_FLUSH_DW { TheStructure.Common.StoreDataIndex = value; } - inline uint32_t getStoreDataIndex(void) const { + inline uint32_t getStoreDataIndex() const { return (TheStructure.Common.StoreDataIndex); } @@ -4899,7 +4899,7 @@ struct MI_FLUSH_DW { TheStructure.Common.DestinationAddress = value >> DESTINATIONADDRESS_BIT_SHIFT; } - inline uint64_t getDestinationAddress(void) const { + inline uint64_t getDestinationAddress() const { return (TheStructure.Common.DestinationAddress << DESTINATIONADDRESS_BIT_SHIFT); } @@ -4907,7 +4907,7 @@ struct MI_FLUSH_DW { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return (TheStructure.Common.ImmediateData); } }; @@ -4949,12 +4949,12 @@ typedef struct tag_3DSTATE_BTD_BODY { PER_DSS_MEMORY_BACKED_BUFFER_SIZE_64KB = 0x5, PER_DSS_MEMORY_BACKED_BUFFER_SIZE_128KB = 0x6, } PER_DSS_MEMORY_BACKED_BUFFER_SIZE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.AmfsMode = AMFS_MODE_NORMAL_MODE; TheStructure.Common.PerDssMemoryBackedBufferSize = PER_DSS_MEMORY_BACKED_BUFFER_SIZE_128KB; } - static tag_3DSTATE_BTD_BODY sInit(void) { + static tag_3DSTATE_BTD_BODY sInit() { _3DSTATE_BTD_BODY state; state.init(); return state; @@ -4967,19 +4967,19 @@ typedef struct tag_3DSTATE_BTD_BODY { UNRECOVERABLE_IF(value > 0x3); TheStructure.Common.DispatchTimeoutCounter = value; } - inline uint32_t getDispatchTimeoutCounter(void) const { + inline uint32_t getDispatchTimeoutCounter() const { return TheStructure.Common.DispatchTimeoutCounter; } inline void setAmfsMode(const AMFS_MODE value) { TheStructure.Common.AmfsMode = value; } - inline AMFS_MODE getAmfsMode(void) const { + inline AMFS_MODE getAmfsMode() const { return static_cast(TheStructure.Common.AmfsMode); } inline void setPerDssMemoryBackedBufferSize(const PER_DSS_MEMORY_BACKED_BUFFER_SIZE value) { TheStructure.Common.PerDssMemoryBackedBufferSize = value; } - inline PER_DSS_MEMORY_BACKED_BUFFER_SIZE getPerDssMemoryBackedBufferSize(void) const { + inline PER_DSS_MEMORY_BACKED_BUFFER_SIZE getPerDssMemoryBackedBufferSize() const { return static_cast(TheStructure.Common.PerDssMemoryBackedBufferSize); } typedef enum tagMEMORYBACKEDBUFFERBASEPOINTER { @@ -4990,14 +4990,14 @@ typedef struct tag_3DSTATE_BTD_BODY { UNRECOVERABLE_IF(value > 0xffffffffffffffffL); TheStructure.Common.MemoryBackedBufferBasePointer = value >> MEMORYBACKEDBUFFERBASEPOINTER_BIT_SHIFT; } - inline uint64_t getMemoryBackedBufferBasePointer(void) const { + inline uint64_t getMemoryBackedBufferBasePointer() const { return TheStructure.Common.MemoryBackedBufferBasePointer << MEMORYBACKEDBUFFERBASEPOINTER_BIT_SHIFT; } inline void setPerThreadScratchSpace(const uint64_t value) { UNRECOVERABLE_IF(value > 0xfL); TheStructure.Common.PerThreadScratchSpace = value; } - inline uint64_t getPerThreadScratchSpace(void) const { + inline uint64_t getPerThreadScratchSpace() const { return TheStructure.Common.PerThreadScratchSpace; } typedef enum tagBTDSCRATCHSPACEBASEPOINTER { @@ -5008,7 +5008,7 @@ typedef struct tag_3DSTATE_BTD_BODY { UNRECOVERABLE_IF(value > 0xffffffffL); TheStructure.Common.BtdScratchSpaceBasePointer = value >> BTDSCRATCHSPACEBASEPOINTER_BIT_SHIFT; } - inline uint64_t getBtdScratchSpaceBasePointer(void) const { + inline uint64_t getBtdScratchSpaceBasePointer() const { return TheStructure.Common.BtdScratchSpaceBasePointer << BTDSCRATCHSPACEBASEPOINTER_BIT_SHIFT; } } _3DSTATE_BTD_BODY; @@ -5044,7 +5044,7 @@ typedef struct tag_3DSTATE_BTD { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_3DSTATE_BTD; @@ -5053,7 +5053,7 @@ typedef struct tag_3DSTATE_BTD { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.BtdStateBody.init(); } - static tag_3DSTATE_BTD sInit(void) { + static tag_3DSTATE_BTD sInit() { _3DSTATE_BTD state; state.init(); return state; @@ -5065,7 +5065,7 @@ typedef struct tag_3DSTATE_BTD { inline void setBtdStateBody(const _3DSTATE_BTD_BODY &value) { TheStructure.Common.BtdStateBody = value; } - inline _3DSTATE_BTD_BODY &getBtdStateBody(void) { + inline _3DSTATE_BTD_BODY &getBtdStateBody() { return TheStructure.Common.BtdStateBody; } } _3DSTATE_BTD; @@ -5106,11 +5106,11 @@ typedef struct tagPOSTSYNC_DATA { OPERATION_WRITE_IMMEDIATE_DATA = 0x1, OPERATION_WRITE_TIMESTAMP = 0x3, } OPERATION; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.Operation = OPERATION_NO_WRITE; } - static tagPOSTSYNC_DATA sInit(void) { + static tagPOSTSYNC_DATA sInit() { POSTSYNC_DATA state; state.init(); return state; @@ -5122,13 +5122,13 @@ typedef struct tagPOSTSYNC_DATA { inline void setOperation(const OPERATION value) { TheStructure.Common.Operation = value; } - inline OPERATION getOperation(void) const { + inline OPERATION getOperation() const { return static_cast(TheStructure.Common.Operation); } inline void setDataportPipelineFlush(const bool value) { TheStructure.Common.DataportPipelineFlush = value; } - inline bool getDataportPipelineFlush(void) const { + inline bool getDataportPipelineFlush() const { return TheStructure.Common.DataportPipelineFlush; } inline void setMocs(const uint32_t value) { // patched @@ -5136,31 +5136,31 @@ typedef struct tagPOSTSYNC_DATA { TheStructure.Common.MocsReserved_4 = value; TheStructure.Common.MocsIndexToMocsTables = value >> 1; } - inline uint32_t getMocs(void) const { // patched + inline uint32_t getMocs() const { // patched return (TheStructure.Common.MocsIndexToMocsTables << 1) | TheStructure.Common.MocsReserved_4; } inline void setSystemMemoryFenceRequest(const bool value) { TheStructure.Common.SystemMemoryFenceRequest = value; } - inline bool getSystemMemoryFenceRequest(void) const { + inline bool getSystemMemoryFenceRequest() const { return TheStructure.Common.SystemMemoryFenceRequest; } inline void setDataportSubsliceCacheFlush(const bool value) { TheStructure.Common.DataportSubsliceCacheFlush = value; } - inline bool getDataportSubsliceCacheFlush(void) const { + inline bool getDataportSubsliceCacheFlush() const { return TheStructure.Common.DataportSubsliceCacheFlush; } inline void setDestinationAddress(const uint64_t value) { TheStructure.Common.DestinationAddress = value; } - inline uint64_t getDestinationAddress(void) const { + inline uint64_t getDestinationAddress() const { return TheStructure.Common.DestinationAddress; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } } POSTSYNC_DATA; @@ -5267,7 +5267,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { PREFERRED_SLM_SIZE_IS_128K = 0x5, } PREFERRED_SLM_ALLOCATION_SIZE_PER_DSS; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.FloatingPointMode = FLOATING_POINT_MODE_IEEE_754; TheStructure.Common.SingleProgramFlow = SINGLE_PROGRAM_FLOW_MULTIPLE; @@ -5281,7 +5281,7 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { TheStructure.Common.PreferredSlmSizeOverride = PREFERRED_SLM_SIZE_OVERRIDE_IS_DISABLED; TheStructure.Common.PreferredSlmAllocationSizePerDss = PREFERRED_SLM_SIZE_IS_0K; } - static tagINTERFACE_DESCRIPTOR_DATA sInit(void) { + static tagINTERFACE_DESCRIPTOR_DATA sInit() { INTERFACE_DESCRIPTOR_DATA state; state.init(); return state; @@ -5298,61 +5298,61 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.KernelStartPointer = (uint32_t)value >> KERNELSTARTPOINTER_BIT_SHIFT; } - inline uint32_t getKernelStartPointer(void) const { + inline uint32_t getKernelStartPointer() const { return (TheStructure.Common.KernelStartPointer << KERNELSTARTPOINTER_BIT_SHIFT); } inline void setKernelStartPointerHigh(const uint32_t value) { TheStructure.Common.KernelStartPointerHigh = value; } - inline uint32_t getKernelStartPointerHigh(void) const { + inline uint32_t getKernelStartPointerHigh() const { return (TheStructure.Common.KernelStartPointerHigh); } inline void setSoftwareExceptionEnable(const uint32_t value) { TheStructure.Common.SoftwareExceptionEnable = value; } - inline uint32_t getSoftwareExceptionEnable(void) const { + inline uint32_t getSoftwareExceptionEnable() const { return (TheStructure.Common.SoftwareExceptionEnable); } inline void setMaskStackExceptionEnable(const uint32_t value) { TheStructure.Common.MaskStackExceptionEnable = value; } - inline uint32_t getMaskStackExceptionEnable(void) const { + inline uint32_t getMaskStackExceptionEnable() const { return (TheStructure.Common.MaskStackExceptionEnable); } inline void setIllegalOpcodeExceptionEnable(const uint32_t value) { TheStructure.Common.IllegalOpcodeExceptionEnable = value; } - inline uint32_t getIllegalOpcodeExceptionEnable(void) const { + inline uint32_t getIllegalOpcodeExceptionEnable() const { return (TheStructure.Common.IllegalOpcodeExceptionEnable); } inline void setFloatingPointMode(const FLOATING_POINT_MODE value) { TheStructure.Common.FloatingPointMode = value; } - inline FLOATING_POINT_MODE getFloatingPointMode(void) const { + inline FLOATING_POINT_MODE getFloatingPointMode() const { return static_cast(TheStructure.Common.FloatingPointMode); } inline void setSingleProgramFlow(const SINGLE_PROGRAM_FLOW value) { TheStructure.Common.SingleProgramFlow = value; } - inline SINGLE_PROGRAM_FLOW getSingleProgramFlow(void) const { + inline SINGLE_PROGRAM_FLOW getSingleProgramFlow() const { return static_cast(TheStructure.Common.SingleProgramFlow); } inline void setDenormMode(const DENORM_MODE value) { TheStructure.Common.DenormMode = value; } - inline DENORM_MODE getDenormMode(void) const { + inline DENORM_MODE getDenormMode() const { return static_cast(TheStructure.Common.DenormMode); } inline void setThreadPreemptionDisable(const THREAD_PREEMPTION_DISABLE value) { TheStructure.Common.ThreadPreemptionDisable = value; } - inline THREAD_PREEMPTION_DISABLE getThreadPreemptionDisable(void) const { + inline THREAD_PREEMPTION_DISABLE getThreadPreemptionDisable() const { return static_cast(TheStructure.Common.ThreadPreemptionDisable); } inline void setSamplerCount(const SAMPLER_COUNT value) { TheStructure.Common.SamplerCount = value; } - inline SAMPLER_COUNT getSamplerCount(void) const { + inline SAMPLER_COUNT getSamplerCount() const { return static_cast(TheStructure.Common.SamplerCount); } typedef enum tagSAMPLERSTATEPOINTER { @@ -5363,13 +5363,13 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.SamplerStatePointer = (uint32_t)value >> SAMPLERSTATEPOINTER_BIT_SHIFT; } - inline uint32_t getSamplerStatePointer(void) const { + inline uint32_t getSamplerStatePointer() const { return (TheStructure.Common.SamplerStatePointer << SAMPLERSTATEPOINTER_BIT_SHIFT); } inline void setBindingTableEntryCount(const uint32_t value) { TheStructure.Common.BindingTableEntryCount = value; } - inline uint32_t getBindingTableEntryCount(void) const { + inline uint32_t getBindingTableEntryCount() const { return (TheStructure.Common.BindingTableEntryCount); } typedef enum tagBINDINGTABLEPOINTER { @@ -5380,19 +5380,19 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { DEBUG_BREAK_IF(value >= 0x100000000); TheStructure.Common.BindingTablePointer = (uint32_t)value >> BINDINGTABLEPOINTER_BIT_SHIFT; } - inline uint32_t getBindingTablePointer(void) const { + inline uint32_t getBindingTablePointer() const { return (TheStructure.Common.BindingTablePointer << BINDINGTABLEPOINTER_BIT_SHIFT); } inline void setNumberOfThreadsInGpgpuThreadGroup(const uint32_t value) { TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup = value; } - inline uint32_t getNumberOfThreadsInGpgpuThreadGroup(void) const { + inline uint32_t getNumberOfThreadsInGpgpuThreadGroup() const { return (TheStructure.Common.NumberOfThreadsInGpgpuThreadGroup); } inline void setSharedLocalMemorySize(const SHARED_LOCAL_MEMORY_SIZE value) { TheStructure.Common.SharedLocalMemorySize = value; } - inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize(void) const { + inline SHARED_LOCAL_MEMORY_SIZE getSharedLocalMemorySize() const { return static_cast(TheStructure.Common.SharedLocalMemorySize); } inline void setBarrierEnable(const uint32_t value) { @@ -5401,34 +5401,34 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA { inline void setNumberOfBarriers(const uint32_t value) { TheStructure.Common.NumberOfBarriers = value; } - inline bool getBarrierEnable(void) const { + inline bool getBarrierEnable() const { return (TheStructure.Common.BarrierEnable); } - inline uint32_t getNumberOfBarriers(void) const { + inline uint32_t getNumberOfBarriers() const { return TheStructure.Common.NumberOfBarriers; } inline void setRoundingMode(const ROUNDING_MODE value) { TheStructure.Common.RoundingMode = value; } - inline ROUNDING_MODE getRoundingMode(void) const { + inline ROUNDING_MODE getRoundingMode() const { return static_cast(TheStructure.Common.RoundingMode); } inline void setThreadGroupDispatchSize(const uint32_t value) { TheStructure.Common.ThreadGroupDispatchSize = value; } - inline uint32_t getThreadGroupDispatchSize(void) const { + inline uint32_t getThreadGroupDispatchSize() const { return (TheStructure.Common.ThreadGroupDispatchSize); } inline void setPreferredSlmSizeOverride(const PREFERRED_SLM_SIZE_OVERRIDE value) { TheStructure.Common.PreferredSlmSizeOverride = value; } - inline PREFERRED_SLM_SIZE_OVERRIDE getPreferredSlmSizeOverride(void) const { + inline PREFERRED_SLM_SIZE_OVERRIDE getPreferredSlmSizeOverride() const { return static_cast(TheStructure.Common.PreferredSlmSizeOverride); } inline void setPreferredSlmAllocationSizePerDss(const PREFERRED_SLM_ALLOCATION_SIZE_PER_DSS value) { TheStructure.Common.PreferredSlmAllocationSizePerDss = value; } - inline PREFERRED_SLM_ALLOCATION_SIZE_PER_DSS getPreferredSlmAllocationSizePerDss(void) const { + inline PREFERRED_SLM_ALLOCATION_SIZE_PER_DSS getPreferredSlmAllocationSizePerDss() const { return static_cast(TheStructure.Common.PreferredSlmAllocationSizePerDss); } } INTERFACE_DESCRIPTOR_DATA; @@ -5548,7 +5548,7 @@ typedef struct tagCOMPUTE_WALKER { PARTITION_ID_SUPPORTED_MIN = 0x0, PARTITION_ID_SUPPORTED_MAX = 0xf, } PARTITION_ID; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_FIXED_SIZE; TheStructure.Common.CfeSubopcodeVariant = CFE_SUBOPCODE_VARIANT_STANDARD; @@ -5561,7 +5561,7 @@ typedef struct tagCOMPUTE_WALKER { TheStructure.Common.InterfaceDescriptor.init(); TheStructure.Common.PostSync.init(); } - static tagCOMPUTE_WALKER sInit(void) { + static tagCOMPUTE_WALKER sInit() { COMPUTE_WALKER state; state.init(); return state; @@ -5573,86 +5573,86 @@ typedef struct tagCOMPUTE_WALKER { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return TheStructure.Common.PredicateEnable; } inline void setWorkloadPartitionEnable(const bool value) { TheStructure.Common.WorkloadPartitionEnable = value; } - inline bool getWorkloadPartitionEnable(void) const { + inline bool getWorkloadPartitionEnable() const { return TheStructure.Common.WorkloadPartitionEnable; } inline void setIndirectParameterEnable(const bool value) { TheStructure.Common.IndirectParameterEnable = value; } - inline bool getIndirectParameterEnable(void) const { + inline bool getIndirectParameterEnable() const { return TheStructure.Common.IndirectParameterEnable; } inline void setUavWaitToProduce(const bool value) { TheStructure.Common.UavWaitToProduce = value; } - inline bool getUavWaitToProduce(void) const { + inline bool getUavWaitToProduce() const { return TheStructure.Common.UavWaitToProduce; } inline void setUavProducer(const bool value) { TheStructure.Common.UavProducer = value; } - inline bool getUavProducer(void) const { + inline bool getUavProducer() const { return TheStructure.Common.UavProducer; } inline void setUavConsumer(const bool value) { TheStructure.Common.UavConsumer = value; } - inline bool getUavConsumer(void) const { + inline bool getUavConsumer() const { return TheStructure.Common.UavConsumer; } inline void setSystolicModeEnable(const bool value) { TheStructure.Common.SystolicModeEnable = value; } - inline bool getSystolicModeEnable(void) const { + inline bool getSystolicModeEnable() const { return TheStructure.Common.SystolicModeEnable; } inline void setCfeSubopcodeVariant(const CFE_SUBOPCODE_VARIANT value) { TheStructure.Common.CfeSubopcodeVariant = value; } - inline CFE_SUBOPCODE_VARIANT getCfeSubopcodeVariant(void) const { + inline CFE_SUBOPCODE_VARIANT getCfeSubopcodeVariant() const { return static_cast(TheStructure.Common.CfeSubopcodeVariant); } inline void setCfeSubopcode(const CFE_SUBOPCODE value) { TheStructure.Common.CfeSubopcode = value; } - inline CFE_SUBOPCODE getCfeSubopcode(void) const { + inline CFE_SUBOPCODE getCfeSubopcode() const { return static_cast(TheStructure.Common.CfeSubopcode); } inline void setComputeCommandOpcode(const COMPUTE_COMMAND_OPCODE value) { TheStructure.Common.ComputeCommandOpcode = value; } - inline COMPUTE_COMMAND_OPCODE getComputeCommandOpcode(void) const { + inline COMPUTE_COMMAND_OPCODE getComputeCommandOpcode() const { return static_cast(TheStructure.Common.ComputeCommandOpcode); } inline void setIndirectDataLength(const uint32_t value) { UNRECOVERABLE_IF(value > 0x1ffff); TheStructure.Common.IndirectDataLength = value; } - inline uint32_t getIndirectDataLength(void) const { + inline uint32_t getIndirectDataLength() const { return TheStructure.Common.IndirectDataLength; } inline void setL3PrefetchDisable(const bool value) { TheStructure.Common.L3PrefetchDisable = value; } - inline bool getL3PrefetchDisable(void) const { + inline bool getL3PrefetchDisable() const { return TheStructure.Common.L3PrefetchDisable; } inline void setPartitionType(const PARTITION_TYPE value) { TheStructure.Common.PartitionType = value; } - inline PARTITION_TYPE getPartitionType(void) const { + inline PARTITION_TYPE getPartitionType() const { return static_cast(TheStructure.Common.PartitionType); } typedef enum tagINDIRECTDATASTARTADDRESS { @@ -5663,151 +5663,151 @@ typedef struct tagCOMPUTE_WALKER { UNRECOVERABLE_IF(value > 0xffffffc0); TheStructure.Common.IndirectDataStartAddress = value >> INDIRECTDATASTARTADDRESS_BIT_SHIFT; } - inline uint32_t getIndirectDataStartAddress(void) const { + inline uint32_t getIndirectDataStartAddress() const { return TheStructure.Common.IndirectDataStartAddress << INDIRECTDATASTARTADDRESS_BIT_SHIFT; } inline void setMessageSimd(const uint32_t value) { TheStructure.Common.MessageSimd = value; } - inline uint32_t getMessageSimd(void) const { + inline uint32_t getMessageSimd() const { return (TheStructure.Common.MessageSimd); } inline void setTileLayout(const uint32_t value) { TheStructure.Common.TileLayout = value; } - inline uint32_t getTileLayout(void) const { + inline uint32_t getTileLayout() const { return (TheStructure.Common.TileLayout); } inline void setWalkOrder(const uint32_t value) { TheStructure.Common.WalkOrder = value; } - inline uint32_t getWalkOrder(void) const { + inline uint32_t getWalkOrder() const { return (TheStructure.Common.WalkOrder); } inline void setEmitInlineParameter(const uint32_t value) { TheStructure.Common.EmitInlineParameter = value; } - inline uint32_t getEmitInlineParameter(void) const { + inline uint32_t getEmitInlineParameter() const { return (TheStructure.Common.EmitInlineParameter); } inline void setEmitLocalId(const uint32_t value) { TheStructure.Common.EmitLocalId = value; } - inline uint32_t getEmitLocalId(void) const { + inline uint32_t getEmitLocalId() const { return (TheStructure.Common.EmitLocalId); } inline void setGenerateLocalId(const uint32_t value) { TheStructure.Common.GenerateLocalId = value; } - inline uint32_t getGenerateLocalId(void) const { + inline uint32_t getGenerateLocalId() const { return (TheStructure.Common.GenerateLocalId); } inline void setSimdSize(const SIMD_SIZE value) { TheStructure.Common.SimdSize = value; } - inline SIMD_SIZE getSimdSize(void) const { + inline SIMD_SIZE getSimdSize() const { return static_cast(TheStructure.Common.SimdSize); } inline void setExecutionMask(const uint32_t value) { TheStructure.Common.ExecutionMask = value; } - inline uint32_t getExecutionMask(void) const { + inline uint32_t getExecutionMask() const { return TheStructure.Common.ExecutionMask; } inline void setLocalXMaximum(const uint32_t value) { TheStructure.Common.LocalXMaximum = value; } - inline uint32_t getLocalXMaximum(void) const { + inline uint32_t getLocalXMaximum() const { return (TheStructure.Common.LocalXMaximum); } inline void setLocalYMaximum(const uint32_t value) { TheStructure.Common.LocalYMaximum = value; } - inline uint32_t getLocalYMaximum(void) const { + inline uint32_t getLocalYMaximum() const { return (TheStructure.Common.LocalYMaximum); } inline void setLocalZMaximum(const uint32_t value) { TheStructure.Common.LocalZMaximum = value; } - inline uint32_t getLocalZMaximum(void) const { + inline uint32_t getLocalZMaximum() const { return (TheStructure.Common.LocalZMaximum); } inline void setThreadGroupIdXDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdXDimension = value; } - inline uint32_t getThreadGroupIdXDimension(void) const { + inline uint32_t getThreadGroupIdXDimension() const { return TheStructure.Common.ThreadGroupIdXDimension; } inline void setThreadGroupIdYDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdYDimension = value; } - inline uint32_t getThreadGroupIdYDimension(void) const { + inline uint32_t getThreadGroupIdYDimension() const { return TheStructure.Common.ThreadGroupIdYDimension; } inline void setThreadGroupIdZDimension(const uint32_t value) { TheStructure.Common.ThreadGroupIdZDimension = value; } - inline uint32_t getThreadGroupIdZDimension(void) const { + inline uint32_t getThreadGroupIdZDimension() const { return TheStructure.Common.ThreadGroupIdZDimension; } inline void setThreadGroupIdStartingX(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingX = value; } - inline uint32_t getThreadGroupIdStartingX(void) const { + inline uint32_t getThreadGroupIdStartingX() const { return TheStructure.Common.ThreadGroupIdStartingX; } inline void setThreadGroupIdStartingY(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingY = value; } - inline uint32_t getThreadGroupIdStartingY(void) const { + inline uint32_t getThreadGroupIdStartingY() const { return TheStructure.Common.ThreadGroupIdStartingY; } inline void setThreadGroupIdStartingZ(const uint32_t value) { TheStructure.Common.ThreadGroupIdStartingZ = value; } - inline uint32_t getThreadGroupIdStartingZ(void) const { + inline uint32_t getThreadGroupIdStartingZ() const { return TheStructure.Common.ThreadGroupIdStartingZ; } inline void setPartitionId(const uint64_t value) { TheStructure.Common.PartitionId = value; } - inline uint64_t getPartitionId(void) const { + inline uint64_t getPartitionId() const { return TheStructure.Common.PartitionId; } inline void setPartitionSize(const uint64_t value) { TheStructure.Common.PartitionSize = value; } - inline uint64_t getPartitionSize(void) const { + inline uint64_t getPartitionSize() const { return TheStructure.Common.PartitionSize; } inline void setPreemptX(const uint32_t value) { TheStructure.Common.PreemptX = value; } - inline uint32_t getPreemptX(void) const { + inline uint32_t getPreemptX() const { return TheStructure.Common.PreemptX; } inline void setPreemptY(const uint32_t value) { TheStructure.Common.PreemptY = value; } - inline uint32_t getPreemptY(void) const { + inline uint32_t getPreemptY() const { return TheStructure.Common.PreemptY; } inline void setPreemptZ(const uint32_t value) { TheStructure.Common.PreemptZ = value; } - inline uint32_t getPreemptZ(void) const { + inline uint32_t getPreemptZ() const { return TheStructure.Common.PreemptZ; } inline void setInterfaceDescriptor(const INTERFACE_DESCRIPTOR_DATA &value) { TheStructure.Common.InterfaceDescriptor = value; } - inline INTERFACE_DESCRIPTOR_DATA &getInterfaceDescriptor(void) { + inline INTERFACE_DESCRIPTOR_DATA &getInterfaceDescriptor() { return TheStructure.Common.InterfaceDescriptor; } inline void setPostSync(const POSTSYNC_DATA &value) { TheStructure.Common.PostSync = value; } - inline POSTSYNC_DATA &getPostSync(void) { + inline POSTSYNC_DATA &getPostSync() { return TheStructure.Common.PostSync; } inline uint32_t *getInlineDataPointer() { @@ -5877,7 +5877,7 @@ typedef struct tagCFE_STATE { OVER_DISPATCH_CONTROL_NORMAL = 0x2, OVER_DISPATCH_CONTROL_HIGH = 0x3, } OVER_DISPATCH_CONTROL; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common.CfeSubopcodeVariant = CFE_SUBOPCODE_VARIANT_STANDARD; @@ -5887,7 +5887,7 @@ typedef struct tagCFE_STATE { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.OverDispatchControl = OVER_DISPATCH_CONTROL_NORMAL; } - static tagCFE_STATE sInit(void) { + static tagCFE_STATE sInit() { CFE_STATE state; state.init(); return state; @@ -5899,19 +5899,19 @@ typedef struct tagCFE_STATE { inline void setCfeSubopcodeVariant(const CFE_SUBOPCODE_VARIANT value) { TheStructure.Common.CfeSubopcodeVariant = value; } - inline CFE_SUBOPCODE_VARIANT getCfeSubopcodeVariant(void) const { + inline CFE_SUBOPCODE_VARIANT getCfeSubopcodeVariant() const { return static_cast(TheStructure.Common.CfeSubopcodeVariant); } inline void setCfeSubopcode(const CFE_SUBOPCODE value) { TheStructure.Common.CfeSubopcode = value; } - inline CFE_SUBOPCODE getCfeSubopcode(void) const { + inline CFE_SUBOPCODE getCfeSubopcode() const { return static_cast(TheStructure.Common.CfeSubopcode); } inline void setComputeCommandOpcode(const COMPUTE_COMMAND_OPCODE value) { TheStructure.Common.ComputeCommandOpcode = value; } - inline COMPUTE_COMMAND_OPCODE getComputeCommandOpcode(void) const { + inline COMPUTE_COMMAND_OPCODE getComputeCommandOpcode() const { return static_cast(TheStructure.Common.ComputeCommandOpcode); } typedef enum tagSCRATCHSPACEBUFFER { @@ -5922,20 +5922,20 @@ typedef struct tagCFE_STATE { UNRECOVERABLE_IF(value > 0xfffffc00L); TheStructure.Common.ScratchSpaceBuffer = static_cast(value) >> SCRATCHSPACEBUFFER_BIT_SHIFT; } - inline uint64_t getScratchSpaceBuffer(void) const { + inline uint64_t getScratchSpaceBuffer() const { return TheStructure.Common.ScratchSpaceBuffer << SCRATCHSPACEBUFFER_BIT_SHIFT; } inline void setNumberOfWalkers(const uint32_t value) { UNRECOVERABLE_IF(value > 0x38); TheStructure.Common.NumberOfWalkers = value - 1; } - inline uint32_t getNumberOfWalkers(void) const { + inline uint32_t getNumberOfWalkers() const { return TheStructure.Common.NumberOfWalkers + 1; } inline void setFusedEuDispatch(const bool value) { TheStructure.Common.FusedEuDispatch = value; } - inline bool getFusedEuDispatch(void) const { + inline bool getFusedEuDispatch() const { return TheStructure.Common.FusedEuDispatch; } inline void setLargeGRFThreadAdjustDisable(const bool value) { @@ -5953,20 +5953,20 @@ typedef struct tagCFE_STATE { inline void setSingleSliceDispatchCcsMode(const bool value) { TheStructure.Common.SingleSliceDispatchCcsMode = value; } - inline bool getSingleSliceDispatchCcsMode(void) const { + inline bool getSingleSliceDispatchCcsMode() const { return TheStructure.Common.SingleSliceDispatchCcsMode; } inline void setOverDispatchControl(const OVER_DISPATCH_CONTROL value) { TheStructure.Common.OverDispatchControl = value; } - inline OVER_DISPATCH_CONTROL getOverDispatchControl(void) const { + inline OVER_DISPATCH_CONTROL getOverDispatchControl() const { return static_cast(TheStructure.Common.OverDispatchControl); } inline void setMaximumNumberOfThreads(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff0000); TheStructure.Common.MaximumNumberOfThreads = value; } - inline uint32_t getMaximumNumberOfThreads(void) const { + inline uint32_t getMaximumNumberOfThreads() const { return TheStructure.Common.MaximumNumberOfThreads; } } CFE_STATE; @@ -5990,12 +5990,12 @@ typedef struct tagMI_ARB_CHECK { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_ARB_CHECK; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_ARB_CHECK sInit(void) { + static tagMI_ARB_CHECK sInit() { MI_ARB_CHECK state; state.init(); return state; @@ -6008,14 +6008,14 @@ typedef struct tagMI_ARB_CHECK { TheStructure.Common.Pre_FetchDisable = value; TheStructure.Common.MaskBits = 1 << 0; //PreFetchDisable is at bit0, so set bit0 of mask to 1 } - inline uint32_t getPreFetchDisable(void) const { + inline uint32_t getPreFetchDisable() const { return TheStructure.Common.Pre_FetchDisable; } inline void setMaskBits(const uint32_t value) { DEBUG_BREAK_IF(value > 0xff00); TheStructure.Common.MaskBits = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return TheStructure.Common.MaskBits; } } MI_ARB_CHECK; @@ -6079,7 +6079,7 @@ typedef struct tagMI_BATCH_BUFFER_START { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.AddressSpaceIndicator = ADDRESS_SPACE_INDICATOR_PPGTT; @@ -6088,7 +6088,7 @@ typedef struct tagMI_BATCH_BUFFER_START { TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; TheStructure.Mi_Mode_Nestedbatchbufferenableis1.NestedLevelBatchBuffer = NESTED_LEVEL_BATCH_BUFFER_CHAIN; } - static tagMI_BATCH_BUFFER_START sInit(void) { + static tagMI_BATCH_BUFFER_START sInit() { MI_BATCH_BUFFER_START state; state.init(); return state; @@ -6100,49 +6100,49 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setAddressSpaceIndicator(const ADDRESS_SPACE_INDICATOR value) { TheStructure.Common.AddressSpaceIndicator = value; } - inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator(void) const { + inline ADDRESS_SPACE_INDICATOR getAddressSpaceIndicator() const { return static_cast(TheStructure.Common.AddressSpaceIndicator); } inline void setResourceStreamerEnable(const bool value) { TheStructure.Common.ResourceStreamerEnable = value; } - inline bool getResourceStreamerEnable(void) const { + inline bool getResourceStreamerEnable() const { return TheStructure.Common.ResourceStreamerEnable; } inline void setPredicationEnable(const uint32_t value) { TheStructure.Common.PredicationEnable = value; } - inline uint32_t getPredicationEnable(void) const { + inline uint32_t getPredicationEnable() const { return TheStructure.Common.PredicationEnable; } inline void setAddOffsetEnable(const bool value) { TheStructure.Common.AddOffsetEnable = value; } - inline bool getAddOffsetEnable(void) const { + inline bool getAddOffsetEnable() const { return TheStructure.Common.AddOffsetEnable; } inline void setEnableCommandCache(const uint32_t value) { TheStructure.Common.EnableCommandCache = value; } - inline uint32_t getEnableCommandCache(void) const { + inline uint32_t getEnableCommandCache() const { return TheStructure.Common.EnableCommandCache; } inline void setPoshEnable(const uint32_t value) { TheStructure.Common.PoshEnable = value; } - inline uint32_t getPoshEnable(void) const { + inline uint32_t getPoshEnable() const { return TheStructure.Common.PoshEnable; } inline void setPoshStart(const uint32_t value) { TheStructure.Common.PoshStart = value; } - inline uint32_t getPoshStart(void) const { + inline uint32_t getPoshStart() const { return TheStructure.Common.PoshStart; } inline void setSecondLevelBatchBuffer(const SECOND_LEVEL_BATCH_BUFFER value) { TheStructure.Common.SecondLevelBatchBuffer = value; } - inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer(void) const { + inline SECOND_LEVEL_BATCH_BUFFER getSecondLevelBatchBuffer() const { return static_cast(TheStructure.Common.SecondLevelBatchBuffer); } typedef enum tagBATCHBUFFERSTARTADDRESS { @@ -6155,16 +6155,16 @@ typedef struct tagMI_BATCH_BUFFER_START { inline void setBatchBufferStartAddressGraphicsaddress472(const uint64_t value) { TheStructure.Common.BatchBufferStartAddress = value >> BATCHBUFFERSTARTADDRESS_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddress(void) const { + inline uint64_t getBatchBufferStartAddress() const { return TheStructure.Common.BatchBufferStartAddress << BATCHBUFFERSTARTADDRESS_BIT_SHIFT; } - inline uint64_t getBatchBufferStartAddressGraphicsaddress472(void) const { + 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; } - inline NESTED_LEVEL_BATCH_BUFFER getNestedLevelBatchBuffer(void) const { + inline NESTED_LEVEL_BATCH_BUFFER getNestedLevelBatchBuffer() const { return static_cast(TheStructure.Mi_Mode_Nestedbatchbufferenableis1.NestedLevelBatchBuffer); } } MI_BATCH_BUFFER_START; @@ -6204,14 +6204,14 @@ typedef struct tagMI_LOAD_REGISTER_MEM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_MEM sInit(void) { + static tagMI_LOAD_REGISTER_MEM sInit() { MI_LOAD_REGISTER_MEM state; state.init(); return state; @@ -6225,43 +6225,43 @@ typedef struct tagMI_LOAD_REGISTER_MEM { DEBUG_BREAK_IF(value > 0x7e00); TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); } inline void setMemoryObjectControlStateEnable(const bool value) { TheStructure.Common.MemoryObjectControlStateEnable = value; } - inline bool getMemoryObjectControlStateEnable(void) const { + inline bool getMemoryObjectControlStateEnable() const { return TheStructure.Common.MemoryObjectControlStateEnable; } inline void setVirtualEngineIdOffsetEnable(const bool value) { TheStructure.Common.VirtualEngineIdOffsetEnable = value; } - inline bool getVirtualEngineIdOffsetEnable(void) const { + inline bool getVirtualEngineIdOffsetEnable() const { return TheStructure.Common.VirtualEngineIdOffsetEnable; } inline void setMmioRemapEnable(const bool value) { TheStructure.Common.MmioRemapEnable = value; } - inline bool getMmioRemapEnable(void) const { + inline bool getMmioRemapEnable() const { return TheStructure.Common.MmioRemapEnable; } inline void setAddCsMmioStartOffset(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline uint32_t getAddCsMmioStartOffset(void) const { + inline uint32_t getAddCsMmioStartOffset() const { return TheStructure.Common.AddCsMmioStartOffset; } inline void setAsyncModeEnable(const bool value) { TheStructure.Common.AsyncModeEnable = value; } - inline bool getAsyncModeEnable(void) const { + inline bool getAsyncModeEnable() const { return TheStructure.Common.AsyncModeEnable; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } typedef enum tagREGISTERADDRESS { @@ -6272,7 +6272,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { DEBUG_BREAK_IF(value > 0x7ffffc); TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT; } typedef enum tagMEMORYADDRESS { @@ -6283,7 +6283,7 @@ typedef struct tagMI_LOAD_REGISTER_MEM { DEBUG_BREAK_IF(value > 0xfffffffffffffffcL); TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT; } } MI_LOAD_REGISTER_MEM; @@ -6319,13 +6319,13 @@ typedef struct tagMI_LOAD_REGISTER_REG { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_LOAD_REGISTER_REG; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_LOAD_REGISTER_REG sInit(void) { + static tagMI_LOAD_REGISTER_REG sInit() { MI_LOAD_REGISTER_REG state; state.init(); return state; @@ -6337,25 +6337,25 @@ typedef struct tagMI_LOAD_REGISTER_REG { inline void setMmioRemapEnableSource(const bool value) { TheStructure.Common.MmioRemapEnableSource = value; } - inline bool getMmioRemapEnableSource(void) const { + inline bool getMmioRemapEnableSource() const { return TheStructure.Common.MmioRemapEnableSource; } inline void setMmioRemapEnableDestination(const bool value) { TheStructure.Common.MmioRemapEnableDestination = value; } - inline bool getMmioRemapEnableDestination(void) const { + inline bool getMmioRemapEnableDestination() const { return TheStructure.Common.MmioRemapEnableDestination; } inline void setAddCsMmioStartOffsetSource(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffsetSource = value; } - inline uint32_t getAddCsMmioStartOffsetSource(void) const { + inline uint32_t getAddCsMmioStartOffsetSource() const { return TheStructure.Common.AddCsMmioStartOffsetSource; } inline void setAddCsMmioStartOffsetDestination(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffsetDestination = value; } - inline uint32_t getAddCsMmioStartOffsetDestination(void) const { + inline uint32_t getAddCsMmioStartOffsetDestination() const { return TheStructure.Common.AddCsMmioStartOffsetDestination; } typedef enum tagSOURCEREGISTERADDRESS { @@ -6366,7 +6366,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { DEBUG_BREAK_IF(value > 0x7ffffc); TheStructure.Common.SourceRegisterAddress = value >> SOURCEREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getSourceRegisterAddress(void) const { + inline uint32_t getSourceRegisterAddress() const { return TheStructure.Common.SourceRegisterAddress << SOURCEREGISTERADDRESS_BIT_SHIFT; } typedef enum tagDESTINATIONREGISTERADDRESS { @@ -6377,7 +6377,7 @@ typedef struct tagMI_LOAD_REGISTER_REG { DEBUG_BREAK_IF(value > 0x7ffffc); TheStructure.Common.DestinationRegisterAddress = value >> DESTINATIONREGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getDestinationRegisterAddress(void) const { + inline uint32_t getDestinationRegisterAddress() const { return TheStructure.Common.DestinationRegisterAddress << DESTINATIONREGISTERADDRESS_BIT_SHIFT; } } MI_LOAD_REGISTER_REG; @@ -6435,7 +6435,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.CompareOperation = @@ -6446,7 +6446,7 @@ typedef struct tagMI_SEMAPHORE_WAIT { TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_SEMAPHORE_WAIT; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_SEMAPHORE_WAIT sInit(void) { + static tagMI_SEMAPHORE_WAIT sInit() { MI_SEMAPHORE_WAIT state; state.init(); return state; @@ -6458,38 +6458,38 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setCompareOperation(const COMPARE_OPERATION value) { TheStructure.Common.CompareOperation = value; } - inline COMPARE_OPERATION getCompareOperation(void) const { + inline COMPARE_OPERATION getCompareOperation() const { return static_cast(TheStructure.Common.CompareOperation); } inline void setWaitMode(const WAIT_MODE value) { TheStructure.Common.WaitMode = value; } - inline WAIT_MODE getWaitMode(void) const { + inline WAIT_MODE getWaitMode() const { return static_cast(TheStructure.Common.WaitMode); } inline void setRegisterPollMode(const REGISTER_POLL_MODE value) { TheStructure.Common.RegisterPollMode = value; } - inline REGISTER_POLL_MODE getRegisterPollMode(void) const { + inline REGISTER_POLL_MODE getRegisterPollMode() const { return static_cast( TheStructure.Common.RegisterPollMode); } inline void setWorkloadPartitionIdOffsetEnable(const bool value) { TheStructure.Common.WorkloadPartitionIdOffsetEnable = value; } - inline bool getWorkloadPartitionIdOffsetEnable(void) const { + inline bool getWorkloadPartitionIdOffsetEnable() const { return TheStructure.Common.WorkloadPartitionIdOffsetEnable; } inline void setMemoryType(const MEMORY_TYPE value) { TheStructure.Common.MemoryType = value; } - inline MEMORY_TYPE getMemoryType(void) const { + inline MEMORY_TYPE getMemoryType() const { return static_cast(TheStructure.Common.MemoryType); } inline void setSemaphoreDataDword(const uint32_t value) { TheStructure.Common.SemaphoreDataDword = value; } - inline uint32_t getSemaphoreDataDword(void) const { + inline uint32_t getSemaphoreDataDword() const { return TheStructure.Common.SemaphoreDataDword; } typedef enum tagSEMAPHOREADDRESS { @@ -6499,14 +6499,14 @@ typedef struct tagMI_SEMAPHORE_WAIT { inline void setSemaphoreGraphicsAddress(const uint64_t value) { TheStructure.Common.SemaphoreAddress = value >> SEMAPHOREADDRESS_BIT_SHIFT; } - inline uint64_t getSemaphoreGraphicsAddress(void) const { + inline uint64_t getSemaphoreGraphicsAddress() const { return TheStructure.Common.SemaphoreAddress << SEMAPHOREADDRESS_BIT_SHIFT; } inline void setWaitTokenNumber(const uint32_t value) { DEBUG_BREAK_IF(value > 0x3e0); TheStructure.Common.WaitTokenNumber = value; } - inline uint32_t getWaitTokenNumber(void) const { + inline uint32_t getWaitTokenNumber() const { return TheStructure.Common.WaitTokenNumber; } } MI_SEMAPHORE_WAIT; @@ -6545,13 +6545,13 @@ typedef struct tagMI_STORE_DATA_IMM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_STORE_DWORD; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_DATA_IMM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_DATA_IMM sInit(void) { + static tagMI_STORE_DATA_IMM sInit() { MI_STORE_DATA_IMM state; state.init(); return state; @@ -6563,13 +6563,13 @@ typedef struct tagMI_STORE_DATA_IMM { inline void setDwordLength(const DWORD_LENGTH value) { TheStructure.Common.DwordLength = value; } - inline DWORD_LENGTH getDwordLength(void) const { + inline DWORD_LENGTH getDwordLength() const { return static_cast(TheStructure.Common.DwordLength); } inline void setWorkloadPartitionIdOffsetEnable(const bool value) { TheStructure.Common.WorkloadPartitionIdOffsetEnable = value; } - inline bool getWorkloadPartitionIdOffsetEnable(void) const { + inline bool getWorkloadPartitionIdOffsetEnable() const { return TheStructure.Common.WorkloadPartitionIdOffsetEnable; } inline void @@ -6577,31 +6577,31 @@ typedef struct tagMI_STORE_DATA_IMM { DEBUG_BREAK_IF(value > 0xfc000); TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); } inline void setMemoryObjectControlStateEnable(const bool value) { TheStructure.Common.MemoryObjectControlStateEnable = value; } - inline bool getMemoryObjectControlStateEnable(void) const { + inline bool getMemoryObjectControlStateEnable() const { return TheStructure.Common.MemoryObjectControlStateEnable; } inline void setStoreQword(const bool value) { TheStructure.Common.StoreQword = value; } - inline bool getStoreQword(void) const { + inline bool getStoreQword() const { return TheStructure.Common.StoreQword; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } inline void setCoreModeEnable(const uint64_t value) { TheStructure.Common.CoreModeEnable = value; } - inline uint64_t getCoreModeEnable(void) const { + inline uint64_t getCoreModeEnable() const { return TheStructure.Common.CoreModeEnable; } typedef enum tagADDRESS { @@ -6612,19 +6612,19 @@ typedef struct tagMI_STORE_DATA_IMM { DEBUG_BREAK_IF(value > 0xfffffffffffcL); TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint64_t getAddress(void) const { + inline uint64_t getAddress() const { return TheStructure.Common.Address << ADDRESS_BIT_SHIFT; } inline void setDataDword0(const uint32_t value) { TheStructure.Common.DataDword0 = value; } - inline uint32_t getDataDword0(void) const { + inline uint32_t getDataDword0() const { return TheStructure.Common.DataDword0; } inline void setDataDword1(const uint32_t value) { TheStructure.Common.DataDword1 = value; } - inline uint32_t getDataDword1(void) const { + inline uint32_t getDataDword1() const { return TheStructure.Common.DataDword1; } } MI_STORE_DATA_IMM; @@ -6664,14 +6664,14 @@ typedef struct tagMI_STORE_REGISTER_MEM { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_MI_COMMAND = 0x0, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common.MiCommandOpcode = MI_COMMAND_OPCODE_MI_STORE_REGISTER_MEM; TheStructure.Common.CommandType = COMMAND_TYPE_MI_COMMAND; } - static tagMI_STORE_REGISTER_MEM sInit(void) { + static tagMI_STORE_REGISTER_MEM sInit() { MI_STORE_REGISTER_MEM state; state.init(); return state; @@ -6685,43 +6685,43 @@ typedef struct tagMI_STORE_REGISTER_MEM { DEBUG_BREAK_IF(value > 0x7e00); TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value >> 1; } - inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const { + inline uint32_t getMemoryObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1); } inline void setMemoryObjectControlStateEnable(const bool value) { TheStructure.Common.MemoryObjectControlStateEnable = value; } - inline bool getMemoryObjectControlStateEnable(void) const { + inline bool getMemoryObjectControlStateEnable() const { return TheStructure.Common.MemoryObjectControlStateEnable; } inline void setWorkloadPartitionIdOffsetEnable(const bool value) { TheStructure.Common.WorkloadPartitionIdOffsetEnable = value; } - inline bool getWorkloadPartitionIdOffsetEnable(void) const { + inline bool getWorkloadPartitionIdOffsetEnable() const { return TheStructure.Common.WorkloadPartitionIdOffsetEnable; } inline void setMmioRemapEnable(const bool value) { TheStructure.Common.MmioRemapEnable = value; } - inline bool getMmioRemapEnable(void) const { + inline bool getMmioRemapEnable() const { return TheStructure.Common.MmioRemapEnable; } inline void setAddCsMmioStartOffset(const uint32_t value) { TheStructure.Common.AddCsMmioStartOffset = value; } - inline uint32_t getAddCsMmioStartOffset(void) const { + inline uint32_t getAddCsMmioStartOffset() const { return TheStructure.Common.AddCsMmioStartOffset; } inline void setPredicateEnable(const bool value) { TheStructure.Common.PredicateEnable = value; } - inline bool getPredicateEnable(void) const { + inline bool getPredicateEnable() const { return TheStructure.Common.PredicateEnable; } inline void setUseGlobalGtt(const bool value) { TheStructure.Common.UseGlobalGtt = value; } - inline bool getUseGlobalGtt(void) const { + inline bool getUseGlobalGtt() const { return TheStructure.Common.UseGlobalGtt; } typedef enum tagREGISTERADDRESS { @@ -6732,7 +6732,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { DEBUG_BREAK_IF(value > 0x7ffffc); TheStructure.Common.RegisterAddress = value >> REGISTERADDRESS_BIT_SHIFT; } - inline uint32_t getRegisterAddress(void) const { + inline uint32_t getRegisterAddress() const { return TheStructure.Common.RegisterAddress << REGISTERADDRESS_BIT_SHIFT; } typedef enum tagMEMORYADDRESS { @@ -6743,7 +6743,7 @@ typedef struct tagMI_STORE_REGISTER_MEM { DEBUG_BREAK_IF(value > 0xfffffffffffffffcL); TheStructure.Common.MemoryAddress = value >> MEMORYADDRESS_BIT_SHIFT; } - inline uint64_t getMemoryAddress(void) const { + inline uint64_t getMemoryAddress() const { return TheStructure.Common.MemoryAddress << MEMORYADDRESS_BIT_SHIFT; } } MI_STORE_REGISTER_MEM; @@ -6784,7 +6784,7 @@ typedef struct tagPIPELINE_SELECT { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.PipelineSelection = PIPELINE_SELECTION_3D; TheStructure.Common._3DCommandSubOpcode = @@ -6794,7 +6794,7 @@ typedef struct tagPIPELINE_SELECT { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_SINGLE_DW; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagPIPELINE_SELECT sInit(void) { + static tagPIPELINE_SELECT sInit() { PIPELINE_SELECT state; state.init(); return state; @@ -6806,45 +6806,45 @@ typedef struct tagPIPELINE_SELECT { inline void setPipelineSelection(const PIPELINE_SELECTION value) { TheStructure.Common.PipelineSelection = value; } - inline PIPELINE_SELECTION getPipelineSelection(void) const { + inline PIPELINE_SELECTION getPipelineSelection() const { return static_cast( TheStructure.Common.PipelineSelection); } inline void setRenderSliceCommonPowerGateEnable(const bool value) { TheStructure.Common.RenderSliceCommonPowerGateEnable = value; } - inline bool getRenderSliceCommonPowerGateEnable(void) const { + inline bool getRenderSliceCommonPowerGateEnable() const { return TheStructure.Common.RenderSliceCommonPowerGateEnable; } inline void setRenderSamplerPowerGateEnable(const bool value) { TheStructure.Common.RenderSamplerPowerGateEnable = value; } - inline bool getRenderSamplerPowerGateEnable(void) const { + inline bool getRenderSamplerPowerGateEnable() const { return TheStructure.Common.RenderSamplerPowerGateEnable; } inline void setMediaSamplerDopClockGateEnable(const bool value) { TheStructure.Common.MediaSamplerDopClockGateEnable = value; } - inline bool getMediaSamplerDopClockGateEnable(void) const { + inline bool getMediaSamplerDopClockGateEnable() const { return TheStructure.Common.MediaSamplerDopClockGateEnable; } inline void setMediaSamplerPowerClockGateDisable(const bool value) { TheStructure.Common.MediaSamplerPowerClockGateDisable = value; } - inline bool getMediaSamplerPowerClockGateDisable(void) const { + inline bool getMediaSamplerPowerClockGateDisable() const { return TheStructure.Common.MediaSamplerPowerClockGateDisable; } inline void setSystolicModeEnable(const bool value) { TheStructure.Common.SystolicModeEnable = value; } - inline bool getSystolicModeEnable(void) const { + inline bool getSystolicModeEnable() const { return TheStructure.Common.SystolicModeEnable; } inline void setMaskBits(const uint32_t value) { DEBUG_BREAK_IF(value > 0xff00); TheStructure.Common.MaskBits = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return TheStructure.Common.MaskBits; } } PIPELINE_SELECT; @@ -6924,7 +6924,7 @@ typedef struct tagSTATE_COMPUTE_MODE { DISABLE_ATOMIC_ON_CLEAR_DATA_ENABLE = 0x0, DISABLE_ATOMIC_ON_CLEAR_DATA_DISABLE = 0x1, } DISABLE_ATOMIC_ON_CLEAR_DATA; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_COMPUTE_MODE; @@ -6938,7 +6938,7 @@ typedef struct tagSTATE_COMPUTE_MODE { TheStructure.Common.PixelAsyncComputeThreadLimit = PIXEL_ASYNC_COMPUTE_THREAD_LIMIT_DISABLED; TheStructure.Common.DisableAtomicOnClearData = DISABLE_ATOMIC_ON_CLEAR_DATA_ENABLE; } - static tagSTATE_COMPUTE_MODE sInit(void) { + static tagSTATE_COMPUTE_MODE sInit() { STATE_COMPUTE_MODE state; state.init(); return state; @@ -6950,56 +6950,56 @@ typedef struct tagSTATE_COMPUTE_MODE { inline void setZPassAsyncComputeThreadLimit(const Z_PASS_ASYNC_COMPUTE_THREAD_LIMIT value) { TheStructure.Common.ZPassAsyncComputeThreadLimit = value; } - inline Z_PASS_ASYNC_COMPUTE_THREAD_LIMIT getZPassAsyncComputeThreadLimit(void) const { + inline Z_PASS_ASYNC_COMPUTE_THREAD_LIMIT getZPassAsyncComputeThreadLimit() const { return static_cast(TheStructure.Common.ZPassAsyncComputeThreadLimit); } inline void setForceNonCoherent(const FORCE_NON_COHERENT value) { TheStructure.Common.ForceNonCoherent = value; } - inline FORCE_NON_COHERENT getForceNonCoherent(void) const { + inline FORCE_NON_COHERENT getForceNonCoherent() const { return static_cast(TheStructure.Common.ForceNonCoherent); } inline void setFastClearDisabledOnCompressedSurface(const FAST_CLEAR_DISABLED_ON_COMPRESSED_SURFACE value) { TheStructure.Common.FastClearDisabledOnCompressedSurface = value; } - inline FAST_CLEAR_DISABLED_ON_COMPRESSED_SURFACE getFastClearDisabledOnCompressedSurface(void) const { + inline FAST_CLEAR_DISABLED_ON_COMPRESSED_SURFACE getFastClearDisabledOnCompressedSurface() const { return static_cast(TheStructure.Common.FastClearDisabledOnCompressedSurface); } inline void setDisableSlmReadMergeOptimization(const DISABLE_SLM_READ_MERGE_OPTIMIZATION value) { TheStructure.Common.DisableSlmReadMergeOptimization = value; } - inline DISABLE_SLM_READ_MERGE_OPTIMIZATION getDisableSlmReadMergeOptimization(void) const { + inline DISABLE_SLM_READ_MERGE_OPTIMIZATION getDisableSlmReadMergeOptimization() const { return static_cast(TheStructure.Common.DisableSlmReadMergeOptimization); } inline void setPixelAsyncComputeThreadLimit(const PIXEL_ASYNC_COMPUTE_THREAD_LIMIT value) { TheStructure.Common.PixelAsyncComputeThreadLimit = value; } - inline PIXEL_ASYNC_COMPUTE_THREAD_LIMIT getPixelAsyncComputeThreadLimit(void) const { + inline PIXEL_ASYNC_COMPUTE_THREAD_LIMIT getPixelAsyncComputeThreadLimit() const { return static_cast(TheStructure.Common.PixelAsyncComputeThreadLimit); } inline void setDisableAtomicOnClearData(const DISABLE_ATOMIC_ON_CLEAR_DATA value) { TheStructure.Common.DisableAtomicOnClearData = value; } - inline DISABLE_ATOMIC_ON_CLEAR_DATA getDisableAtomicOnClearData(void) const { + inline DISABLE_ATOMIC_ON_CLEAR_DATA getDisableAtomicOnClearData() const { return static_cast(TheStructure.Common.DisableAtomicOnClearData); } inline void setDisableL1InvalidateForNonL1CacheableWrites(const bool value) { TheStructure.Common.DisableL1InvalidateForNonL1CacheableWrites = value; } - inline bool getDisableL1InvalidateForNonL1CacheableWrites(void) const { + inline bool getDisableL1InvalidateForNonL1CacheableWrites() const { return TheStructure.Common.DisableL1InvalidateForNonL1CacheableWrites; } inline void setLargeGrfMode(const bool value) { TheStructure.Common.LargeGrfMode = value; } - inline bool getLargeGrfMode(void) const { + inline bool getLargeGrfMode() const { return TheStructure.Common.LargeGrfMode; } inline void setMaskBits(const uint32_t value) { UNRECOVERABLE_IF(value > 0xffff); TheStructure.Common.MaskBits = value; } - inline uint32_t getMaskBits(void) const { + inline uint32_t getMaskBits() const { return TheStructure.Common.MaskBits; } } STATE_COMPUTE_MODE; @@ -7042,7 +7042,7 @@ typedef struct tag_3DSTATE_BINDING_TABLE_POOL_ALLOC { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_3DSTATE_BINDING_TABLE_POOL_ALLOC; @@ -7051,7 +7051,7 @@ typedef struct tag_3DSTATE_BINDING_TABLE_POOL_ALLOC { TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; TheStructure.Common.BindingTablePoolBufferSize = 0; } - static tag_3DSTATE_BINDING_TABLE_POOL_ALLOC sInit(void) { + static tag_3DSTATE_BINDING_TABLE_POOL_ALLOC sInit() { _3DSTATE_BINDING_TABLE_POOL_ALLOC state; state.init(); return state; @@ -7063,14 +7063,14 @@ typedef struct tag_3DSTATE_BINDING_TABLE_POOL_ALLOC { inline void setSurfaceObjectControlStateEncryptedData(const bool value) { TheStructure.Common.SurfaceObjectControlStateEncryptedData = value; } - inline bool getSurfaceObjectControlStateEncryptedData(void) const { + inline bool getSurfaceObjectControlStateEncryptedData() const { return TheStructure.Common.SurfaceObjectControlStateEncryptedData; } inline void setSurfaceObjectControlStateIndexToMocsTables(const uint64_t value) { UNRECOVERABLE_IF(value > 0x7eL); TheStructure.Common.SurfaceObjectControlStateIndexToMocsTables = value >> 1; } - inline uint64_t getSurfaceObjectControlStateIndexToMocsTables(void) const { + inline uint64_t getSurfaceObjectControlStateIndexToMocsTables() const { return (TheStructure.Common.SurfaceObjectControlStateIndexToMocsTables << 1); } typedef enum tagBINDINGTABLEPOOLBASEADDRESS { @@ -7080,11 +7080,11 @@ typedef struct tag_3DSTATE_BINDING_TABLE_POOL_ALLOC { inline void setBindingTablePoolBaseAddress(const uint64_t value) { TheStructure.Common.BindingTablePoolBaseAddress = value >> BINDINGTABLEPOOLBASEADDRESS_BIT_SHIFT; } - inline uint64_t getBindingTablePoolBaseAddress(void) const { + inline uint64_t getBindingTablePoolBaseAddress() const { return TheStructure.Common.BindingTablePoolBaseAddress << BINDINGTABLEPOOLBASEADDRESS_BIT_SHIFT; } inline void setBindingTablePoolBufferSize(const uint32_t value) { TheStructure.Common.BindingTablePoolBufferSize = value; } - inline uint32_t getBindingTablePoolBufferSize(void) const { return TheStructure.Common.BindingTablePoolBufferSize; } + inline uint32_t getBindingTablePoolBufferSize() const { return TheStructure.Common.BindingTablePoolBufferSize; } } _3DSTATE_BINDING_TABLE_POOL_ALLOC; STATIC_ASSERT(16 == sizeof(_3DSTATE_BINDING_TABLE_POOL_ALLOC)); @@ -7107,11 +7107,11 @@ typedef struct tagL3_FLUSH_ADDRESS_RANGE { L3_FLUSH_EVICTION_POLICY_FLUSH_L3_WITH_OUT_EVICTION = 0x1, L3_FLUSH_EVICTION_POLICY_DISCARD = 0x2, } L3_FLUSH_EVICTION_POLICY; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.L3FlushEvictionPolicy = L3_FLUSH_EVICTION_POLICY_FLUSH_L3_WITH_EVICTION; } - static tagL3_FLUSH_ADDRESS_RANGE sInit(void) { + static tagL3_FLUSH_ADDRESS_RANGE sInit() { L3_FLUSH_ADDRESS_RANGE state; state.init(); return state; @@ -7130,7 +7130,7 @@ typedef struct tagL3_FLUSH_ADDRESS_RANGE { TheStructure.Common.AddressLow = value >> ADDRESSLOW_BIT_SHIFT; } - inline uint64_t getAddressLow(void) const { + inline uint64_t getAddressLow() const { return (TheStructure.Common.AddressLow << ADDRESSLOW_BIT_SHIFT); } @@ -7154,14 +7154,14 @@ typedef struct tagL3_FLUSH_ADDRESS_RANGE { inline void setL3FlushEvictionPolicy(const L3_FLUSH_EVICTION_POLICY value) { TheStructure.Common.L3FlushEvictionPolicy = value; } - inline L3_FLUSH_EVICTION_POLICY getL3FlushEvictionPolicy(void) const { + inline L3_FLUSH_EVICTION_POLICY getL3FlushEvictionPolicy() const { return static_cast(TheStructure.Common.L3FlushEvictionPolicy); } inline void setAddressMask(const uint64_t value) { UNRECOVERABLE_IF(value > 0x1f8); TheStructure.Common.AddressMask = value; } - inline uint32_t getAddressMask(void) const { + inline uint32_t getAddressMask() const { return TheStructure.Common.AddressMask; } } L3_FLUSH_ADDRESS_RANGE; @@ -7178,7 +7178,7 @@ struct L3_CONTROL_POST_SYNC_DATA { uint32_t RawData[4]; } TheStructure; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); } @@ -7189,13 +7189,13 @@ struct L3_CONTROL_POST_SYNC_DATA { inline void setAddress(const uint64_t value) { TheStructure.Common.Address = value >> ADDRESS_BIT_SHIFT; } - inline uint64_t getAddress(void) const { + inline uint64_t getAddress() const { return TheStructure.Common.Address << ADDRESS_BIT_SHIFT; } inline void setImmediateData(const uint64_t value) { TheStructure.Common.ImmediateData = value; } - inline uint64_t getImmediateData(void) const { + inline uint64_t getImmediateData() const { return TheStructure.Common.ImmediateData; } }; @@ -7256,7 +7256,7 @@ struct L3_CONTROL { typedef enum tagTYPE { TYPE_GFXPIPE = 0x3, } TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.RenderTargetCacheFlushEnable = RENDER_TARGET_CACHE_FLUSH_ENABLED; TheStructure.Common.UnTypedDataPortCacheFlush = UN_TYPED_DATA_PORT_CACHE_FLUSH_DISABLED; @@ -7269,7 +7269,7 @@ struct L3_CONTROL { TheStructure.Common.Type = TYPE_GFXPIPE; TheStructure.Common.PostSyncData.init(); } - static L3_CONTROL sInit(void) { + static L3_CONTROL sInit() { L3_CONTROL state; state.init(); return state; @@ -7281,61 +7281,61 @@ struct L3_CONTROL { inline void setLength(const uint32_t value) { TheStructure.Common.Length = value; } - inline uint32_t getLength(void) const { + inline uint32_t getLength() const { return TheStructure.Common.Length; } inline void setDepthCacheFlush(const bool value) { TheStructure.Common.DepthCacheFlush = value; } - inline bool getDepthCacheFlush(void) const { + inline bool getDepthCacheFlush() const { return TheStructure.Common.DepthCacheFlush; } inline void setRenderTargetCacheFlushEnable(const bool value) { TheStructure.Common.RenderTargetCacheFlushEnable = value; } - inline bool getRenderTargetCacheFlushEnable(void) const { + inline bool getRenderTargetCacheFlushEnable() const { return TheStructure.Common.RenderTargetCacheFlushEnable; } inline void setHdcPipelineFlush(const bool value) { TheStructure.Common.HdcPipelineFlush = value; } - inline bool getHdcPipelineFlush(void) const { + inline bool getHdcPipelineFlush() const { return TheStructure.Common.HdcPipelineFlush; } inline void setUnTypedDataPortCacheFlush(const bool value) { TheStructure.Common.UnTypedDataPortCacheFlush = value; } - inline bool getUnTypedDataPortCacheFlush(void) const { + inline bool getUnTypedDataPortCacheFlush() const { return TheStructure.Common.UnTypedDataPortCacheFlush; } inline void setPostSyncOperation(const POST_SYNC_OPERATION value) { TheStructure.Common.PostSyncOperation = value; } - inline POST_SYNC_OPERATION getPostSyncOperation(void) const { + inline POST_SYNC_OPERATION getPostSyncOperation() const { return static_cast(TheStructure.Common.PostSyncOperation); } inline void setPostSyncOperationL3CacheabilityControl(const POST_SYNC_OPERATION_L3_CACHEABILITY_CONTROL value) { TheStructure.Common.PostSyncOperationL3CacheabilityControl = value; } - inline POST_SYNC_OPERATION_L3_CACHEABILITY_CONTROL getPostSyncOperationL3CacheabilityControl(void) const { + inline POST_SYNC_OPERATION_L3_CACHEABILITY_CONTROL getPostSyncOperationL3CacheabilityControl() const { return static_cast(TheStructure.Common.PostSyncOperationL3CacheabilityControl); } inline void setCommandStreamerStallEnable(const bool value) { TheStructure.Common.CommandStreamerStallEnable = value; } - inline bool getCommandStreamerStallEnable(void) const { + inline bool getCommandStreamerStallEnable() const { return TheStructure.Common.CommandStreamerStallEnable; } inline void setDestinationAddressType(const DESTINATION_ADDRESS_TYPE value) { TheStructure.Common.DestinationAddressType = value; } - inline DESTINATION_ADDRESS_TYPE getDestinationAddressType(void) const { + inline DESTINATION_ADDRESS_TYPE getDestinationAddressType() const { return static_cast(TheStructure.Common.DestinationAddressType); } inline void setType(const TYPE value) { TheStructure.Common.Type = value; } - inline TYPE getType(void) const { + inline TYPE getType() const { return static_cast(TheStructure.Common.Type); } L3_CONTROL_POST_SYNC_DATA &getPostSyncData() { @@ -7350,7 +7350,7 @@ struct L3_CONTROL { getPostSyncData().setAddress(value); } - inline uint64_t getPostSyncAddress(void) const { + inline uint64_t getPostSyncAddress() const { return getPostSyncData().getAddress(); } @@ -7358,7 +7358,7 @@ struct L3_CONTROL { getPostSyncData().setImmediateData(value); } - inline uint64_t getPostSyncImmediateData(void) const { + inline uint64_t getPostSyncImmediateData() const { return getPostSyncData().getImmediateData(); } }; @@ -7396,7 +7396,7 @@ typedef struct tagSTATE_SIP { typedef enum tagCOMMAND_TYPE { COMMAND_TYPE_GFXPIPE = 0x3, } COMMAND_TYPE; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.DwordLength = DWORD_LENGTH_DWORD_COUNT_N; TheStructure.Common._3DCommandSubOpcode = _3D_COMMAND_SUB_OPCODE_STATE_SIP; @@ -7404,7 +7404,7 @@ typedef struct tagSTATE_SIP { TheStructure.Common.CommandSubtype = COMMAND_SUBTYPE_GFXPIPE_COMMON; TheStructure.Common.CommandType = COMMAND_TYPE_GFXPIPE; } - static tagSTATE_SIP sInit(void) { + static tagSTATE_SIP sInit() { STATE_SIP state; state.init(); return state; @@ -7421,7 +7421,7 @@ typedef struct tagSTATE_SIP { UNRECOVERABLE_IF(value > 0xffffffffffffffffL); TheStructure.Common.SystemInstructionPointer = value >> SYSTEMINSTRUCTIONPOINTER_BIT_SHIFT; } - inline uint64_t getSystemInstructionPointer(void) const { + inline uint64_t getSystemInstructionPointer() const { return TheStructure.Common.SystemInstructionPointer << SYSTEMINSTRUCTIONPOINTER_BIT_SHIFT; } } STATE_SIP; @@ -7441,14 +7441,14 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { } Common; uint32_t RawData[4]; } TheStructure; - inline void init(void) { + inline void init() { memset(&TheStructure, 0, sizeof(TheStructure)); TheStructure.Common.BorderColorRed = 0.0; TheStructure.Common.BorderColorGreen = 0.0; TheStructure.Common.BorderColorBlue = 0.0; TheStructure.Common.BorderColorAlpha = 0.0; } - static tagSAMPLER_BORDER_COLOR_STATE sInit(void) { + static tagSAMPLER_BORDER_COLOR_STATE sInit() { SAMPLER_BORDER_COLOR_STATE state; state.init(); return state; @@ -7460,25 +7460,25 @@ typedef struct tagSAMPLER_BORDER_COLOR_STATE { inline void setBorderColorRed(const float value) { TheStructure.Common.BorderColorRed = value; } - inline float getBorderColorRed(void) const { + inline float getBorderColorRed() const { return TheStructure.Common.BorderColorRed; } inline void setBorderColorGreen(const float value) { TheStructure.Common.BorderColorGreen = value; } - inline float getBorderColorGreen(void) const { + inline float getBorderColorGreen() const { return TheStructure.Common.BorderColorGreen; } inline void setBorderColorBlue(const float value) { TheStructure.Common.BorderColorBlue = value; } - inline float getBorderColorBlue(void) const { + inline float getBorderColorBlue() const { return TheStructure.Common.BorderColorBlue; } inline void setBorderColorAlpha(const float value) { TheStructure.Common.BorderColorAlpha = value; } - inline float getBorderColorAlpha(void) const { + inline float getBorderColorAlpha() const { return TheStructure.Common.BorderColorAlpha; } } SAMPLER_BORDER_COLOR_STATE;