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:
parent
b3be6d5263
commit
1c6e77bd04
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue