From 1ab86ea2ff0b956ffb0885e38daca708d65fd3ba Mon Sep 17 00:00:00 2001 From: yuzubot Date: Fri, 15 Dec 2023 13:02:47 +0000 Subject: [PATCH] "Merge Tagged PR 12304" --- src/core/hle/service/nvnflinger/buffer_queue_consumer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/hle/service/nvnflinger/buffer_queue_consumer.cpp b/src/core/hle/service/nvnflinger/buffer_queue_consumer.cpp index d91886bed..e38fc62bd 100644 --- a/src/core/hle/service/nvnflinger/buffer_queue_consumer.cpp +++ b/src/core/hle/service/nvnflinger/buffer_queue_consumer.cpp @@ -90,6 +90,12 @@ Status BufferQueueConsumer::AcquireBuffer(BufferItem* out_buffer, LOG_DEBUG(Service_Nvnflinger, "acquiring slot={}", slot); + if (core->StillTracking(*front)) { + slots[slot].acquire_called = true; + slots[slot].buffer_state = BufferState::Acquired; + slots[slot].fence = Fence::NoFence(); + } + // If the buffer has previously been acquired by the consumer, set graphic_buffer to nullptr to // avoid unnecessarily remapping this buffer on the consumer side. if (out_buffer->acquire_called) {