MethodOffset.cs 5.4 KB

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