From f3150e9ecd1913a24fe85520c029c0425b210e66 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 9 Feb 2018 16:45:04 -0800 Subject: [PATCH] iris: warn if execbuf fails --- src/gallium/drivers/iris/iris_batch.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index ff005bb7d5f..ce8b8e2ce6c 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -508,8 +508,12 @@ submit_batch(struct iris_batch *batch, int in_fence_fd, int *out_fence_fd) #if 1 int ret = drm_ioctl(batch->screen->fd, cmd, &execbuf); - if (ret != 0) + if (ret != 0) { ret = -errno; + DBG("execbuf FAILED: errno = %d\n", -ret); + } else { + DBG("execbuf succeeded\n"); + } #else int ret = 0; fprintf(stderr, "execbuf disabled for now\n"); -- 2.30.2