2018-12-03 03:38:47 +01:00
|
|
|
namespace Ryujinx.Graphics.Graphics3d
|
2018-04-08 21:17:35 +02:00
|
|
|
{
|
|
|
|
enum NvGpuEngine3dReg
|
|
|
|
{
|
|
|
|
FrameBufferNAddress = 0x200,
|
|
|
|
FrameBufferNWidth = 0x202,
|
|
|
|
FrameBufferNHeight = 0x203,
|
|
|
|
FrameBufferNFormat = 0x204,
|
2018-09-18 06:30:35 +02:00
|
|
|
FrameBufferNBlockDim = 0x205,
|
2018-07-19 07:30:21 +02:00
|
|
|
ViewportNScaleX = 0x280,
|
|
|
|
ViewportNScaleY = 0x281,
|
|
|
|
ViewportNScaleZ = 0x282,
|
|
|
|
ViewportNTranslateX = 0x283,
|
|
|
|
ViewportNTranslateY = 0x284,
|
|
|
|
ViewportNTranslateZ = 0x285,
|
|
|
|
ViewportNHoriz = 0x300,
|
|
|
|
ViewportNVert = 0x301,
|
2018-10-23 21:04:08 +02:00
|
|
|
DepthRangeNNear = 0x302,
|
|
|
|
DepthRangeNFar = 0x303,
|
2018-04-26 04:11:26 +02:00
|
|
|
VertexArrayFirst = 0x35d,
|
|
|
|
VertexArrayCount = 0x35e,
|
2018-08-10 06:09:40 +02:00
|
|
|
ClearNColor = 0x360,
|
2018-07-05 20:47:29 +02:00
|
|
|
ClearDepth = 0x364,
|
|
|
|
ClearStencil = 0x368,
|
2019-01-13 22:26:42 +01:00
|
|
|
ScissorEnable = 0x380,
|
|
|
|
ScissorHorizontal = 0x381,
|
|
|
|
ScissorVertical = 0x382,
|
2018-07-05 20:47:29 +02:00
|
|
|
StencilBackFuncRef = 0x3d5,
|
|
|
|
StencilBackMask = 0x3d6,
|
|
|
|
StencilBackFuncMask = 0x3d7,
|
2018-10-25 23:30:09 +02:00
|
|
|
ColorMaskCommon = 0x3e4,
|
2018-08-23 07:07:23 +02:00
|
|
|
RTSeparateFragData = 0x3eb,
|
2018-08-20 03:25:26 +02:00
|
|
|
ZetaAddress = 0x3f8,
|
|
|
|
ZetaFormat = 0x3fa,
|
|
|
|
ZetaBlockDimensions = 0x3fb,
|
|
|
|
ZetaLayerStride = 0x3fc,
|
2018-04-08 21:17:35 +02:00
|
|
|
VertexAttribNFormat = 0x458,
|
2018-08-23 07:07:23 +02:00
|
|
|
RTControl = 0x487,
|
2018-08-20 03:25:26 +02:00
|
|
|
ZetaHoriz = 0x48a,
|
|
|
|
ZetaVert = 0x48b,
|
|
|
|
ZetaArrayMode = 0x48c,
|
2018-11-17 05:01:31 +01:00
|
|
|
LinkedTsc = 0x48d,
|
2018-06-27 06:32:28 +02:00
|
|
|
DepthTestEnable = 0x4b3,
|
2018-11-01 05:22:24 +01:00
|
|
|
BlendIndependent = 0x4b9,
|
2018-09-20 03:02:11 +02:00
|
|
|
DepthWriteEnable = 0x4ba,
|
2018-06-27 06:32:28 +02:00
|
|
|
DepthTestFunction = 0x4c3,
|
2018-04-08 21:17:35 +02:00
|
|
|
BlendSeparateAlpha = 0x4cf,
|
|
|
|
BlendEquationRgb = 0x4d0,
|
|
|
|
BlendFuncSrcRgb = 0x4d1,
|
|
|
|
BlendFuncDstRgb = 0x4d2,
|
|
|
|
BlendEquationAlpha = 0x4d3,
|
|
|
|
BlendFuncSrcAlpha = 0x4d4,
|
|
|
|
BlendFuncDstAlpha = 0x4d6,
|
2018-11-01 05:22:24 +01:00
|
|
|
BlendEnable = 0x4d7,
|
2018-04-14 03:42:55 +02:00
|
|
|
IBlendNEnable = 0x4d8,
|
2018-07-05 20:47:29 +02:00
|
|
|
StencilEnable = 0x4e0,
|
|
|
|
StencilFrontOpFail = 0x4e1,
|
|
|
|
StencilFrontOpZFail = 0x4e2,
|
|
|
|
StencilFrontOpZPass = 0x4e3,
|
|
|
|
StencilFrontFuncFunc = 0x4e4,
|
|
|
|
StencilFrontFuncRef = 0x4e5,
|
|
|
|
StencilFrontFuncMask = 0x4e6,
|
|
|
|
StencilFrontMask = 0x4e7,
|
2018-11-17 05:01:31 +01:00
|
|
|
ScreenYControl = 0x4eb,
|
2018-04-08 21:17:35 +02:00
|
|
|
VertexArrayElemBase = 0x50d,
|
2018-08-25 06:16:58 +02:00
|
|
|
VertexArrayInstBase = 0x50e,
|
2018-08-20 03:25:26 +02:00
|
|
|
ZetaEnable = 0x54e,
|
2018-04-08 21:17:35 +02:00
|
|
|
TexHeaderPoolOffset = 0x55d,
|
|
|
|
TexSamplerPoolOffset = 0x557,
|
2018-07-05 20:47:29 +02:00
|
|
|
StencilTwoSideEnable = 0x565,
|
|
|
|
StencilBackOpFail = 0x566,
|
|
|
|
StencilBackOpZFail = 0x567,
|
|
|
|
StencilBackOpZPass = 0x568,
|
|
|
|
StencilBackFuncFunc = 0x569,
|
2018-09-18 06:30:35 +02:00
|
|
|
FrameBufferSrgb = 0x56e,
|
2018-04-08 21:17:35 +02:00
|
|
|
ShaderAddress = 0x582,
|
|
|
|
VertexBeginGl = 0x586,
|
2018-07-08 18:14:35 +02:00
|
|
|
PrimRestartEnable = 0x591,
|
|
|
|
PrimRestartIndex = 0x592,
|
2018-04-08 21:17:35 +02:00
|
|
|
IndexArrayAddress = 0x5f2,
|
|
|
|
IndexArrayEndAddr = 0x5f4,
|
|
|
|
IndexArrayFormat = 0x5f6,
|
|
|
|
IndexBatchFirst = 0x5f7,
|
|
|
|
IndexBatchCount = 0x5f8,
|
2018-08-25 06:16:58 +02:00
|
|
|
VertexArrayNInstance = 0x620,
|
2018-06-27 06:32:28 +02:00
|
|
|
CullFaceEnable = 0x646,
|
|
|
|
FrontFace = 0x647,
|
|
|
|
CullFace = 0x648,
|
2018-10-17 23:02:23 +02:00
|
|
|
ColorMaskN = 0x680,
|
2018-04-08 21:17:35 +02:00
|
|
|
QueryAddress = 0x6c0,
|
|
|
|
QuerySequence = 0x6c2,
|
|
|
|
QueryControl = 0x6c3,
|
|
|
|
VertexArrayNControl = 0x700,
|
|
|
|
VertexArrayNAddress = 0x701,
|
|
|
|
VertexArrayNDivisor = 0x703,
|
2018-04-13 20:12:58 +02:00
|
|
|
IBlendNSeparateAlpha = 0x780,
|
|
|
|
IBlendNEquationRgb = 0x781,
|
|
|
|
IBlendNFuncSrcRgb = 0x782,
|
|
|
|
IBlendNFuncDstRgb = 0x783,
|
|
|
|
IBlendNEquationAlpha = 0x784,
|
|
|
|
IBlendNFuncSrcAlpha = 0x785,
|
|
|
|
IBlendNFuncDstAlpha = 0x786,
|
2018-04-08 21:17:35 +02:00
|
|
|
VertexArrayNEndAddr = 0x7c0,
|
|
|
|
ShaderNControl = 0x800,
|
|
|
|
ShaderNOffset = 0x801,
|
|
|
|
ShaderNMaxGprs = 0x803,
|
|
|
|
ShaderNType = 0x804,
|
NvServices refactoring (#120)
* Initial implementation of NvMap/NvHostCtrl
* More work on NvHostCtrl
* Refactoring of nvservices, move GPU Vmm, make Vmm per-process, refactor most gpu devices, move Gpu to Core, fix CbBind
* Implement GetGpuTime, support CancelSynchronization, fix issue on InsertWaitingMutex, proper double buffering support (again, not working properly for commercial games, only hb)
* Try to fix perf regression reading/writing textures, moved syncpts and events to a UserCtx class, delete global state when the process exits, other minor tweaks
* Remove now unused code, add comment about probably wrong result codes
2018-05-07 20:53:23 +02:00
|
|
|
ConstBufferSize = 0x8e0,
|
|
|
|
ConstBufferAddress = 0x8e1,
|
|
|
|
ConstBufferOffset = 0x8e3,
|
2018-04-08 21:17:35 +02:00
|
|
|
TextureCbIndex = 0x982
|
|
|
|
}
|
|
|
|
}
|