[Mesa-dev] [PATCH] i965: Make INTEL_DEBUG=state ignore state flags with a count of 1.
Kenneth Graunke
kenneth at whitecape.org
Wed Dec 3 16:50:29 PST 2014
There are too many state flags to fit in one terminal screen, even with
a very tall terminal. Everything is flagged once, so a value of 1 means
that it hasn't ever happened again, and thus isn't terribly interesting.
Skipping those makes it easier to see the interesting values.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_state_upload.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c
index 2de9345..1879362 100644
--- a/src/mesa/drivers/dri/i965/brw_state_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_state_upload.c
@@ -539,8 +539,10 @@ static void
brw_print_dirty_count(struct dirty_bit_map *bit_map)
{
for (int i = 0; bit_map[i].bit != 0; i++) {
- fprintf(stderr, "0x%016lx: %12d (%s)\n",
- bit_map[i].bit, bit_map[i].count, bit_map[i].name);
+ if (bit_map[i].count > 1) {
+ fprintf(stderr, "0x%016lx: %12d (%s)\n",
+ bit_map[i].bit, bit_map[i].count, bit_map[i].name);
+ }
}
}
--
2.1.3
More information about the mesa-dev
mailing list