radv: print more error messages during SPM initialization
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34524>
This commit is contained in:

committed by
Marge Bot

parent
177427877b
commit
c42d43e8eb
@@ -492,6 +492,7 @@ bool ac_init_spm(const struct radeon_info *info,
|
|||||||
create_info = gfx11_spm_counters;
|
create_info = gfx11_spm_counters;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
fprintf(stderr, "radv: Failed to initialize SPM because SPM counters aren't implemented.\n");
|
||||||
return false; /* not implemented */
|
return false; /* not implemented */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -282,8 +282,10 @@ radv_spm_init(struct radv_device *device)
|
|||||||
struct ac_perfcounters *pc = &pdev->ac_perfcounters;
|
struct ac_perfcounters *pc = &pdev->ac_perfcounters;
|
||||||
|
|
||||||
/* We failed to initialize the performance counters. */
|
/* We failed to initialize the performance counters. */
|
||||||
if (!pc->blocks)
|
if (!pc->blocks) {
|
||||||
|
fprintf(stderr, "radv: Failed to initialize SPM because perf counters aren't implemented.\n");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!ac_init_spm(gpu_info, pc, &device->spm))
|
if (!ac_init_spm(gpu_info, pc, &device->spm))
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user