Update Monado

This commit is contained in:
Patrick Nicolas
2024-06-02 23:36:53 +02:00
parent 27235d3ea7
commit eaf6efda72
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ FetchContent_Declare(implot URL https://github.com/epezent/implot/archive
# Server dependencies
FetchContent_Declare(monado
GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado
GIT_TAG 9f4f2541a672152c4d0255f48bf4298b8888cd63
GIT_TAG 95331593e23ddb78cc0f6b0d712fdc3234e1fdd2
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${CMAKE_CURRENT_LIST_DIR}/patches/monado/
)
+3 -3
View File
@@ -267,7 +267,7 @@ static bool comp_wivrn_check_ready(struct comp_target * ct)
{
const auto & slot = cn->c->base.slot;
if (slot.layer_count > 1 or
slot.layers[0].data.type != XRT_LAYER_STEREO_PROJECTION)
slot.layers[0].data.type != XRT_LAYER_PROJECTION)
{
// We are not in the trivial single stereo projection layer
// reprojection must be done
@@ -545,8 +545,8 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
view_info.pose[eye] = xrt_cast(slot.poses[eye]);
if (cn->c->debug.atw_off)
{
const auto & stereo = slot.layers[0].data.stereo;
view_info.pose[eye] = xrt_cast(eye ? stereo.r.pose : stereo.l.pose);
const auto & proj = slot.layers[0].data.proj;
view_info.pose[eye] = xrt_cast(proj.v[eye].pose);
}
else
{
+1
View File
@@ -226,6 +226,7 @@ wivrn_hmd::wivrn_hmd(std::shared_ptr<xrt::drivers::wivrn::wivrn_session> cnx,
foveated_eye_height += foveated_eye_height % 2;
// Setup info.
hmd->view_count = 2;
hmd->blend_modes[0] = XRT_BLEND_MODE_OPAQUE;
hmd->blend_mode_count = 1;
hmd->distortion.models = XRT_DISTORTION_MODEL_COMPUTE;