projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3be6d5
)
asahi: Don't clobber clear colours
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Tue, 22 Feb 2022 01:22:49 +0000
(20:22 -0500)
committer
Marge Bot
<emma+marge@anholt.net>
Tue, 22 Mar 2022 00:19:30 +0000
(
00:19
+0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15482>
src/gallium/drivers/asahi/agx_pipe.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/asahi/agx_pipe.c
b/src/gallium/drivers/asahi/agx_pipe.c
index
7f82eea
..
0dfe421
100644
(file)
--- a/
src/gallium/drivers/asahi/agx_pipe.c
+++ b/
src/gallium/drivers/asahi/agx_pipe.c
@@
-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));
}