asahi: fix printf without result buffer

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34326>
This commit is contained in:
Alyssa Rosenzweig 2025-04-01 12:34:34 -04:00 committed by Marge Bot
parent 1a36d0b5d7
commit a4677945d2

View file

@ -297,14 +297,14 @@ agx_batch_print_stats(struct agx_device *dev, struct agx_batch *batch)
{
unsigned batch_idx = agx_batch_idx(batch);
if (!batch->result)
return;
if (u_printf_check_abort(stdout, &dev->printf)) {
fprintf(stderr, "GPU abort");
abort();
}
if (!batch->result)
return;
if (batch->cdm.bo) {
agx_print_result(dev, batch->ctx, &batch->result[0].compute.info,
batch_idx, true);