mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
freedreno: a2xx: fix clear color
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>
This commit is contained in:
parent
dd8553dd95
commit
94bc06b196
1 changed files with 1 additions and 1 deletions
|
|
@ -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 &
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue