"Merge Tagged PR 12304"

This commit is contained in:
yuzubot 2023-12-15 13:02:47 +00:00
parent 291c79a835
commit 1ab86ea2ff

View file

@ -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) {