|
@@ -117,12 +117,9 @@ static int exynos_drm_crtc_mode_set_commit(struct drm_crtc *crtc, int x, int y,
|
|
struct drm_framebuffer *old_fb)
|
|
struct drm_framebuffer *old_fb)
|
|
{
|
|
{
|
|
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
|
|
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
|
|
- struct exynos_drm_manager *manager = exynos_crtc->manager;
|
|
|
|
- struct exynos_drm_plane *exynos_plane = to_exynos_plane(crtc->primary);
|
|
|
|
struct drm_framebuffer *fb = crtc->primary->fb;
|
|
struct drm_framebuffer *fb = crtc->primary->fb;
|
|
unsigned int crtc_w;
|
|
unsigned int crtc_w;
|
|
unsigned int crtc_h;
|
|
unsigned int crtc_h;
|
|
- int ret;
|
|
|
|
|
|
|
|
/* when framebuffer changing is requested, crtc's dpms should be on */
|
|
/* when framebuffer changing is requested, crtc's dpms should be on */
|
|
if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) {
|
|
if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) {
|
|
@@ -133,18 +130,8 @@ static int exynos_drm_crtc_mode_set_commit(struct drm_crtc *crtc, int x, int y,
|
|
crtc_w = fb->width - x;
|
|
crtc_w = fb->width - x;
|
|
crtc_h = fb->height - y;
|
|
crtc_h = fb->height - y;
|
|
|
|
|
|
- ret = exynos_plane_mode_set(crtc->primary, crtc, fb, 0, 0,
|
|
|
|
- crtc_w, crtc_h, x, y, crtc_w, crtc_h);
|
|
|
|
- if (ret)
|
|
|
|
- return ret;
|
|
|
|
-
|
|
|
|
- if (manager->ops->win_commit)
|
|
|
|
- manager->ops->win_commit(manager, exynos_plane->zpos);
|
|
|
|
-
|
|
|
|
- if (manager->ops->commit)
|
|
|
|
- manager->ops->commit(manager);
|
|
|
|
-
|
|
|
|
- return 0;
|
|
|
|
|
|
+ return exynos_update_plane(crtc->primary, crtc, fb, 0, 0,
|
|
|
|
+ crtc_w, crtc_h, x, y, crtc_w, crtc_h);
|
|
}
|
|
}
|
|
|
|
|
|
static int exynos_drm_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
|
|
static int exynos_drm_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
|