From a4677945d2d0105533cd3932c93c3d67d90d16d2 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 1 Apr 2025 12:34:34 -0400 Subject: [PATCH] asahi: fix printf without result buffer Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_batch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/asahi/agx_batch.c b/src/gallium/drivers/asahi/agx_batch.c index e5643091ae0..44cc458124d 100644 --- a/src/gallium/drivers/asahi/agx_batch.c +++ b/src/gallium/drivers/asahi/agx_batch.c @@ -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);