summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.cpp4
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.h5
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp3
-rw-r--r--src/video_core/gpu.cpp1
4 files changed, 9 insertions, 4 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) {
186 case QueryType::NativeWindowWidth: 186 case QueryType::NativeWindowWidth:
187 case QueryType::NativeWindowHeight: 187 case QueryType::NativeWindowHeight:
188 break; 188 break;
189 case QueryType::NativeWindowMinUndequeuedBuffers:
190 return 0;
191 case QueryType::NativeWindowConsumerUsageBits:
192 return 0;
189 } 193 }
190 UNIMPLEMENTED_MSG("Unimplemented query type={}", type); 194 UNIMPLEMENTED_MSG("Unimplemented query type={}", type);
191 return 0; 195 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:
57 NativeWindowWidth = 0, 57 NativeWindowWidth = 0,
58 NativeWindowHeight = 1, 58 NativeWindowHeight = 1,
59 NativeWindowFormat = 2, 59 NativeWindowFormat = 2,
60 /// The minimum number of buffers that must remain un-dequeued after a buffer has been
61 /// queued
62 NativeWindowMinUndequeuedBuffers = 3,
63 /// The consumer gralloc usage bits currently set by the consumer
64 NativeWindowConsumerUsageBits = 10,
60 }; 65 };
61 66
62 explicit BufferQueue(Kernel::KernelCore& kernel, u32 id_, u64 layer_id_, 67 explicit BufferQueue(Kernel::KernelCore& kernel, u32 id_, u64 layer_id_,
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index a22811ec1..01e69de30 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -100,9 +100,6 @@ std::optional<u64> NVFlinger::OpenDisplay(std::string_view name) {
100 100
101 LOG_DEBUG(Service, "Opening \"{}\" display", name); 101 LOG_DEBUG(Service, "Opening \"{}\" display", name);
102 102
103 // TODO(Subv): Currently we only support the Default display.
104 ASSERT(name == "Default");
105
106 const auto itr = 103 const auto itr =
107 std::find_if(displays.begin(), displays.end(), 104 std::find_if(displays.begin(), displays.end(),
108 [&](const VI::Display& display) { return display.GetName() == name; }); 105 [&](const VI::Display& display) { return display.GetName() == name; });
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 44fda27ef..705765c99 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -17,7 +17,6 @@
17#include "core/frontend/emu_window.h" 17#include "core/frontend/emu_window.h"
18#include "core/hardware_interrupt_manager.h" 18#include "core/hardware_interrupt_manager.h"
19#include "core/hle/service/nvdrv/nvdata.h" 19#include "core/hle/service/nvdrv/nvdata.h"
20#include "core/hle/service/nvflinger/buffer_queue.h"
21#include "core/perf_stats.h" 20#include "core/perf_stats.h"
22#include "video_core/cdma_pusher.h" 21#include "video_core/cdma_pusher.h"
23#include "video_core/dma_pusher.h" 22#include "video_core/dma_pusher.h"