iris: decode batches if they fail to submit
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Feb 2018 05:58:08 +0000 (21:58 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:05 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_batch.c

index 59df0ebe942e8e277983cf37520821e406597822..0734a2a3d41565ca5f402fa32b723a8c74729aa5 100644 (file)
@@ -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);