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>main
parent
cec65e2fcc
commit
a8dc2e75cf
|
@ -191,7 +191,7 @@ static int g2d_flush(struct g2d_context *ctx)
|
||||||
struct drm_exynos_g2d_set_cmdlist cmdlist = {0};
|
struct drm_exynos_g2d_set_cmdlist cmdlist = {0};
|
||||||
|
|
||||||
if (ctx->cmd_nr == 0 && ctx->cmd_buf_nr == 0)
|
if (ctx->cmd_nr == 0 && ctx->cmd_buf_nr == 0)
|
||||||
return -1;
|
return 0;
|
||||||
|
|
||||||
if (ctx->cmdlist_nr >= G2D_MAX_CMD_LIST_NR) {
|
if (ctx->cmdlist_nr >= G2D_MAX_CMD_LIST_NR) {
|
||||||
fprintf(stderr, "Overflow cmdlist.\n");
|
fprintf(stderr, "Overflow cmdlist.\n");
|
||||||
|
|
Loading…
Reference in New Issue