summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-20 06:08:50 +0100
committerbunnei <bunneidev@gmail.com>2022-03-25 02:13:33 +0100
commit0ce308047e08c9671631f9898be01360e77fcaad (patch)
treedce400451e10015917df188b845002869b8306fa
parenthle: nvflinger: graphic_buffer_producer: Remove unnecessary pragma pack. (diff)
downloadyuzu-0ce308047e08c9671631f9898be01360e77fcaad.tar
yuzu-0ce308047e08c9671631f9898be01360e77fcaad.tar.gz
yuzu-0ce308047e08c9671631f9898be01360e77fcaad.tar.bz2
yuzu-0ce308047e08c9671631f9898be01360e77fcaad.tar.lz
yuzu-0ce308047e08c9671631f9898be01360e77fcaad.tar.xz
yuzu-0ce308047e08c9671631f9898be01360e77fcaad.tar.zst
yuzu-0ce308047e08c9671631f9898be01360e77fcaad.zip
-rw-r--r--src/core/hle/service/nvflinger/consumer_base.cpp3
-rw-r--r--src/core/hle/service/nvflinger/consumer_base.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/consumer_base.cpp b/src/core/hle/service/nvflinger/consumer_base.cpp
index 0524463bd..3ccbb7fb8 100644
--- a/src/core/hle/service/nvflinger/consumer_base.cpp
+++ b/src/core/hle/service/nvflinger/consumer_base.cpp
@@ -117,7 +117,8 @@ Status ConsumerBase::ReleaseBufferLocked(s32 slot,
return err;
}
-bool ConsumerBase::StillTracking(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer) {
+bool ConsumerBase::StillTracking(s32 slot,
+ const std::shared_ptr<GraphicBuffer> graphic_buffer) const {
if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
return false;
}
diff --git a/src/core/hle/service/nvflinger/consumer_base.h b/src/core/hle/service/nvflinger/consumer_base.h
index 453a47349..d72160c2c 100644
--- a/src/core/hle/service/nvflinger/consumer_base.h
+++ b/src/core/hle/service/nvflinger/consumer_base.h
@@ -38,7 +38,7 @@ protected:
Status AcquireBufferLocked(BufferItem* item, std::chrono::nanoseconds present_when,
u64 max_frame_number = 0);
Status ReleaseBufferLocked(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer);
- bool StillTracking(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer);
+ bool StillTracking(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer) const;
Status AddReleaseFenceLocked(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer,
const Fence& fence);