From 84f3b4a3e1ac0345a672503463345bd10093f2cc Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 20 Jun 2024 19:11:12 +0100 Subject: [PATCH] Clear cached converted buffers on signaled write --- src/Ryujinx.Graphics.Metal/BufferHolder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Graphics.Metal/BufferHolder.cs b/src/Ryujinx.Graphics.Metal/BufferHolder.cs index c44c59eecd..075ac21fe4 100644 --- a/src/Ryujinx.Graphics.Metal/BufferHolder.cs +++ b/src/Ryujinx.Graphics.Metal/BufferHolder.cs @@ -67,11 +67,11 @@ namespace Ryujinx.Graphics.Metal { if (offset == 0 && size == Size) { - // TODO: Cache converted buffers + _cachedConvertedBuffers.Clear(); } else { - // TODO: Cache converted buffers + _cachedConvertedBuffers.ClearRange(offset, size); } }