Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -916,7 +916,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
|||||||
int32_t max_height = 0;
|
int32_t max_height = 0;
|
||||||
for (size_t i = 0; i < view_count; ++i)
|
for (size_t i = 0; i < view_count; ++i)
|
||||||
{
|
{
|
||||||
extents[i] = defoveator->defoveated_size(foveation[i]);
|
extents[i] = stream_defoveator::defoveated_size(foveation[i]);
|
||||||
max_width = std::max(max_width, extents[i].width);
|
max_width = std::max(max_width, extents[i].width);
|
||||||
max_height = std::max(max_height, extents[i].height);
|
max_height = std::max(max_height, extents[i].height);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -443,7 +443,7 @@ static uint16_t count_pixels(const std::vector<uint16_t> & param)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const
|
XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view)
|
||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
count_pixels(view.x),
|
count_pixels(view.x),
|
||||||
|
|||||||
@@ -87,5 +87,5 @@ public:
|
|||||||
const std::array<input, 2> & inputs,
|
const std::array<input, 2> & inputs,
|
||||||
int destination);
|
int destination);
|
||||||
|
|
||||||
XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &) const;
|
static XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -258,8 +258,8 @@ modules:
|
|||||||
- -Ddocbook_docs=disabled
|
- -Ddocbook_docs=disabled
|
||||||
sources:
|
sources:
|
||||||
- type: archive
|
- type: archive
|
||||||
url: https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.7.tar.xz
|
url: https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.8.tar.xz
|
||||||
sha256: 4be15202ec4184fce1ac15997ece5530d2be32fe9573875aeb10e3b573858748
|
sha256: 23420ef619dc2cb5aebad613f4823a2fa41c07e5a1d05628d40f6ec4b35bfddd
|
||||||
x-checker-data:
|
x-checker-data:
|
||||||
type: gnome
|
type: gnome
|
||||||
name: libnotify
|
name: libnotify
|
||||||
|
|||||||
Vendored
+1
-1
@@ -3,7 +3,7 @@ Description=OpenXR streaming server
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/wivrn-server --systemd
|
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/wivrn-server
|
||||||
CapabilityBoundingSet=CAP_SYS_NICE
|
CapabilityBoundingSet=CAP_SYS_NICE
|
||||||
AmbientCapabilities=CAP_SYS_NICE
|
AmbientCapabilities=CAP_SYS_NICE
|
||||||
LockPersonality=true
|
LockPersonality=true
|
||||||
|
|||||||
+2
-6
@@ -182,7 +182,6 @@ int control_pipe_fds[2];
|
|||||||
|
|
||||||
GMainLoop * main_loop;
|
GMainLoop * main_loop;
|
||||||
const AvahiPoll * poll_api;
|
const AvahiPoll * poll_api;
|
||||||
bool use_systemd;
|
|
||||||
|
|
||||||
guint server_watch;
|
guint server_watch;
|
||||||
guint server_kill_watch;
|
guint server_kill_watch;
|
||||||
@@ -775,11 +774,11 @@ void on_headset_info_packet(const wivrn::from_headset::headset_info_packet & inf
|
|||||||
void on_name_acquired(GDBusConnection * connection, const gchar * name, gpointer user_data)
|
void on_name_acquired(GDBusConnection * connection, const gchar * name, gpointer user_data)
|
||||||
{
|
{
|
||||||
#if WIVRN_USE_SYSTEMD
|
#if WIVRN_USE_SYSTEMD
|
||||||
if (use_systemd)
|
try
|
||||||
{
|
{
|
||||||
children = std::make_unique<systemd_units_manager>(connection, update_fsm);
|
children = std::make_unique<systemd_units_manager>(connection, update_fsm);
|
||||||
}
|
}
|
||||||
else
|
catch (...)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
children = std::make_unique<forked_children>(update_fsm);
|
children = std::make_unique<forked_children>(update_fsm);
|
||||||
@@ -977,9 +976,6 @@ int main(int argc, char * argv[])
|
|||||||
auto no_fork = app.add_flag("--no-fork")->description("disable fork to serve connection")->group("Debug");
|
auto no_fork = app.add_flag("--no-fork")->description("disable fork to serve connection")->group("Debug");
|
||||||
auto no_publish = app.add_flag("--no-publish-service")->description("disable publishing the service through avahi");
|
auto no_publish = app.add_flag("--no-publish-service")->description("disable publishing the service through avahi");
|
||||||
auto no_encrypt = app.add_flag("--no-encrypt")->description("disable encryption")->group("Debug");
|
auto no_encrypt = app.add_flag("--no-encrypt")->description("disable encryption")->group("Debug");
|
||||||
#if WIVRN_USE_SYSTEMD
|
|
||||||
app.add_flag("--systemd", use_systemd, "use systemd to launch user-configured application");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CLI11_PARSE(app, argc, argv);
|
CLI11_PARSE(app, argc, argv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user