mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/i915/display: Handle odd position for planar formats in selective fetch
Since Lunarlake there is no restriction planar planes has to be even positions. Due to this we may end up having odd offset for UV-plane in selective fetch configuration. Add handling for this case into selective fetch configuration. Bspec: 68927 Suggested-by: Vidya Srinivas <vidya.srinivas@intel.com> Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Vidya Srinivas <vidya.srinivas@intel.com> Link: https://patch.msgid.link/20260512080022.2527094-1-jouni.hogander@intel.com
This commit is contained in:
parent
35485ac56d
commit
3638d90b23
|
|
@ -1532,7 +1532,7 @@ static void icl_plane_update_sel_fetch_noarm(struct intel_dsb *dsb,
|
|||
if (!color_plane)
|
||||
y = plane_state->view.color_plane[color_plane].y + clip->y1;
|
||||
else
|
||||
y = plane_state->view.color_plane[color_plane].y + clip->y1 / 2;
|
||||
y = plane_state->view.color_plane[color_plane].y + DIV_ROUND_UP(clip->y1, 2);
|
||||
|
||||
val = y << 16 | x;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user