diff options
author | Kenneth Graunke <[email protected]> | 2014-12-02 23:44:30 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-01-03 01:45:15 -0800 |
commit | 916516b251071ad2b64ef6201f95cebec5010af6 (patch) | |
tree | 46cc8d953e8513ebd74d3c1a2bd7cc39dde7f277 /src/mesa/drivers | |
parent | 408e298942ffb03c00e05dce2569c291df6bec49 (diff) |
i965: Make INTEL_DEBUG=state ignore state flags with a count of 1.
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 <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_upload.c | 6 |
1 files 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 a579781a851..7a25ef541bf 100644 --- a/src/mesa/drivers/dri/i965/brw_state_upload.c +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c @@ -542,8 +542,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); + } } } |