Even if it is a normal task, command list must
explicitly be stated in CAPTURE_IDX that it is not
a hwfc task.
Change-Id: Ic2d766d4bd5bf15b2e684e90e91d602f9c65176b
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
struct g2d_reg *regs = (struct g2d_reg *)page_address(task->cmd_page);
regs[task->cmd_count].offset = G2D_HWFC_CAPTURE_IDX_REG;
- regs[task->cmd_count].value =
- G2D_HWFC_CAPTURE_HWFC_JOB | task->job_id;
+ regs[task->cmd_count].value = IS_HWFC(task->flags) ?
+ G2D_HWFC_CAPTURE_HWFC_JOB : 0;
+ regs[task->cmd_count].value |= task->job_id;
+
task->cmd_count++;
}
g2d_set_taskctl_commands(task);
- if (IS_HWFC(task->flags))
- g2d_set_hwfc_commands(task);
+ g2d_set_hwfc_commands(task);
g2d_set_start_commands(task);
}