ac/rgp: Warn when RGP capture can't be saved without libelf

Without this, mesa build on some distros may silently produce a version
of radv that silently refuses to save RGP traces

Signed-off-by: Arseny Kapoulkine <arseny.kapoulkine@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36960>
This commit is contained in:
Arseny Kapoulkine
2025-08-23 17:10:51 -07:00
parent 098521559d
commit bb3727ce5a
+1
View File
@@ -1207,6 +1207,7 @@ ac_dump_rgp_capture(const struct radeon_info *info, struct ac_sqtt_trace *sqtt_t
const struct ac_spm_trace *spm_trace)
{
#if !defined(USE_LIBELF)
fprintf(stderr, "RGP capture can't be saved: libelf was not enabled during build\n");
return -1;
#else
char filename[2048];