MethodOffset.cs 5.1 KB

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