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/H264Decoder.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/H264Decoder.cs')
-rw-r--r-- | Ryujinx.Graphics.Nvdec/H264Decoder.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.Nvdec/H264Decoder.cs b/Ryujinx.Graphics.Nvdec/H264Decoder.cs index 6efeb899..ecc7dbc7 100644 --- a/Ryujinx.Graphics.Nvdec/H264Decoder.cs +++ b/Ryujinx.Graphics.Nvdec/H264Decoder.cs @@ -12,18 +12,18 @@ namespace Ryujinx.Graphics.Nvdec public static void Decode(NvdecDecoderContext context, ResourceManager rm, ref NvdecRegisters state) { - PictureInfo pictureInfo = rm.Gmm.DeviceRead<PictureInfo>(state.SetPictureInfoOffset); + PictureInfo pictureInfo = rm.Gmm.DeviceRead<PictureInfo>(state.SetDrvPicSetupOffset); H264PictureInfo info = pictureInfo.Convert(); - ReadOnlySpan<byte> bitstream = rm.Gmm.DeviceGetSpan(state.SetBitstreamOffset, (int)pictureInfo.BitstreamSize); + ReadOnlySpan<byte> bitstream = rm.Gmm.DeviceGetSpan(state.SetInBufBaseOffset, (int)pictureInfo.BitstreamSize); int width = (int)pictureInfo.PicWidthInMbs * MbSizeInPixels; int height = (int)pictureInfo.PicHeightInMbs * MbSizeInPixels; int surfaceIndex = (int)pictureInfo.OutputSurfaceIndex; - uint lumaOffset = state.SetSurfaceLumaOffset[surfaceIndex]; - uint chromaOffset = state.SetSurfaceChromaOffset[surfaceIndex]; + uint lumaOffset = state.SetPictureLumaOffset[surfaceIndex]; + uint chromaOffset = state.SetPictureChromaOffset[surfaceIndex]; Decoder decoder = context.GetH264Decoder(); |