From f4190bd95af6cb1e12bee06badb055b7e7721228 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 23 May 2024 14:47:05 -0400 Subject: [PATCH] Rebase --- src/Ryujinx.Graphics.Metal/MetalRenderer.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Ryujinx.Graphics.Metal/MetalRenderer.cs b/src/Ryujinx.Graphics.Metal/MetalRenderer.cs index 6e844e7c0..2b535c579 100644 --- a/src/Ryujinx.Graphics.Metal/MetalRenderer.cs +++ b/src/Ryujinx.Graphics.Metal/MetalRenderer.cs @@ -79,11 +79,7 @@ namespace Ryujinx.Graphics.Metal public BufferHandle CreateBuffer(int size, BufferAccess access) { var buffer = _device.NewBuffer((ulong)size, MTLResourceOptions.ResourceStorageModeShared); - - if (access == BufferAccess.FlushPersistent) - { - buffer.SetPurgeableState(MTLPurgeableState.NonVolatile); - } + buffer.SetPurgeableState(MTLPurgeableState.NonVolatile); var bufferPtr = buffer.NativePtr; return Unsafe.As(ref bufferPtr); @@ -140,6 +136,7 @@ namespace Ryujinx.Graphics.Metal return new Capabilities( api: TargetApi.Metal, vendorName: HardwareInfoTools.GetVendor(), + SystemMemoryType.UnifiedMemory, hasFrontFacingBug: false, hasVectorIndexingBug: true, needsFragmentOutputSpecialization: true,