mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
radeonsi: fix crashing performance counters (division by zero)
Fixes: e2b9329f17 "radeonsi: move remaining perfcounter code into si_perfcounter.c"
This commit is contained in:
parent
a03ecbaeec
commit
742d6cdb42
1 changed files with 1 additions and 1 deletions
|
|
@ -1333,7 +1333,7 @@ void si_init_perfcounters(struct si_screen *screen)
|
|||
for (i = 0; i < num_blocks; ++i) {
|
||||
struct si_pc_block *block = &pc->blocks[i];
|
||||
block->b = &blocks[i];
|
||||
block->num_instances = block->b->instances;
|
||||
block->num_instances = MAX2(1, block->b->instances);
|
||||
|
||||
if (!strcmp(block->b->b->name, "CB") ||
|
||||
!strcmp(block->b->b->name, "DB"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue