mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
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:
parent
1a36d0b5d7
commit
a4677945d2
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue