From 3f685e9c96b699320f29603bf627c18ea5488f42 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 5 Jul 2021 20:14:58 -0400 Subject: [PATCH] asahi: Set data_valid for the depth buffer Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 49427eb..8142508 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -459,6 +459,12 @@ agx_flush(struct pipe_context *pctx, struct agx_resource *rt0 = agx_resource(ctx->batch->cbufs[0]->texture); BITSET_SET(rt0->data_valid, 0); + struct agx_resource *zbuf = ctx->batch->zsbuf ? + agx_resource(ctx->batch->zsbuf->texture) : NULL; + + if (zbuf) + BITSET_SET(zbuf->data_valid, 0); + /* BO list for a given batch consists of: * - BOs for the batch's framebuffer surfaces * - BOs for the batch's pools -- 2.7.4