Remove FoV from headset info packet

This commit is contained in:
Patrick Nicolas
2026-09-29 19:22:33 +02:00
committed by xytovl
parent 3a9b40472e
commit 117027c390
6 changed files with 0 additions and 39 deletions
-5
View File
@@ -30,7 +30,6 @@
#include "util/u_logging.h"
#include "utils/method.h"
#include "xrt_cast.h"
#include <cstdint>
#include <stdio.h>
#include <openxr/openxr.h>
@@ -128,10 +127,6 @@ wivrn_hmd::wivrn_hmd(wivrn::wivrn_session * cnx,
hmd->views[1].display.w_pixels = eye_width;
hmd->views[1].display.h_pixels = eye_height;
hmd->views[1].rot = u_device_rotation_ident;
// FOV from headset info packet
hmd->distortion.fov[0] = xrt_cast(info.fov[0]);
hmd->distortion.fov[1] = xrt_cast(info.fov[1]);
}
xrt_result_t wivrn_hmd::update_inputs()
-8
View File
@@ -1232,14 +1232,6 @@ std::pair<bool, std::optional<std::string>> wivrn_session::validate_headset_info
// only allow connecting from the "same" headset
refuse |= prev_info.system_name != info.system_name;
for (uint32_t i = 0; i < 2; i++)
{
refuse |= prev_info.fov[i].angleDown != info.fov[i].angleDown;
refuse |= prev_info.fov[i].angleUp != info.fov[i].angleUp;
refuse |= prev_info.fov[i].angleRight != info.fov[i].angleRight;
refuse |= prev_info.fov[i].angleLeft != info.fov[i].angleLeft;
}
refuse |= prev_info.palm_pose != info.palm_pose;
refuse |= prev_info.user_presence != info.user_presence;
refuse |= prev_info.passthrough != info.passthrough;
-10
View File
@@ -26,7 +26,6 @@
*/
#include "application.h"
#include "openxr/openxr.h"
#include "sleep_inhibitor.h"
#include "util/u_trace_marker.h"
@@ -807,15 +806,6 @@ void on_headset_info_packet(const wivrn::from_headset::headset_info_packet & inf
wivrn_server_set_mic_channels(dbus_server, mic.num_channels);
wivrn_server_set_mic_sample_rate(dbus_server, mic.sample_rate);
builder = g_variant_builder_new(G_VARIANT_TYPE("a(dddd)"));
for (XrFovf fov: info.fov)
{
g_variant_builder_add(builder, "(dddd)", fov.angleLeft, fov.angleRight, fov.angleUp, fov.angleDown);
}
GVariant * value_field_of_view = g_variant_new("a(dddd)", builder);
g_variant_builder_unref(builder);
wivrn_server_set_field_of_view(dbus_server, value_field_of_view);
wivrn_server_set_hand_tracking(dbus_server, info.hand_tracking);
wivrn_server_set_eye_gaze(dbus_server, info.eye_gaze);
wivrn_server_set_face_tracking(dbus_server, info.face_tracking != wivrn::from_headset::face_type::none);