asahi: Add zsbuf to batch

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11718>
This commit is contained in:
Alyssa Rosenzweig
2021-06-26 15:23:17 -04:00
committed by Marge Bot
parent 2ad59fc9ec
commit 426d55ffad
+5 -2
View File
@@ -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) +