projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e2b71b
)
iris: colorize batchbuffer failures to make them stand out
author
Kenneth Graunke
<kenneth@whitecape.org>
Sat, 23 Jun 2018 19:31:17 +0000
(12:31 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000
(10:26 -0800)
src/gallium/drivers/iris/iris_batch.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_batch.c
b/src/gallium/drivers/iris/iris_batch.c
index a88bc65e9bae6021d238b20017634ae929ce492a..aaf2e04f049b668ff2d0ab102f082dd1b096da80 100644
(file)
--- 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
}