drm/mediatek: ovl: Fix misaligned layer source size on AFBC mode
This MR fixes an issue in the Mediatek Display Overlay due to bad alignment of the AFBC buffer, which is causing vblanks timeouts constantly.
drm/mediatek: ovl: Fix misaligned layer source size on AFBC mode
In AFBC mode, OVL_SRC_SIZE must be block aligned. Due to this limitation
of the AFBC format, OVL_CLIP is used to adjust the output size of the
layer.
Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
Note that commit fac8dcdf Author: Sjoerd Simons sjoerd@collabora.com Date: Tue Mar 4 21:03:25 2025 +0100
HACK: MTK: Disable AFBC support
disables AFBC support. In order to test this patch, AFBC should be re-enabled and the above commit reverted.
Edited by Ariel D'Alessandro