c/render: Remove unused disable_atw argument

This commit is contained in:
Jakob Bornecrantz 2021-10-01 21:10:29 +01:00
parent 56f4466ffa
commit ccc4bbcf86
3 changed files with 12 additions and 21 deletions

View file

@ -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];

View file

@ -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);
/*

View file

@ -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];