summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Chen <vonchenplus@gmail.com>2021-12-28 11:39:11 +0100
committerFeng Chen <vonchenplus@gmail.com>2021-12-28 11:51:03 +0100
commit88e1e7f14bd830af43f0b7279fe5af78046dcfee (patch)
tree59bd7d134c5680b5ce7ea9df415e52e90eab6aa7
parentMerge pull request #7622 from ameerj/vk-rescale-invalid-ptr (diff)
downloadyuzu-88e1e7f14bd830af43f0b7279fe5af78046dcfee.tar
yuzu-88e1e7f14bd830af43f0b7279fe5af78046dcfee.tar.gz
yuzu-88e1e7f14bd830af43f0b7279fe5af78046dcfee.tar.bz2
yuzu-88e1e7f14bd830af43f0b7279fe5af78046dcfee.tar.lz
yuzu-88e1e7f14bd830af43f0b7279fe5af78046dcfee.tar.xz
yuzu-88e1e7f14bd830af43f0b7279fe5af78046dcfee.tar.zst
yuzu-88e1e7f14bd830af43f0b7279fe5af78046dcfee.zip
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.cpp4
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp
index b4c3a6099..5fead6d1b 100644
--- a/src/core/hle/service/nvflinger/buffer_queue.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue.cpp
@@ -186,6 +186,10 @@ u32 BufferQueue::Query(QueryType type) {
case QueryType::NativeWindowWidth:
case QueryType::NativeWindowHeight:
break;
+ case QueryType::NativeWindowMinUndequeuedBuffers:
+ return 0;
+ case QueryType::NativeWindowConsumerUsageBits:
+ return 0;
}
UNIMPLEMENTED_MSG("Unimplemented query type={}", type);
return 0;
diff --git a/src/core/hle/service/nvflinger/buffer_queue.h b/src/core/hle/service/nvflinger/buffer_queue.h
index 7b7baeaea..f2a579133 100644
--- a/src/core/hle/service/nvflinger/buffer_queue.h
+++ b/src/core/hle/service/nvflinger/buffer_queue.h
@@ -57,6 +57,11 @@ public:
NativeWindowWidth = 0,
NativeWindowHeight = 1,
NativeWindowFormat = 2,
+ /// The minimum number of buffers that must remain un-dequeued after a buffer has been
+ /// queued
+ NativeWindowMinUndequeuedBuffers = 3,
+ /// The consumer gralloc usage bits currently set by the consumer
+ NativeWindowConsumerUsageBits = 10,
};
explicit BufferQueue(Kernel::KernelCore& kernel, u32 id_, u64 layer_id_,