MethodOffset.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. namespace Ryujinx.Graphics.Gpu.State
  2. {
  3. /// <summary>
  4. /// GPU method offset.
  5. /// </summary>
  6. /// <remarks>
  7. /// This is indexed in 32 bits word.
  8. /// </remarks>
  9. enum MethodOffset
  10. {
  11. BindChannel = 0x0,
  12. I2mParams = 0x60,
  13. LaunchDma = 0x6c,
  14. LoadInlineData = 0x6d,
  15. CopyDstTexture = 0x80,
  16. EarlyZForce = 0x84,
  17. CopySrcTexture = 0x8c,
  18. DispatchParamsAddress = 0xad,
  19. Dispatch = 0xaf,
  20. SyncpointAction = 0xb2,
  21. CopyBuffer = 0xc0,
  22. RasterizeEnable = 0xdf,
  23. TfBufferState = 0xe0,
  24. CopyBufferParams = 0x100,
  25. TfState = 0x1c0,
  26. CopyBufferConstA = 0x1c0,
  27. CopyBufferConstB = 0x1c1,
  28. CopyBufferSwizzle = 0x1c2,
  29. CopyBufferDstTexture = 0x1c3,
  30. CopyBufferSrcTexture = 0x1ca,
  31. TfEnable = 0x1d1,
  32. RtColorState = 0x200,
  33. CopyTextureControl = 0x223,
  34. CopyRegion = 0x22c,
  35. CopyTexture = 0x237,
  36. ViewportTransform = 0x280,
  37. ViewportExtents = 0x300,
  38. VertexBufferDrawState = 0x35d,
  39. DepthMode = 0x35f,
  40. ClearColors = 0x360,
  41. ClearDepthValue = 0x364,
  42. ClearStencilValue = 0x368,
  43. DepthBiasState = 0x370,
  44. TextureBarrier = 0x378,
  45. ScissorState = 0x380,
  46. StencilBackMasks = 0x3d5,
  47. InvalidateTextures = 0x3dd,
  48. TextureBarrierTiled = 0x3df,
  49. RtColorMaskShared = 0x3e4,
  50. RtDepthStencilState = 0x3f8,
  51. ScreenScissorState = 0x3fd,
  52. VertexAttribState = 0x458,
  53. RtControl = 0x487,
  54. RtDepthStencilSize = 0x48a,
  55. SamplerIndex = 0x48d,
  56. DepthTestEnable = 0x4b3,
  57. BlendIndependent = 0x4b9,
  58. DepthWriteEnable = 0x4ba,
  59. AlphaTestEnable = 0x4bb,
  60. VbElementU8 = 0x4c1,
  61. DepthTestFunc = 0x4c3,
  62. AlphaTestRef = 0x4c4,
  63. AlphaTestFunc = 0x4c5,
  64. BlendConstant = 0x4c7,
  65. BlendStateCommon = 0x4cf,
  66. BlendEnableCommon = 0x4d7,
  67. BlendEnable = 0x4d8,
  68. StencilTestState = 0x4e0,
  69. YControl = 0x4eb,
  70. LineWidthSmooth = 0x4ec,
  71. LineWidthAliased = 0x4ed,
  72. FirstVertex = 0x50d,
  73. FirstInstance = 0x50e,
  74. ClipDistanceEnable = 0x544,
  75. PointSize = 0x546,
  76. PointSpriteEnable = 0x548,
  77. ResetCounter = 0x54c,
  78. RtDepthStencilEnable = 0x54e,
  79. ConditionState = 0x554,
  80. SamplerPoolState = 0x557,
  81. DepthBiasFactor = 0x55b,
  82. LineSmoothEnable = 0x55c,
  83. TexturePoolState = 0x55d,
  84. StencilBackTestState = 0x565,
  85. DepthBiasUnits = 0x56f,
  86. RtMsaaMode = 0x574,
  87. VbElementU32 = 0x57a,
  88. VbElementU16 = 0x57c,
  89. PointCoordReplace = 0x581,
  90. ShaderBaseAddress = 0x582,
  91. DrawEnd = 0x585,
  92. DrawBegin = 0x586,
  93. PrimitiveRestartState = 0x591,
  94. IndexBufferState = 0x5f2,
  95. IndexBufferCount = 0x5f8,
  96. DrawIndexedSmall = 0x5f9,
  97. DrawIndexedSmall2 = 0x5fa,
  98. DrawIndexedSmallIncInstance = 0x5fc,
  99. DrawIndexedSmallIncInstance2 = 0x5fd,
  100. DepthBiasClamp = 0x61f,
  101. VertexBufferInstanced = 0x620,
  102. VertexProgramPointSize = 0x644,
  103. FaceState = 0x646,
  104. ViewportTransformEnable = 0x64b,
  105. ViewVolumeClipControl = 0x64f,
  106. PrimitiveTypeOverride = 0x65c,
  107. LogicOpState = 0x671,
  108. Clear = 0x674,
  109. RtColorMask = 0x680,
  110. ReportState = 0x6c0,
  111. Report = 0x6c3,
  112. VertexBufferState = 0x700,
  113. BlendState = 0x780,
  114. VertexBufferEndAddress = 0x7c0,
  115. ShaderState = 0x800,
  116. FirmwareCall0 = 0x8c0,
  117. FirmwareCall1 = 0x8c1,
  118. FirmwareCall2 = 0x8c2,
  119. FirmwareCall3 = 0x8c3,
  120. FirmwareCall4 = 0x8c4,
  121. FirmwareCall5 = 0x8c5,
  122. FirmwareCall6 = 0x8c6,
  123. FirmwareCall7 = 0x8c7,
  124. UniformBufferState = 0x8e0,
  125. UniformBufferUpdateData = 0x8e4,
  126. UniformBufferBindVertex = 0x904,
  127. UniformBufferBindTessControl = 0x90c,
  128. UniformBufferBindTessEvaluation = 0x914,
  129. UniformBufferBindGeometry = 0x91c,
  130. UniformBufferBindFragment = 0x924,
  131. TextureBufferIndex = 0x982,
  132. TfVaryingLocations = 0xa00
  133. }
  134. }