aboutsummaryrefslogtreecommitdiffstats
path: root/exynos
diff options
context:
space:
mode:
authorTobias Jakobi2015-09-08 10:22:26 -0500
committerEmil Velikov2015-09-21 11:43:14 -0500
commita8dc2e75cfb2acecae7cb7aeefa20b9c92abd297 (patch)
tree556db909168028093cda9804ad2cf87f4a901e4f /exynos
parentcec65e2fcc8ddd3a2a094d446d49d7a7f52ff55d (diff)
downloadexternal-libdrm-a8dc2e75cfb2acecae7cb7aeefa20b9c92abd297.tar.gz
external-libdrm-a8dc2e75cfb2acecae7cb7aeefa20b9c92abd297.tar.xz
external-libdrm-a8dc2e75cfb2acecae7cb7aeefa20b9c92abd297.zip
exynos/fimg2d: fix empty buffer handling in g2d_flush()
Empty command buffers are no error, we just don't have anything to do for flushing then. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'exynos')
-rw-r--r--exynos/exynos_fimg2d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos/exynos_fimg2d.c b/exynos/exynos_fimg2d.c
index 24a06d0f..4a88e0c0 100644
--- a/exynos/exynos_fimg2d.c
+++ b/exynos/exynos_fimg2d.c
@@ -191,7 +191,7 @@ static int g2d_flush(struct g2d_context *ctx)
191 struct drm_exynos_g2d_set_cmdlist cmdlist = {0}; 191 struct drm_exynos_g2d_set_cmdlist cmdlist = {0};
192 192
193 if (ctx->cmd_nr == 0 && ctx->cmd_buf_nr == 0) 193 if (ctx->cmd_nr == 0 && ctx->cmd_buf_nr == 0)
194 return -1; 194 return 0;
195 195
196 if (ctx->cmdlist_nr >= G2D_MAX_CMD_LIST_NR) { 196 if (ctx->cmdlist_nr >= G2D_MAX_CMD_LIST_NR) {
197 fprintf(stderr, "Overflow cmdlist.\n"); 197 fprintf(stderr, "Overflow cmdlist.\n");