Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/dpu: use drm_rect_fp_to_int()

Use the drm_rect_fp_to_int() helper instead of using the hand-written
code.

Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/621476/
Link: https://lore.kernel.org/r/20241025-dpu-virtual-wide-v6-1-0310fd519765@linaro.org

+1 -6
+1 -6
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
··· 829 829 return -EINVAL; 830 830 } 831 831 832 - pipe_cfg->src_rect = new_plane_state->src; 833 - 834 832 /* state->src is 16.16, src_rect is not */ 835 - pipe_cfg->src_rect.x1 >>= 16; 836 - pipe_cfg->src_rect.x2 >>= 16; 837 - pipe_cfg->src_rect.y1 >>= 16; 838 - pipe_cfg->src_rect.y2 >>= 16; 833 + drm_rect_fp_to_int(&pipe_cfg->src_rect, &new_plane_state->src); 839 834 840 835 pipe_cfg->dst_rect = new_plane_state->dst; 841 836