projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd8553d
)
freedreno: a2xx: fix clear color
author
Jonathan Marek
<jonathan@marek.ca>
Thu, 21 Jun 2018 21:06:30 +0000
(17:06 -0400)
committer
Rob Clark
<robdclark@gmail.com>
Fri, 22 Jun 2018 12:23:10 +0000
(08:23 -0400)
the format of the CLEAR_COLOR register doesn't depend on the target format
this fixes clear color when rendering to 32-bit RGBA and 16-bit targets
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/fd2_draw.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/a2xx/fd2_draw.c
b/src/gallium/drivers/freedreno/a2xx/fd2_draw.c
index ca634d794ad89f85083238eb9d9bf4a6857c184c..6f0535fa2bb06e8d4651420dac6c7adf05e5ff34 100644
(file)
--- a/
src/gallium/drivers/freedreno/a2xx/fd2_draw.c
+++ b/
src/gallium/drivers/freedreno/a2xx/fd2_draw.c
@@
-135,7
+135,7
@@
fd2_clear(struct fd_context *ctx, unsigned buffers,
uint32_t reg, colr = 0;
if ((buffers & PIPE_CLEAR_COLOR) && fb->nr_cbufs)
- colr
= pack_rgba(fb->cbufs[0]->format
, color->f);
+ colr
= pack_rgba(PIPE_FORMAT_R8G8B8A8_UNORM
, color->f);
/* emit generic state now: */
fd2_emit_state(ctx, ctx->dirty &