diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-20 06:06:46 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-25 02:13:33 +0100 |
commit | ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173 (patch) | |
tree | 51dd49fec795ed3d2e4db833e191e5b142f1fe8b /src/core/hle/service/nvflinger/buffer_queue_consumer.cpp | |
parent | hle: nvflinger: buffer_queue_core: Cleanup locking. (diff) | |
download | yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar.gz yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar.bz2 yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar.lz yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar.xz yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.tar.zst yuzu-ddd5a2b1c67a82f0b1dbaa75dc4b99ee71f93173.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue_consumer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp b/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp index 5184d876a..cf12cceff 100644 --- a/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp +++ b/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp @@ -74,7 +74,7 @@ Status BufferQueueConsumer::AcquireBuffer(BufferItem* out_buffer, LOG_DEBUG(Service_NVFlinger, "drop desire={} expect={} size={}", desired_present, expected_present.count(), core->queue.size()); - if (core->StillTracking(&*front)) { + if (core->StillTracking(*front)) { // Front buffer is still in mSlots, so mark the slot as free slots[front->slot].buffer_state = BufferState::Free; core->free_buffers.push_back(front->slot); @@ -110,7 +110,7 @@ Status BufferQueueConsumer::AcquireBuffer(BufferItem* out_buffer, LOG_DEBUG(Service_NVFlinger, "acquiring slot={}", slot); // If the front buffer is still being tracked, update its slot state - if (core->StillTracking(&*front)) { + if (core->StillTracking(*front)) { slots[slot].acquire_called = true; slots[slot].needs_cleanup_on_release = false; slots[slot].buffer_state = BufferState::Acquired; |