Commit 50024444 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov
Browse files

drm/msm/dpu: use drm_rect_fp_to_int()

parent 26d841fd
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -829,13 +829,8 @@ static int dpu_plane_atomic_check(struct drm_plane *plane,
		return -EINVAL;
	}

	pipe_cfg->src_rect = new_plane_state->src;

	/* state->src is 16.16, src_rect is not */
	pipe_cfg->src_rect.x1 >>= 16;
	pipe_cfg->src_rect.x2 >>= 16;
	pipe_cfg->src_rect.y1 >>= 16;
	pipe_cfg->src_rect.y2 >>= 16;
	drm_rect_fp_to_int(&pipe_cfg->src_rect, &new_plane_state->src);

	pipe_cfg->dst_rect = new_plane_state->dst;