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