diff options
author | Tobias Jakobi <tjakobi@math.uni-bielefeld.de> | 2015-09-08 17:22:26 +0200 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-09-21 17:43:14 +0100 |
commit | a8dc2e75cfb2acecae7cb7aeefa20b9c92abd297 (patch) | |
tree | 556db909168028093cda9804ad2cf87f4a901e4f /exynos | |
parent | cec65e2fcc8ddd3a2a094d446d49d7a7f52ff55d (diff) | |
download | libdrm-a8dc2e75cfb2acecae7cb7aeefa20b9c92abd297.tar.gz libdrm-a8dc2e75cfb2acecae7cb7aeefa20b9c92abd297.tar.bz2 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.c | 2 |
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) struct drm_exynos_g2d_set_cmdlist cmdlist = {0}; if (ctx->cmd_nr == 0 && ctx->cmd_buf_nr == 0) - return -1; + return 0; if (ctx->cmdlist_nr >= G2D_MAX_CMD_LIST_NR) { fprintf(stderr, "Overflow cmdlist.\n"); |