asahi: Don't store to unbound render targets

Otherwise we have a state leak with depth-only attachments, as in
glmark2 -bshadow.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>
This commit is contained in:
Alyssa Rosenzweig 2022-03-21 21:11:47 -04:00
parent a0fc622be5
commit c955dd726e
1 changed files with 8 additions and 4 deletions

View File

@ -451,10 +451,14 @@ agx_flush(struct pipe_context *pctx,
clear_pipeline_textures = true;
}
uint64_t pipeline_store =
agx_build_store_pipeline(ctx,
dev->internal.store,
agx_pool_upload(&ctx->batch->pool, ctx->render_target[0], sizeof(ctx->render_target)));
uint64_t pipeline_store = 0;
if (ctx->batch->cbufs[0]) {
pipeline_store =
agx_build_store_pipeline(ctx,
dev->internal.store,
agx_pool_upload(&ctx->batch->pool, ctx->render_target[0], sizeof(ctx->render_target)));
}
/* Pipelines must 64 aligned */
struct agx_ptr pipeline_null =