diff options
author | Mary-nyan <mary@mary.zone> | 2023-01-02 15:48:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 14:48:46 +0000 |
commit | 09c9686498c7c987c94f33c79732c7592045e035 (patch) | |
tree | 4fc8442ba38098b50342d193ffbb26437fc73f62 /Ryujinx.Graphics.Nvdec/Vp8Decoder.cs | |
parent | b6614c6ad5d7d19594b80f4917df27bf476e8f03 (diff) |
misc: Use official names for NVDEC registers (#4192)1.1.503
* misc: Uses official names for NVDEC registers
* Address gdkchan's comment
* Address comments
Diffstat (limited to 'Ryujinx.Graphics.Nvdec/Vp8Decoder.cs')
-rw-r--r-- | Ryujinx.Graphics.Nvdec/Vp8Decoder.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.Nvdec/Vp8Decoder.cs b/Ryujinx.Graphics.Nvdec/Vp8Decoder.cs index 8a369984..cce9a574 100644 --- a/Ryujinx.Graphics.Nvdec/Vp8Decoder.cs +++ b/Ryujinx.Graphics.Nvdec/Vp8Decoder.cs @@ -10,8 +10,8 @@ namespace Ryujinx.Graphics.Nvdec { public static void Decode(NvdecDecoderContext context, ResourceManager rm, ref NvdecRegisters state) { - PictureInfo pictureInfo = rm.Gmm.DeviceRead<PictureInfo>(state.SetPictureInfoOffset); - ReadOnlySpan<byte> bitstream = rm.Gmm.DeviceGetSpan(state.SetBitstreamOffset, (int)pictureInfo.VLDBufferSize); + PictureInfo pictureInfo = rm.Gmm.DeviceRead<PictureInfo>(state.SetDrvPicSetupOffset); + ReadOnlySpan<byte> bitstream = rm.Gmm.DeviceGetSpan(state.SetInBufBaseOffset, (int)pictureInfo.VLDBufferSize); Decoder decoder = context.GetVp8Decoder(); @@ -19,8 +19,8 @@ namespace Ryujinx.Graphics.Nvdec Vp8PictureInfo info = pictureInfo.Convert(); - uint lumaOffset = state.SetSurfaceLumaOffset[3]; - uint chromaOffset = state.SetSurfaceChromaOffset[3]; + uint lumaOffset = state.SetPictureLumaOffset[3]; + uint chromaOffset = state.SetPictureChromaOffset[3]; if (decoder.Decode(ref info, outputSurface, bitstream)) { |