asahi: Don't clobber clear colours

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15482>
This commit is contained in:
Alyssa Rosenzweig 2022-02-21 20:22:49 -05:00 committed by Marge Bot
parent b3be6d5263
commit 1c6e77bd04
1 changed files with 3 additions and 1 deletions

View File

@ -389,7 +389,9 @@ agx_clear(struct pipe_context *pctx, unsigned buffers, const struct pipe_scissor
{
struct agx_context *ctx = agx_context(pctx);
ctx->batch->clear |= buffers;
memcpy(ctx->batch->clear_color, color->f, sizeof(color->f));
if (buffers & PIPE_CLEAR_COLOR0)
memcpy(ctx->batch->clear_color, color->f, sizeof(color->f));
}