[COMMON] g2d: remove BITBLT_START_REG on commands
authorhyesoo.yu <hyesoo.yu@samsung.com>
Thu, 28 Dec 2017 01:45:25 +0000 (10:45 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:15 +0000 (20:22 +0300)
The BITBLT_START_REG is not necessary to run the job
manager

Change-Id: I538a9725107123c504612912d29f5a9664cbe291
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
drivers/gpu/exynos/g2d/g2d_command.c

index 518ef372128f0e0c231cf61049a0cfb6d05dc87f..567a6d31b56fcaec8f8648183080b9783e73c77e 100644 (file)
@@ -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