GPU Classes: Difference between revisions

Line 199: Line 199:
|-
|-
| 0x43C || || 1 || || GpuInit writes 4 here.
| 0x43C || || 1 || || GpuInit writes 4 here.
|-
| 0x43D || Unbind (???) || 1 || bitfield || Bit0: InvalidateTextureHeaders, bit4: InvalidateTextureSamplers, bit8: InvalidateConstBuffers
|-
|-
| 0x43E || ClearFlags? || 1 || || GpuInit writes 0x101 here.
| 0x43E || ClearFlags? || 1 || || GpuInit writes 0x101 here.
Line 225: Line 227:
|-
|-
| 0x48C || || 1 || || Optionally used by SetRenderTargets.
| 0x48C || || 1 || || Optionally used by SetRenderTargets.
|-
| 0x48D || SamplerBinding (???) || 1 || enum || 0=Independently, 1=ViaHeaderBinding
|-
| 0x4A2 || InvalidateTextureDataNoWfi (???) || 1 || bitfield || bit0: 0=AllLines, 1=OneLine, bit4-25: Tag
|-
| 0x4AB || ShaderScheduling (???) || 1 || enum || 0=OldestThreadFirst, 1=RoundRobin
|-
|-
| 0x4B3 || DepthTestEnable || 1 || bool || Enables DepthWriteEnable and DepthFunc.
| 0x4B3 || DepthTestEnable || 1 || bool || Enables DepthWriteEnable and DepthFunc.
Line 237: Line 245:
|-
|-
| 0x4C3 || DepthFunc || 1 || bitfield || Bit0-3: DepthFunc
| 0x4C3 || DepthFunc || 1 || bitfield || Bit0-3: DepthFunc
|-
| 0x4C4 || AlphaTestRefValue || 1 || float ||
|-
|-
| 0x4C5 || AlphaTestFunc || 1 || bitfield || Bit0-3: AlphaTestFunc
| 0x4C5 || AlphaTestFunc || 1 || bitfield || Bit0-3: AlphaTestFunc
|-
| 0x4C7 || BlendColor || 4 || float[4] || TODO
|-
| 0x4CC || InvalidateSamplerCache (???) || 1 || bitfield || bit0: 0=AllLines, 1=OneLine, bit4-25: Tag
|-
| 0x4CD || InvalidateTextureHeaderCache (???) || 1 || bitfield || bit0: 0=AllLines, 1=OneLine, bit4-25: Tag
|-
| 0x4CE || InvalidateTextureDataCache (???) || 1 || bitfield || bit0: 0=AllLines, 1=OneLine, bit4-25: Tag
|-
|-
| 0x4E0 || StencilEnable || 1 || bool ||
| 0x4E0 || StencilEnable || 1 || bool ||
Line 251: Line 269:
|-
|-
| 0x4ED || LineWidthAliased || 1 || float ||
| 0x4ED || LineWidthAliased || 1 || float ||
|-
| 0x4C4 || AlphaTestRefValue || 1 || float ||
|-
| 0x4C7 || BlendColor || 4 || float[4] || TODO
|-
|-
| 0x50D || VertexBufferElementBase || 1 || uint ||
| 0x50D || VertexBufferElementBase || 1 || uint ||
Line 277: Line 291:
|-
|-
| 0x556 || RenderEnableMode || 1 || enum || 0=False, 1=True, 2=Conditional, 3=RenderIfEqual, 4=RenderIfNotEqual,  
| 0x556 || RenderEnableMode || 1 || enum || 0=False, 1=True, 2=Conditional, 3=RenderIfEqual, 4=RenderIfNotEqual,  
|-
| 0x557 || TexSamplerPoolOffset (???) || 2 || gpuva ||
|-
| 0x558 || TexSamplerPoolMaximumIndex (???) || 1 || bitfield || Bit0-19: Maximum
|-
|-
| 0x55B || PolygonOffsetFactor || 1 || float ||
| 0x55B || PolygonOffsetFactor || 1 || float ||
|-
| 0x55D || TexHeaderPoolOffset (???) || 2 || gpuva ||
|-
| 0x55F || TexHeaderPoolMaximumIndex (???) || 1 || bitfield || Bit0-21: Maximum
|-
|-
| 0x56D || CsaaEnable || 1 || bool ||
| 0x56D || CsaaEnable || 1 || bool ||
Line 289: Line 311:
|-
|-
| 0x580 || || 1 || || SetRenderTargets optionally writes 0 here.
| 0x580 || || 1 || || SetRenderTargets optionally writes 0 here.
|-
| 0x582 || ProgramRegion (???) || 2 || gpuva ||
|-
|-
| 0x591 || PrimitiveRestartEnable || 1 || bool ||
| 0x591 || PrimitiveRestartEnable || 1 || bool ||
|-
|-
| 0x592 || PrimitiveRestartIndex || 1 || uint ||
| 0x592 || PrimitiveRestartIndex || 1 || uint ||
|-
| 0x599 || CubeMapInterFaceFiltering (???) || 1 || bitfield || Bit0-1: Mode (0=UseWrap, 1=OverrideWrap, 2=AutoSpanSeam, 3=AutoCrossSeam)
|-
| 0x5A4 || ShaderControl (???) || 1 || bitfield || Bit0: Partial (0=Zero, 1=Infinity), bit1: Fp32NanBehavior (0=Legacy, 1=Fp64Compatible), bit2: Fp32F21NanBehavior (0=PassZero, 1=PassIndefinite), bit16: ZeroTimesAnythingIsZero
|-
| 0x5A5 || BindConstantBuffer (???) || 1 || bitfield || Bit0: Valid, bit8-12: ShaderSlot
|-
| 0x5A6 || InvalidateShaderCachesNoWfi (???) || 1 || bitfield || Bit0: Instruction, bit4: GlobalData, bit8: Uniform, bit12: Constant
|-
|-
| 0x5F2 || DrawElementsIndirectAddr || 2 || gpuva || TODO
| 0x5F2 || DrawElementsIndirectAddr || 2 || gpuva || TODO
Line 305: Line 337:
|-
|-
| 0x648 || PolygonCullFaceConfig || 1 || bitfield || TODO: 0x404/0x405/0x408
| 0x648 || PolygonCullFaceConfig || 1 || bitfield || TODO: 0x404/0x405/0x408
|-
| 0x651 || RenderEnableOverride || 1 || bitfield || Bit0-1: 0=UseRenderEnable, 1=AlwaysRender, 2=NeverRender
|-
| 0x64C || InvalidateConstantBufferCache (???) || 1 || bitfield || Bit0: ThruL2
|-
|-
| 0x64F || DepthClamp || 1 || || TODO: 0x101A is written when enabled, 0x181D when disabled.
| 0x64F || DepthClamp || 1 || || TODO: 0x101A is written when enabled, 0x181D when disabled.
Line 314: Line 350:
| 0x672 || ColorLogicOpType || 1 || bitfield || Bit0-7: LogicOp, bit8-15: unknown, always 0x15.
| 0x672 || ColorLogicOpType || 1 || bitfield || Bit0-7: LogicOp, bit8-15: unknown, always 0x15.
|-
|-
| 0x68B || Barrier? || 1 || trigger || Always 0 is written here. During zcull ctx-save, spammed when enabling raster, ...
| 0x68B || PipeNop || 1 || trigger || Always 0 is written here. During zcull ctx-save, spammed when enabling raster, ...
|-
| 0x689 || SetSpare (???) || 1 || uint[4] ||
|-
|-
| 0x6C0 || QueryAddr || 2 || gpuva ||
| 0x6C0 || ReportSemaphoreOffset || 2 || gpuva ||
|-
|-
| 0x6C2 || QuerySequence || 1 || || 0 is written here during most queries.
| 0x6C2 || ReportSemaphorePayload || 1 || || 0 is written here during most queries.
|-
|-
| 0x6C3 || QueryControl || 1 || bitfield || After write, the result of query is written to 4 bytes at QueryAddr.
| 0x6C3 || ReportSemaphoreControl || 1 || bitfield || Bit0-1: Operation (0=Release, 3=Trap), bit2: FlushDisable, bit20: AwakenEnable, bit28: StructureSize (0=FourWords, 1=OneWord)
|-
|-
| 0x700+4*N || VertexStreamNStride || 1 || uint || Bit0-11: Stride. TODO: This has more stuff according to nouveau
| 0x700+4*N || VertexStreamNStride || 1 || uint || Bit0-11: Stride. TODO: This has more stuff according to nouveau
Line 352: Line 390:
| 0x850 || || 1 || || BindProgram writes here.
| 0x850 || || 1 || || BindProgram writes here.
|-
|-
| 0x8E0 || ConstantBufferSelectorSize || 1 || uint || Bit0-16: size
| 0x8E0 || ConstantBufferSelectorSize || 1 || uint || Bit0-16: Size
|-
|-
| 0x8E1 || ConstantBufferSelectorAddr || 2 || gpuva ||
| 0x8E1 || ConstantBufferSelectorAddr || 2 || gpuva ||
|-
|-
| 0x8E3 || LoadConstantBufferOffset || 1 || uint || BindImage writes "8*i + 0x120" here. BindSeparateSampler writes "8*i + 0x568" here. BindSeparateTexture uses "8*i + 0x168". BindTexture uses 8*i + 32. TODO: BindStorageBuffer, UpdateUniformBuffer, etc
| 0x8E3 || LoadConstantBufferOffset || 1 || uint || Bit0-15: Offset. BindImage writes "8*i + 0x120" here. BindSeparateSampler writes "8*i + 0x568" here. BindSeparateTexture uses "8*i + 0x168". BindTexture uses 8*i + 32. TODO: BindStorageBuffer, UpdateUniformBuffer, etc
|-
|-
| 0x8E4 || LoadConstantBuffer || 1 || uint[16] ||
| 0x8E4 || LoadConstantBuffer || 1 || uint[16] ||