From 21a0b0ebebfe8533ac70e688ae3bcb18dbad6aba Mon Sep 17 00:00:00 2001 From: Thog Date: Wed, 22 Apr 2020 21:18:53 +0200 Subject: [PATCH] SurfaceFlinger: Invalid GraphicBuffer in SetPreallocatedBuffer (#1145) This invalidate the GraphicBuffer on the consumer side when SetPreallocatedBuffer is called on a buffer slot. This fix rendering issues on games with a dynamic resolution like Yoshi Crafted World. --- Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueProducer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueProducer.cs b/Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueProducer.cs index 4c23eeec..29154356 100644 --- a/Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueProducer.cs +++ b/Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueProducer.cs @@ -593,6 +593,7 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger Core.Slots[slot].BufferState = BufferState.Free; Core.Slots[slot].Fence = AndroidFence.NoFence; Core.Slots[slot].RequestBufferCalled = false; + Core.Slots[slot].AcquireCalled = false; Core.Slots[slot].NeedsCleanupOnRelease = false; Core.Slots[slot].FrameNumber = 0;