From: Kenneth Graunke Date: Sat, 23 Jun 2018 19:31:17 +0000 (-0700) Subject: iris: colorize batchbuffer failures to make them stand out X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aacbcbbf47232403103515ce39f66219992a21f9;p=mesa.git iris: colorize batchbuffer failures to make them stand out --- 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 }