aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvflinger/buffer_queue.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-12 11:44:48 -0400
committerGitHub <noreply@github.com>2020-04-12 11:44:48 -0400
commita9f866264dd80aa7115e54404093a7666c425c55 (patch)
tree594a37578141e3db010dc02ba90c5c4776003622 /src/core/hle/service/nvflinger/buffer_queue.cpp
parent3d91dbb21d8fec44ca692a7e9219daa8b3521e08 (diff)
parent8c0ba9c6fe3e311e3acc476f4925eae0b1aaa09b (diff)
Merge pull request #3606 from ReinUsesLisp/nvflinger
service/vi: Partially implement BufferQueue disconnect
Diffstat (limited to 'src/core/hle/service/nvflinger/buffer_queue.cpp')
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp
index 9bcafa5fc..f1e3d832a 100644
--- a/src/core/hle/service/nvflinger/buffer_queue.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue.cpp
@@ -126,6 +126,13 @@ void BufferQueue::ReleaseBuffer(u32 slot) {
buffer_wait_event.writable->Signal();
}
+void BufferQueue::Disconnect() {
+ queue.clear();
+ queue_sequence.clear();
+ id = 1;
+ layer_id = 1;
+}
+
u32 BufferQueue::Query(QueryType type) {
LOG_WARNING(Service, "(STUBBED) called type={}", static_cast<u32>(type));