diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index b644b9c7edb..0484e2ae10e 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -468,8 +468,11 @@ agx_flush(struct pipe_context *pctx, agx_batch_add_bo(batch, rsrc->bo); } - if (batch->zsbuf) - unreachable("todo: zsbuf"); + if (batch->zsbuf) { + struct pipe_surface *surf = batch->zsbuf; + struct agx_resource *rsrc = agx_resource(surf->texture); + agx_batch_add_bo(batch, rsrc->bo); + } unsigned handle_count = BITSET_COUNT(batch->bo_list) +