aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vic/Image/SurfaceWriter.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-03-23 17:09:32 -0300
committerGitHub <noreply@github.com>2022-03-23 17:09:32 -0300
commit1402d8391d84f912110104e3e6c1a50a8c000d59 (patch)
tree20c22eb021a92d0256c45ba676d05a7504460bfa /Ryujinx.Graphics.Vic/Image/SurfaceWriter.cs
parente3b36db71c62a34a26b30683dd5ad5410c97cc9c (diff)
Support NVDEC H264 interlaced video decoding and VIC deinterlacing (#3225)1.1.84
* Support NVDEC H264 interlaced video decoding and VIC deinterlacing * Remove unused code
Diffstat (limited to 'Ryujinx.Graphics.Vic/Image/SurfaceWriter.cs')
-rw-r--r--Ryujinx.Graphics.Vic/Image/SurfaceWriter.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Vic/Image/SurfaceWriter.cs b/Ryujinx.Graphics.Vic/Image/SurfaceWriter.cs
index dd64720e..297a04b6 100644
--- a/Ryujinx.Graphics.Vic/Image/SurfaceWriter.cs
+++ b/Ryujinx.Graphics.Vic/Image/SurfaceWriter.cs
@@ -15,7 +15,7 @@ namespace Ryujinx.Graphics.Vic.Image
switch (config.OutPixelFormat)
{
case PixelFormat.A8B8G8R8:
- case PixelFormat.X8B8G8R8:
+ case PixelFormat.X8B8G8R8:
WriteA8B8G8R8(rm, input, ref config, ref offsets);
break;
case PixelFormat.A8R8G8B8:
@@ -433,7 +433,7 @@ namespace Ryujinx.Graphics.Vic.Image
{
if (linear)
{
- rm.Gmm.Write(ExtendOffset(offset), src);
+ rm.Gmm.WriteMapped(ExtendOffset(offset), src);
return;
}
@@ -456,7 +456,7 @@ namespace Ryujinx.Graphics.Vic.Image
LayoutConverter.ConvertLinearToBlockLinear(dst, width, height, dstStride, bytesPerPixel, gobBlocksInY, src);
- rm.Gmm.Write(ExtendOffset(offset), dst);
+ rm.Gmm.WriteMapped(ExtendOffset(offset), dst);
rm.BufferPool.Return(dstIndex);
}