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:
committed by
Marge Bot
parent
2ad59fc9ec
commit
426d55ffad
@@ -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) +
|
||||
|
||||
Reference in New Issue
Block a user