On Fr, 2022-12-02 at 16:43 +0100, Lucas Stach wrote: > Am Dienstag, dem 08.11.2022 um 15:14 +0100 schrieb Philipp Zabel: > > ipu_src_rect_width() was introduced to support odd screen resolutions > > such as 1366x768 by internally rounding up primary plane width to a > > multiple of 8 and compensating with reduced horizontal blanking. > > This also caused overlay plane width to be rounded up, which was not > > intended. Fix overlay plane width by limiting the rounding up to the > > primary plane. > > > > drm_rect_width(&new_state->src) >> 16 is the same value as > > drm_rect_width(dst) because there is no plane scaling support. > > Heh, I stumbled at exactly this point while reading the code changes > and was about to suggest it be added to the changelog until I realized > that it's already here. :) > > > > Fixes: 94dfec48fca7 ("drm/imx: Add 8 pixel alignment fix") > > Signed-off-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> > > Reviewed-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx> Thank you, applied to drm-misc-next. [...] > There's a opportunity for a follow-up cleanup here: > "drm_rect_height(&new_state->src) >> 16" is used multiple times in this > function, which could be replaced by using this local height variable > instead. Will create a follow-up patch. regards Philipp