From 7130c43d96de2e2f0fe385b426d546ecbfe72b69 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 9 Feb 2018 21:58:08 -0800 Subject: [PATCH] iris: decode batches if they fail to submit --- src/gallium/drivers/iris/iris_batch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index 59df0ebe942..0734a2a3d41 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -581,11 +581,12 @@ _iris_batch_flush_fence(struct iris_batch *batch, } int ret = submit_batch(batch, in_fence_fd, out_fence_fd); - if (ret < 0) - return ret; //throttle(iris); + if (ret < 0) + return ret; + if (unlikely(INTEL_DEBUG & DEBUG_BATCH)) decode_batch(batch); -- 2.30.2