summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-18 17:25:47 +0100
committerLiam <byteslice@airmail.cc>2024-02-18 17:25:52 +0100
commit940a71422e18b6305556d0efc2588a90f156ae04 (patch)
tree4750b942a3c0b56f09128721a70ab8521f5b1df4 /src/core/hle/service/vi
parentservice: vi: Implement ListDisplayMode (diff)
downloadyuzu-940a71422e18b6305556d0efc2588a90f156ae04.tar
yuzu-940a71422e18b6305556d0efc2588a90f156ae04.tar.gz
yuzu-940a71422e18b6305556d0efc2588a90f156ae04.tar.bz2
yuzu-940a71422e18b6305556d0efc2588a90f156ae04.tar.lz
yuzu-940a71422e18b6305556d0efc2588a90f156ae04.tar.xz
yuzu-940a71422e18b6305556d0efc2588a90f156ae04.tar.zst
yuzu-940a71422e18b6305556d0efc2588a90f156ae04.zip
Diffstat (limited to 'src/core/hle/service/vi')
-rw-r--r--src/core/hle/service/vi/container.cpp5
-rw-r--r--src/core/hle/service/vi/container.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/vi/container.cpp b/src/core/hle/service/vi/container.cpp
index 2d6b9cbfe..310a207f1 100644
--- a/src/core/hle/service/vi/container.cpp
+++ b/src/core/hle/service/vi/container.cpp
@@ -218,10 +218,11 @@ void Container::DestroyBufferQueueLocked(Layer* layer) {
layer->GetProducerBinderId());
}
-void Container::ComposeOnDisplay(s32* out_swap_interval, f32* out_compose_speed_scale,
+bool Container::ComposeOnDisplay(s32* out_swap_interval, f32* out_compose_speed_scale,
u64 display_id) {
std::scoped_lock lk{m_lock};
- m_surface_flinger->ComposeDisplay(out_swap_interval, out_compose_speed_scale, display_id);
+ return m_surface_flinger->ComposeDisplay(out_swap_interval, out_compose_speed_scale,
+ display_id);
}
} // namespace Service::VI
diff --git a/src/core/hle/service/vi/container.h b/src/core/hle/service/vi/container.h
index 155c4c629..cd0d2ca86 100644
--- a/src/core/hle/service/vi/container.h
+++ b/src/core/hle/service/vi/container.h
@@ -76,7 +76,7 @@ private:
void DestroyBufferQueueLocked(Layer* layer);
public:
- void ComposeOnDisplay(s32* out_swap_interval, f32* out_compose_speed_scale, u64 display_id);
+ bool ComposeOnDisplay(s32* out_swap_interval, f32* out_compose_speed_scale, u64 display_id);
private:
std::mutex m_lock{};