diff options
author | Eric Anholt <eric@anholt.net> | 2010-11-16 09:25:56 +0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-12-16 16:47:03 -0800 |
commit | 19b412b37cd3474200a2c6fe0cdb11af0c0f98cb (patch) | |
tree | 0faed0a35f3ad5cc306d323dd8e5d14a76ccf8fb /tools/intel_gpu_top.c | |
parent | 292ae4538a922f93eec1958b6073e83baab4e1c7 (diff) |
intel_gpu_top: Print stats regs on Ironlake as well.
Diffstat (limited to 'tools/intel_gpu_top.c')
-rw-r--r-- | tools/intel_gpu_top.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c index b5c158e0..fb2cd4af 100644 --- a/tools/intel_gpu_top.c +++ b/tools/intel_gpu_top.c @@ -38,6 +38,8 @@ #define MAX_NUM_TOP_BITS 100 +#define HAS_STATS_REGS(devid) IS_965(devid) + struct top_bit { struct instdone_bit *bit; int count; @@ -398,7 +400,7 @@ int main(int argc, char **argv) usleep(1000000 / SAMPLES_PER_SEC); } - if (IS_GEN4(devid) || IS_GEN6(devid)) { + if (HAS_STATS_REGS(devid)) { for (i = 0; i < STATS_COUNT; i++) { uint32_t stats_high, stats_low, stats_high_2; @@ -446,8 +448,7 @@ int main(int argc, char **argv) printf("%*s", PERCENTAGE_BAR_END, ""); } - if (i < STATS_COUNT && - (IS_GEN4(devid) || IS_GEN6(devid))) { + if (i < STATS_COUNT && HAS_STATS_REGS(devid)) { printf("%13s: %llu (%lld/sec)", stats_reg_names[i], stats[i], |