mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm/rockchip: vop2: add more debug message for afbc data
Afbc format data must align as 64 pixel when enable xmirror, rotate_90 or rotate_270, otherwise will display black screen and trigger post buffer empty. Signed-off-by: Huang Jiachai <hjc@rock-chips.com> Change-Id: Ide5c6f667028d188eebf1ae86dcb31c57eb9ebca
This commit is contained in:
committed by
Sandy Huang
parent
deabd31d51
commit
04d2305960
@@ -2556,6 +2556,11 @@ static void vop2_plane_atomic_update(struct drm_plane *plane, struct drm_plane_s
|
||||
* with WIN_VIR_STRIDE.
|
||||
*/
|
||||
stride = (fb->pitches[0] << 3) / bpp;
|
||||
if ((stride & 0x3f) &&
|
||||
(vpstate->xmirror_en || vpstate->rotate_90_en || vpstate->rotate_270_en))
|
||||
DRM_ERROR("%s stride[%d] must align as 64 pixel when enable xmirror/rotate_90/rotate_270[0x%x]\n",
|
||||
win->name, stride, pstate->rotation);
|
||||
|
||||
rb_swap = vop2_afbc_rb_swap(fb->format->format);
|
||||
uv_swap = vop2_afbc_uv_swap(fb->format->format);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user