diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-07 11:34:55 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-05 15:49:10 -0400 |
| commit | 737e978f5b1440a044ef90f346c8616c2de49a81 (patch) | |
| tree | 42b3c99171a3929f64db141db81193a0067b3523 /src/core/hle/service/nvflinger/buffer_queue.h | |
| parent | ceb5f5079c3efd8046ccf35bbc3507a4c190f355 (diff) | |
nv_services: Correct buffer queue fencing and GPFifo fencing
Diffstat (limited to 'src/core/hle/service/nvflinger/buffer_queue.h')
| -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); |
