The open source OpenXR runtime

d/wmr: Enable scanline timewarp for Samsung Odyssey series headsets

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2620>

hare_ware 46c9b6be 37042101

+12
+12
src/xrt/drivers/wmr/wmr_hmd.c
··· 1947 1947 wh->base.compute_distortion = compute_distortion_wmr; 1948 1948 u_distortion_mesh_fill_in_compute(&wh->base); 1949 1949 1950 + // Set HMD Scanout direction and time 1951 + if (wh->hmd_desc->hmd_type == WMR_HEADSET_SAMSUNG_800ZAA || 1952 + wh->hmd_desc->hmd_type == WMR_HEADSET_SAMSUNG_XE700X3AI) { 1953 + 1954 + wh->base.hmd->screens[0].scanout_direction = XRT_SCANOUT_DIRECTION_TOP_TO_BOTTOM; 1955 + wh->base.hmd->screens[0].scanout_time_ns = 1956 + wh->base.hmd->screens[0].nominal_frame_interval_ns * 1600.0 / 1624.0; 1957 + } else { 1958 + wh->base.hmd->screens[0].scanout_direction = XRT_SCANOUT_DIRECTION_NONE; 1959 + wh->base.hmd->screens[0].scanout_time_ns = 0; 1960 + } 1961 + 1950 1962 // Set initial HMD screen power state. 1951 1963 wh->hmd_screen_enable = true; 1952 1964