diff options
author | Kenneth Graunke <[email protected]> | 2018-06-23 12:31:17 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:07 -0800 |
commit | aacbcbbf47232403103515ce39f66219992a21f9 (patch) | |
tree | e8329568885728966c19463f3e5bd88700c4f1ea /src/gallium/drivers/iris/iris_batch.c | |
parent | 8e2b71b190402c5fdb91cf3f326885fc7e2fa16f (diff) |
iris: colorize batchbuffer failures to make them stand out
Diffstat (limited to 'src/gallium/drivers/iris/iris_batch.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_batch.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index a88bc65e9ba..aaf2e04f049 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -463,8 +463,9 @@ _iris_batch_flush_fence(struct iris_batch *batch, } } else { #ifdef DEBUG - fprintf(stderr, "iris: Failed to submit batchbuffer: %s\n", - strerror(-ret)); + const bool color = INTEL_DEBUG & DEBUG_COLOR; + fprintf(stderr, "%siris: Failed to submit batchbuffer: %-80s%s\n", + color ? "\e[1;41m" : "", strerror(-ret), color ? "\e[0m" : ""); abort(); #endif } |