The drm core doesn't explicitly disable a plane when format changes.
So add a check in the plane update functions if the new framebuffer
format has changed, and disable the plane for the format change.
Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Tested-by: Kuldeep Dave <kuldeepd@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
if (!plane->state->crtc || !plane->state->fb)
return;
+ if (old_state->fb &&
+ old_state->fb->format->format != plane->state->fb->format->format)
+ zynqmp_disp_plane_disable(plane);
+
ret = zynqmp_disp_plane_mode_set(plane, plane->state->fb,
plane->state->crtc_x,
plane->state->crtc_y,