]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
drm/exynos: allow multiple layer updates per vsync for mixer
authorRahul Sharma <rahul.sharma@samsung.com>
Mon, 23 Jun 2014 05:32:23 +0000 (11:02 +0530)
committerInki Dae <daeinki@gmail.com>
Tue, 24 Jun 2014 14:44:30 +0000 (23:44 +0900)
Allowing only one layer update per vsync can cause issues
while there are update available for both layers. There is
a good amount of possibility to loose updates if we allow
single update per vsync.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c

index d35950121fc42b2fd10b7b70d991ce6d61a9130d..6773b03fd9210867ed92a293ba3cca542e386ee2 100644 (file)
@@ -511,13 +511,8 @@ static void vp_video_buffer(struct mixer_context *ctx, int win)
 static void mixer_layer_update(struct mixer_context *ctx)
 {
        struct mixer_resources *res = &ctx->mixer_res;
-       u32 val;
-
-       val = mixer_reg_read(res, MXR_CFG);
 
-       /* allow one update per vsync only */
-       if (!(val & MXR_CFG_LAYER_UPDATE_COUNT_MASK))
-               mixer_reg_writemask(res, MXR_CFG, ~0, MXR_CFG_LAYER_UPDATE);
+       mixer_reg_writemask(res, MXR_CFG, ~0, MXR_CFG_LAYER_UPDATE);
 }
 
 static void mixer_graph_buffer(struct mixer_context *ctx, int win)