ac/spm: print an error message when a group is unknown
Help debugging. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39013>
This commit is contained in:
@@ -532,8 +532,10 @@ bool ac_init_spm(const struct radeon_info *info,
|
||||
for (unsigned i = 0; i < create_info_count; i++) {
|
||||
const struct ac_pc_block *block = ac_pc_get_block(pc, create_info[i].b->gpu_block);
|
||||
|
||||
if (!block)
|
||||
if (!block) {
|
||||
fprintf(stderr, "ac/spm: Unknown group.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
num_counters += block->num_global_instances;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user