2019-10-13 06:02:07 +00:00
|
|
|
namespace Ryujinx.Graphics.Gpu.State
|
|
|
|
{
|
2019-12-31 16:32:06 +00:00
|
|
|
/// <summary>
|
|
|
|
/// GPU method offset.
|
|
|
|
/// </summary>
|
2020-01-01 15:39:09 +00:00
|
|
|
/// <remarks>
|
|
|
|
/// This is indexed in 32 bits word.
|
|
|
|
/// </remarks>
|
2019-10-13 06:02:07 +00:00
|
|
|
enum MethodOffset
|
|
|
|
{
|
2019-10-26 17:50:52 +00:00
|
|
|
I2mParams = 0x60,
|
|
|
|
LaunchDma = 0x6c,
|
|
|
|
LoadInlineData = 0x6d,
|
|
|
|
CopyDstTexture = 0x80,
|
|
|
|
CopySrcTexture = 0x8c,
|
|
|
|
DispatchParamsAddress = 0xad,
|
|
|
|
Dispatch = 0xaf,
|
|
|
|
CopyBuffer = 0xc0,
|
2020-04-07 09:19:45 +00:00
|
|
|
RasterizeEnable = 0xdf,
|
2019-10-26 17:50:52 +00:00
|
|
|
CopyBufferParams = 0x100,
|
|
|
|
CopyBufferSwizzle = 0x1c2,
|
|
|
|
CopyBufferDstTexture = 0x1c3,
|
|
|
|
CopyBufferSrcTexture = 0x1ca,
|
|
|
|
RtColorState = 0x200,
|
|
|
|
CopyTextureControl = 0x223,
|
|
|
|
CopyRegion = 0x22c,
|
|
|
|
CopyTexture = 0x237,
|
|
|
|
ViewportTransform = 0x280,
|
|
|
|
ViewportExtents = 0x300,
|
|
|
|
VertexBufferDrawState = 0x35d,
|
2019-12-07 04:54:28 +00:00
|
|
|
DepthMode = 0x35f,
|
2019-10-26 17:50:52 +00:00
|
|
|
ClearColors = 0x360,
|
|
|
|
ClearDepthValue = 0x364,
|
|
|
|
ClearStencilValue = 0x368,
|
|
|
|
DepthBiasState = 0x370,
|
|
|
|
TextureBarrier = 0x378,
|
2020-03-29 03:02:58 +00:00
|
|
|
ScissorState = 0x380,
|
2019-10-26 17:50:52 +00:00
|
|
|
StencilBackMasks = 0x3d5,
|
|
|
|
InvalidateTextures = 0x3dd,
|
|
|
|
TextureBarrierTiled = 0x3df,
|
2019-12-06 22:37:00 +00:00
|
|
|
RtColorMaskShared = 0x3e4,
|
2019-10-26 17:50:52 +00:00
|
|
|
RtDepthStencilState = 0x3f8,
|
|
|
|
VertexAttribState = 0x458,
|
2019-12-06 22:37:00 +00:00
|
|
|
RtControl = 0x487,
|
2019-10-26 17:50:52 +00:00
|
|
|
RtDepthStencilSize = 0x48a,
|
2019-12-05 20:34:47 +00:00
|
|
|
SamplerIndex = 0x48d,
|
2019-10-26 17:50:52 +00:00
|
|
|
DepthTestEnable = 0x4b3,
|
2019-12-05 20:34:47 +00:00
|
|
|
BlendIndependent = 0x4b9,
|
2019-10-26 17:50:52 +00:00
|
|
|
DepthWriteEnable = 0x4ba,
|
|
|
|
DepthTestFunc = 0x4c3,
|
2019-12-05 20:34:47 +00:00
|
|
|
BlendStateCommon = 0x4cf,
|
|
|
|
BlendEnableCommon = 0x4d7,
|
2019-10-26 17:50:52 +00:00
|
|
|
BlendEnable = 0x4d8,
|
|
|
|
StencilTestState = 0x4e0,
|
2019-12-05 20:34:47 +00:00
|
|
|
YControl = 0x4eb,
|
2019-10-26 17:50:52 +00:00
|
|
|
FirstVertex = 0x50d,
|
|
|
|
FirstInstance = 0x50e,
|
2020-02-01 23:19:46 +00:00
|
|
|
PointSize = 0x546,
|
2019-10-26 17:50:52 +00:00
|
|
|
ResetCounter = 0x54c,
|
|
|
|
RtDepthStencilEnable = 0x54e,
|
|
|
|
ConditionState = 0x554,
|
|
|
|
SamplerPoolState = 0x557,
|
|
|
|
DepthBiasFactor = 0x55b,
|
|
|
|
TexturePoolState = 0x55d,
|
|
|
|
StencilBackTestState = 0x565,
|
|
|
|
DepthBiasUnits = 0x56f,
|
|
|
|
RtMsaaMode = 0x574,
|
|
|
|
ShaderBaseAddress = 0x582,
|
|
|
|
DrawEnd = 0x585,
|
|
|
|
DrawBegin = 0x586,
|
|
|
|
PrimitiveRestartState = 0x591,
|
|
|
|
IndexBufferState = 0x5f2,
|
|
|
|
IndexBufferCount = 0x5f8,
|
|
|
|
DepthBiasClamp = 0x61f,
|
|
|
|
VertexBufferInstanced = 0x620,
|
|
|
|
FaceState = 0x646,
|
2019-12-06 22:37:00 +00:00
|
|
|
ViewportTransformEnable = 0x64b,
|
2019-10-26 17:50:52 +00:00
|
|
|
Clear = 0x674,
|
|
|
|
RtColorMask = 0x680,
|
|
|
|
ReportState = 0x6c0,
|
|
|
|
Report = 0x6c3,
|
|
|
|
VertexBufferState = 0x700,
|
|
|
|
BlendState = 0x780,
|
|
|
|
VertexBufferEndAddress = 0x7c0,
|
|
|
|
ShaderState = 0x800,
|
2020-01-22 01:11:43 +00:00
|
|
|
FirmwareCall0 = 0x8c0,
|
|
|
|
FirmwareCall1 = 0x8c1,
|
|
|
|
FirmwareCall2 = 0x8c2,
|
|
|
|
FirmwareCall3 = 0x8c3,
|
|
|
|
FirmwareCall4 = 0x8c4,
|
|
|
|
FirmwareCall5 = 0x8c5,
|
|
|
|
FirmwareCall6 = 0x8c6,
|
|
|
|
FirmwareCall7 = 0x8c7,
|
2019-10-26 17:50:52 +00:00
|
|
|
UniformBufferState = 0x8e0,
|
|
|
|
UniformBufferUpdateData = 0x8e4,
|
|
|
|
UniformBufferBindVertex = 0x904,
|
|
|
|
UniformBufferBindTessControl = 0x90c,
|
|
|
|
UniformBufferBindTessEvaluation = 0x914,
|
|
|
|
UniformBufferBindGeometry = 0x91c,
|
|
|
|
UniformBufferBindFragment = 0x924,
|
|
|
|
TextureBufferIndex = 0x982
|
2019-10-13 06:02:07 +00:00
|
|
|
}
|
|
|
|
}
|