Commit 8e9cc6a1 authored by Inki Dae's avatar Inki Dae Committed by Dave Airlie

drm/exynos: fixed overlay updating time at page flip.

buffer addess is set to shadow register and then applied to
real register at vsync front porch time.
Signed-off-by: default avatarJoonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 19c8b834
...@@ -78,7 +78,7 @@ struct exynos_drm_crtc { ...@@ -78,7 +78,7 @@ struct exynos_drm_crtc {
unsigned int pipe; unsigned int pipe;
}; };
void exynos_drm_crtc_apply(struct drm_crtc *crtc) static void exynos_drm_crtc_apply(struct drm_crtc *crtc)
{ {
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
struct exynos_drm_overlay *overlay = &exynos_crtc->overlay; struct exynos_drm_overlay *overlay = &exynos_crtc->overlay;
...@@ -279,6 +279,8 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc, ...@@ -279,6 +279,8 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
goto out; goto out;
} }
exynos_drm_crtc_apply(crtc);
dev_priv->pageflip_event = true; dev_priv->pageflip_event = true;
} }
out: out:
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
struct exynos_drm_overlay *get_exynos_drm_overlay(struct drm_device *dev, struct exynos_drm_overlay *get_exynos_drm_overlay(struct drm_device *dev,
struct drm_crtc *crtc); struct drm_crtc *crtc);
void exynos_drm_crtc_apply(struct drm_crtc *crtc);
int exynos_drm_crtc_create(struct drm_device *dev, unsigned int nr); int exynos_drm_crtc_create(struct drm_device *dev, unsigned int nr);
int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int crtc); int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int crtc);
void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int crtc); void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int crtc);
......
...@@ -500,8 +500,6 @@ static void fimd_finish_pageflip(struct drm_device *drm_dev, int crtc) ...@@ -500,8 +500,6 @@ static void fimd_finish_pageflip(struct drm_device *drm_dev, int crtc)
spin_lock_irqsave(&drm_dev->event_lock, flags); spin_lock_irqsave(&drm_dev->event_lock, flags);
exynos_drm_crtc_apply(dev_priv->crtc[crtc]);
list_for_each_entry_safe(e, t, &dev_priv->pageflip_event_list, list_for_each_entry_safe(e, t, &dev_priv->pageflip_event_list,
base.link) { base.link) {
do_gettimeofday(&now); do_gettimeofday(&now);
......
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