mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
a2xx: set constant blend color
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
f40908f2d1
commit
f3bde890cd
1 changed files with 9 additions and 0 deletions
|
|
@ -309,6 +309,15 @@ fd2_emit_state(struct fd_context *ctx, const enum fd_dirty_3d_state dirty)
|
|||
OUT_RING(ring, blend->rb_colormask);
|
||||
}
|
||||
|
||||
if (dirty & FD_DIRTY_BLEND_COLOR) {
|
||||
OUT_PKT3(ring, CP_SET_CONSTANT, 5);
|
||||
OUT_RING(ring, CP_REG(REG_A2XX_RB_BLEND_RED));
|
||||
OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[0]));
|
||||
OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[1]));
|
||||
OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[2]));
|
||||
OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[3]));
|
||||
}
|
||||
|
||||
if (dirty & (FD_DIRTY_TEX | FD_DIRTY_PROG))
|
||||
emit_textures(ring, ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue