From 83ec5869d7584e56120a979a305bcbffeb1a9720 Mon Sep 17 00:00:00 2001 From: Maufeat Date: Sat, 19 Jul 2025 03:59:04 +0200 Subject: [PATCH] structure changes --- src/core/hle/service/nvnflinger/buffer_queue_producer.cpp | 2 -- src/core/hle/service/nvnflinger/buffer_slot.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp b/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp index 80497aaaf7..09f7166a91 100644 --- a/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp +++ b/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp @@ -530,9 +530,7 @@ Status BufferQueueProducer::QueueBuffer(s32 slot, const QueueBufferInput& input, item.is_droppable = core->dequeue_buffer_cannot_block || async; item.swap_interval = swap_interval; - // TODO: .queue_time should be changed to the correct value position = (position + 1) % 8; - LOG_WARNING(Service_Nvnflinger, "position={}", position); core->history[position] = {.frame_number = core->frame_counter, .queue_time = timestamp, .state = BufferState::Queued}; diff --git a/src/core/hle/service/nvnflinger/buffer_slot.h b/src/core/hle/service/nvnflinger/buffer_slot.h index 02a696f7da..5b5cbb6fbd 100644 --- a/src/core/hle/service/nvnflinger/buffer_slot.h +++ b/src/core/hle/service/nvnflinger/buffer_slot.h @@ -15,7 +15,7 @@ namespace Service::android { class GraphicBuffer; -enum class BufferState : u32 { +enum class BufferState : s32 { Free = 0, Dequeued = 1, Queued = 2,