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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user