ipc: Use new none distortion code

This commit is contained in:
Jakob Bornecrantz 2020-10-07 22:15:26 +01:00
parent 96046d1315
commit 813487c2f5

View file

@ -24,6 +24,7 @@
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_distortion_mesh.h"
#include "ipc_client.h"
#include "ipc_client_generated.h"
@ -177,8 +178,6 @@ ipc_client_hmd_create(struct ipc_connection *ipc_c,
// clang-foramt off
ich->base.hmd->blend_mode = XRT_BLEND_MODE_OPAQUE;
ich->base.hmd->distortion.models = XRT_DISTORTION_MODEL_NONE;
ich->base.hmd->distortion.preferred = XRT_DISTORTION_MODEL_NONE;
ich->base.hmd->views[0].display.w_pixels =
ipc_c->ism->hmd.views[0].display.w_pixels;
ich->base.hmd->views[0].display.h_pixels =
@ -191,6 +190,9 @@ ipc_client_hmd_create(struct ipc_connection *ipc_c,
ich->base.hmd->views[1].fov = ipc_c->ism->hmd.views[1].fov;
// clang-foramt on
// Distortion information, fills in xdev->compute_distortion().
u_distortion_mesh_set_none(&ich->base);
// Setup variable tracker.
u_var_add_root(ich, ich->base.str, true);
u_var_add_ro_u32(ich, &ich->device_id, "device_id");