diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2020-12-17 20:22:46 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2020-12-17 20:22:46 +0100 |
commit | 8cb683f3b9a419c2472ead6750621c671a5becff (patch) | |
tree | 6938ca44f5c2e748d2488e24c43a61136e0279a5 /src/core/hle/service/nvflinger/buffer_queue.h | |
parent | Merge pull request #5196 from lat9nq/fix-conan-boost-2 (diff) | |
download | yuzu-8cb683f3b9a419c2472ead6750621c671a5becff.tar yuzu-8cb683f3b9a419c2472ead6750621c671a5becff.tar.gz yuzu-8cb683f3b9a419c2472ead6750621c671a5becff.tar.bz2 yuzu-8cb683f3b9a419c2472ead6750621c671a5becff.tar.lz yuzu-8cb683f3b9a419c2472ead6750621c671a5becff.tar.xz yuzu-8cb683f3b9a419c2472ead6750621c671a5becff.tar.zst yuzu-8cb683f3b9a419c2472ead6750621c671a5becff.zip |
Diffstat (limited to 'src/core/hle/service/nvflinger/buffer_queue.h')
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.h b/src/core/hle/service/nvflinger/buffer_queue.h index e7517c7e1..e610923cb 100644 --- a/src/core/hle/service/nvflinger/buffer_queue.h +++ b/src/core/hle/service/nvflinger/buffer_queue.h @@ -21,6 +21,7 @@ class KernelCore; namespace Service::NVFlinger { +constexpr u32 buffer_slots = 0x40; struct IGBPBuffer { u32_le magic; u32_le width; @@ -114,7 +115,7 @@ private: u64 layer_id; std::list<u32> free_buffers; - std::vector<Buffer> queue; + std::array<Buffer, buffer_slots> buffers; std::list<u32> queue_sequence; Kernel::EventPair buffer_wait_event; }; |