diff options
author | Nicolai Hähnle <[email protected]> | 2015-11-25 12:32:23 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2015-11-26 10:57:43 +0100 |
commit | 80a16dece614ef3763e2817d10a45462367af8b2 (patch) | |
tree | 7a3f11c6dfd8e7c4011d30bccfaccd7908410f06 /src/gallium/drivers/radeonsi | |
parent | ca976e6900dc8ff457ed9dba661d037c616abc59 (diff) |
radeon: delay the generation of driver query names until first use
This shaves a bit more time off the startup of programs that don't
actually use performance counters.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_perfcounter.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gallium/drivers/radeonsi/si_perfcounter.c b/src/gallium/drivers/radeonsi/si_perfcounter.c index f5e479bc549..a0ddff6c4e3 100644 --- a/src/gallium/drivers/radeonsi/si_perfcounter.c +++ b/src/gallium/drivers/radeonsi/si_perfcounter.c @@ -677,14 +677,13 @@ void si_init_perfcounters(struct si_screen *screen) instances = 2; } - if (!r600_perfcounters_add_block(&screen->b, pc, - block->b->name, - block->b->flags, - block->b->num_counters, - block->selectors, - instances, - block)) - goto error; + r600_perfcounters_add_block(&screen->b, pc, + block->b->name, + block->b->flags, + block->b->num_counters, + block->selectors, + instances, + block); } screen->b.perfcounters = pc; |