agx: print pack assertions to stderr

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
This commit is contained in:
Alyssa Rosenzweig 2024-09-25 14:56:59 -04:00 committed by Marge Bot
parent eff48b9826
commit 7ab777a959

View file

@ -22,9 +22,9 @@ static void
pack_assert_internal(const agx_instr *I, bool condition, const char *msg)
{
if (!condition) {
printf("Packing assertion failed for instruction:\n\n");
agx_print_instr(I, stdout);
printf("\n%s\n", msg);
fprintf(stderr, "Packing assertion failed for instruction:\n\n");
agx_print_instr(I, stderr);
fprintf(stderr, "\n%s\n", msg);
abort();
}
}