From 533ba68dd778bbb8e5e5e52c57ee32f84fa3e8b2 Mon Sep 17 00:00:00 2001 From: "hyesoo.yu" Date: Thu, 28 Dec 2017 10:45:25 +0900 Subject: [PATCH] [COMMON] g2d: remove BITBLT_START_REG on commands The BITBLT_START_REG is not necessary to run the job manager Change-Id: I538a9725107123c504612912d29f5a9664cbe291 Signed-off-by: hyesoo.yu --- drivers/gpu/exynos/g2d/g2d_command.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/exynos/g2d/g2d_command.c b/drivers/gpu/exynos/g2d/g2d_command.c index 518ef372128f..567a6d31b56f 100644 --- a/drivers/gpu/exynos/g2d/g2d_command.c +++ b/drivers/gpu/exynos/g2d/g2d_command.c @@ -140,17 +140,13 @@ void g2d_set_start_commands(struct g2d_task *task) * Number of commands should be multiple of 8. * If it is not, then pad dummy commands with no side effect. */ - n = (8 - ((task->cmd_count + 1) & 7)) & 7; + n = (8 - (task->cmd_count & 7)) & 7; while (n-- > 0) { regs[task->cmd_count].offset = G2D_LAYER_UPDATE_REG; regs[task->cmd_count].value = regs[TASK_REG_LAYER_UPDATE].value; task->cmd_count++; } - - regs[task->cmd_count].offset = G2D_BITBLT_START_REG; - regs[task->cmd_count].value = 1; - task->cmd_count++; } #endif -- 2.20.1