Commit b345ae72 authored by Guido Gunther's avatar Guido Gunther
Browse files

Revert "drm/mxsfb: Add support for live pixel format change"

This reverts commit 81588e44.
parent ea127984
......@@ -397,7 +397,6 @@ void mxsfb_plane_atomic_update(struct mxsfb_drm_private *mxsfb,
struct drm_crtc *crtc = &pipe->crtc;
struct drm_plane_state *new_state = pipe->plane.state;
struct drm_framebuffer *fb = pipe->plane.state->fb;
struct drm_framebuffer *old_fb = state->fb;
struct drm_pending_vblank_event *event;
u32 fb_addr, src_off, src_w, stride, cpp = 0;
......@@ -414,7 +413,7 @@ void mxsfb_plane_atomic_update(struct mxsfb_drm_private *mxsfb,
}
spin_unlock_irq(&crtc->dev->event_lock);
if (!fb || !old_fb)
if (!fb)
return;
fb_addr = mxsfb_get_fb_paddr(mxsfb);
......@@ -437,17 +436,4 @@ void mxsfb_plane_atomic_update(struct mxsfb_drm_private *mxsfb,
src_w = new_state->src_w >> 16;
mxsfb_set_fb_hcrop(mxsfb, src_w, stride);
}
if (old_fb->format->format != fb->format->format) {
struct drm_format_name_buf old_fmt_buf;
struct drm_format_name_buf new_fmt_buf;
DRM_DEV_DEBUG_DRIVER(crtc->dev->dev,
"Switching pixel format: %s -> %s\n",
drm_get_format_name(old_fb->format->format,
&old_fmt_buf),
drm_get_format_name(fb->format->format,
&new_fmt_buf));
mxsfb_set_pixel_fmt(mxsfb, true);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment