diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-07 17:34:55 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-05 21:49:10 +0200 |
commit | 737e978f5b1440a044ef90f346c8616c2de49a81 (patch) | |
tree | 42b3c99171a3929f64db141db81193a0067b3523 /src/core/hle/service/nvflinger/buffer_queue.h | |
parent | nvflinger: Implement swap intervals (diff) | |
download | yuzu-737e978f5b1440a044ef90f346c8616c2de49a81.tar yuzu-737e978f5b1440a044ef90f346c8616c2de49a81.tar.gz yuzu-737e978f5b1440a044ef90f346c8616c2de49a81.tar.bz2 yuzu-737e978f5b1440a044ef90f346c8616c2de49a81.tar.lz yuzu-737e978f5b1440a044ef90f346c8616c2de49a81.tar.xz yuzu-737e978f5b1440a044ef90f346c8616c2de49a81.tar.zst yuzu-737e978f5b1440a044ef90f346c8616c2de49a81.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.h b/src/core/hle/service/nvflinger/buffer_queue.h index 139b98b9f..c163e565c 100644 --- a/src/core/hle/service/nvflinger/buffer_queue.h +++ b/src/core/hle/service/nvflinger/buffer_queue.h @@ -12,6 +12,7 @@ #include "common/swap.h" #include "core/hle/kernel/object.h" #include "core/hle/kernel/writable_event.h" +#include "core/hle/service/nvdrv/nvdata.h" namespace Service::NVFlinger { @@ -69,13 +70,16 @@ public: BufferTransformFlags transform; Common::Rectangle<int> crop_rect; u32 swap_interval; + Service::Nvidia::MultiFence multi_fence; }; void SetPreallocatedBuffer(u32 slot, const IGBPBuffer& igbp_buffer); - std::optional<u32> DequeueBuffer(u32 width, u32 height); + std::optional<std::pair<u32, Service::Nvidia::MultiFence*>> DequeueBuffer(u32 width, + u32 height); const IGBPBuffer& RequestBuffer(u32 slot) const; void QueueBuffer(u32 slot, BufferTransformFlags transform, - const Common::Rectangle<int>& crop_rect, u32 swap_interval); + const Common::Rectangle<int>& crop_rect, u32 swap_interval, + Service::Nvidia::MultiFence& multi_fence); std::optional<std::reference_wrapper<const Buffer>> AcquireBuffer(); void ReleaseBuffer(u32 slot); u32 Query(QueryType type); |