From 426d55ffad1f8363621e68f5228d913ca2bb1618 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 26 Jun 2021 15:23:17 -0400 Subject: [PATCH] asahi: Add zsbuf to batch Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) +