MethodOffset.cs 5.7 KB

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