From 4164ac178082d578695f6201796c8e925777b613 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 2 Mar 2023 09:20:14 +0100 Subject: [PATCH] update monado version --- CMakeLists.txt | 2 +- server/driver/wivrn_session.cpp | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index db05dc4d..dbe19bf1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,7 @@ FetchContent_Declare(tinygltf URL https://github.com/syoyo/tinygltf/archive/refs FetchContent_Declare(boostpfr URL https://github.com/boostorg/pfr/archive/refs/tags/2.0.3.tar.gz) FetchContent_Declare(monado GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado - GIT_TAG 559e1459349d813f6ebaa7ba327007f40b4e6ef1 + GIT_TAG 3c1880448e7d23c9ecebbd08a31394c5f3ee4713 ) diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index c268967a..fc49d30e 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -47,20 +47,19 @@ struct wivrn_comp_target_factory : public comp_target_factory fps(fps) {} - static bool detect(struct comp_target_factory * ctf, struct comp_compositor * c) + static bool detect(const struct comp_target_factory * ctf, struct comp_compositor * c) { return true; - } + } - static bool create_target(struct comp_target_factory *ctf, struct comp_compositor *c, struct comp_target **out_ct) - { - auto self = (wivrn_comp_target_factory*)ctf; - *out_ct = comp_target_wivrn_create(self->session, c, self->fps); - return true; - } + static bool create_target(const struct comp_target_factory * ctf, struct comp_compositor * c, struct comp_target ** out_ct) + { + auto self = (wivrn_comp_target_factory *)ctf; + *out_ct = comp_target_wivrn_create(self->session, c, self->fps); + return true; + } }; - xrt::drivers::wivrn::wivrn_session::wivrn_session(xrt::drivers::wivrn::TCP && tcp, in6_addr & address) : connection(std::move(tcp), address) {