mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 05:40:33 +01:00
ac/perfcounter: compute the number of block instance properly on GFX11
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39099>
This commit is contained in:
parent
3c7ea1e4ca
commit
468c8dca18
1 changed files with 1 additions and 1 deletions
|
|
@ -1232,7 +1232,7 @@ bool ac_init_perfcounters(const struct radeon_info *info,
|
|||
block->b = &blocks[i];
|
||||
block->num_instances = MAX2(1, block->b->instances);
|
||||
|
||||
if (info->gfx_level >= GFX12) {
|
||||
if (info->gfx_level >= GFX11) {
|
||||
/* TODO: Generalize this to older generations. */
|
||||
const uint32_t num_rb_per_se = info->num_rb / info->num_se;
|
||||
const uint32_t rb_per_sa = num_rb_per_se / info->max_sa_per_se;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue