mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-03 12:28:07 +00:00
c/render: Remove unused disable_atw argument
This commit is contained in:
parent
56f4466ffa
commit
ccc4bbcf86
src/xrt/compositor/render
|
@ -443,18 +443,16 @@ comp_rendering_compute_projection_timewarp(struct comp_rendering_compute *crc,
|
|||
*/
|
||||
|
||||
struct xrt_matrix_4x4 time_warp_matrix[2];
|
||||
comp_calc_time_warp_matrix( //
|
||||
&src_poses[0], //
|
||||
&src_fovs[0], //
|
||||
&new_poses[0], //
|
||||
&time_warp_matrix[0], //
|
||||
false); //
|
||||
comp_calc_time_warp_matrix( //
|
||||
&src_poses[1], //
|
||||
&src_fovs[1], //
|
||||
&new_poses[1], //
|
||||
&time_warp_matrix[1], //
|
||||
false); //
|
||||
comp_calc_time_warp_matrix( //
|
||||
&src_poses[0], //
|
||||
&src_fovs[0], //
|
||||
&new_poses[0], //
|
||||
&time_warp_matrix[0]); //
|
||||
comp_calc_time_warp_matrix( //
|
||||
&src_poses[1], //
|
||||
&src_fovs[1], //
|
||||
&new_poses[1], //
|
||||
&time_warp_matrix[1]); //
|
||||
|
||||
struct comp_ubo_compute_data *data = (struct comp_ubo_compute_data *)r->compute.ubo.mapped;
|
||||
data->views[0] = views[0];
|
||||
|
|
|
@ -56,8 +56,7 @@ void
|
|||
comp_calc_time_warp_matrix(const struct xrt_pose *src_pose,
|
||||
const struct xrt_fov *src_fov,
|
||||
const struct xrt_pose *new_pose,
|
||||
struct xrt_matrix_4x4 *matrix,
|
||||
bool disable_atw);
|
||||
struct xrt_matrix_4x4 *matrix);
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -74,8 +74,7 @@ void
|
|||
comp_calc_time_warp_matrix(const struct xrt_pose *src_pose,
|
||||
const struct xrt_fov *src_fov,
|
||||
const struct xrt_pose *new_pose,
|
||||
struct xrt_matrix_4x4 *matrix,
|
||||
bool disable_atw)
|
||||
struct xrt_matrix_4x4 *matrix)
|
||||
{
|
||||
// Src projection matrix.
|
||||
struct xrt_matrix_4x4_f64 src_proj;
|
||||
|
@ -101,11 +100,6 @@ comp_calc_time_warp_matrix(const struct xrt_pose *src_pose,
|
|||
struct xrt_matrix_4x4_f64 result;
|
||||
m_mat4_f64_multiply(&src_proj, &delta_rot_inv, &result);
|
||||
|
||||
// Reset if timewarp is off.
|
||||
if (disable_atw) {
|
||||
result = src_proj;
|
||||
}
|
||||
|
||||
// Convert from f64 to f32.
|
||||
for (int i = 0; i < 16; i++) {
|
||||
matrix->v[i] = result.v[i];
|
||||
|
|
Loading…
Reference in a new issue