mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
radeonsi: fix crashing performance counters (division by zero)
Fixes:e2b9329f17"radeonsi: move remaining perfcounter code into si_perfcounter.c" (cherry picked from commit742d6cdb42)
This commit is contained in:
parent
9667d89fe6
commit
3f5099180d
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