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:
parent
a0fc622be5
commit
c955dd726e
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue