FD_DIRTY_FRAMEBUFFER | FD_DIRTY_SCISSOR));
OUT_PKT0(ring, REG_A3XX_RB_BLEND_ALPHA, 1);
- OUT_RING(ring, 0X3c0000ff);
+ OUT_RING(ring, A3XX_RB_BLEND_ALPHA_UINT(0xff) |
+ A3XX_RB_BLEND_ALPHA_FLOAT(1.0));
fd3_emit_rbrc_draw_state(ring,
A3XX_RB_RENDER_CONTROL_ALPHA_TEST_FUNC(FUNC_NEVER));
}
}
+ if (dirty & FD_DIRTY_BLEND_COLOR) {
+ struct pipe_blend_color *bcolor = &ctx->blend_color;
+ OUT_PKT0(ring, REG_A3XX_RB_BLEND_RED, 4);
+ OUT_RING(ring, A3XX_RB_BLEND_RED_UINT(bcolor->color[0] * 255.0) |
+ A3XX_RB_BLEND_RED_FLOAT(bcolor->color[0]));
+ OUT_RING(ring, A3XX_RB_BLEND_GREEN_UINT(bcolor->color[1] * 255.0) |
+ A3XX_RB_BLEND_GREEN_FLOAT(bcolor->color[1]));
+ OUT_RING(ring, A3XX_RB_BLEND_BLUE_UINT(bcolor->color[2] * 255.0) |
+ A3XX_RB_BLEND_BLUE_FLOAT(bcolor->color[2]));
+ OUT_RING(ring, A3XX_RB_BLEND_ALPHA_UINT(bcolor->color[3] * 255.0) |
+ A3XX_RB_BLEND_ALPHA_FLOAT(bcolor->color[3]));
+ }
+
if (dirty & FD_DIRTY_VERTTEX)
emit_textures(ring, SB_VERT_TEX, &ctx->verttex);
A3XX_PA_SC_WINDOW_OFFSET_Y(0));
OUT_PKT0(ring, REG_A3XX_RB_BLEND_RED, 4);
- OUT_RING(ring, 0x00000000); /* RB_BLEND_RED */
- OUT_RING(ring, 0x00000000); /* RB_BLEND_GREEN */
- OUT_RING(ring, 0x00000000); /* RB_BLEND_BLUE */
- OUT_RING(ring, 0x3c0000ff); /* RB_BLEND_ALPHA */
+ OUT_RING(ring, A3XX_RB_BLEND_RED_UINT(0) |
+ A3XX_RB_BLEND_RED_FLOAT(0.0));
+ OUT_RING(ring, A3XX_RB_BLEND_GREEN_UINT(0) |
+ A3XX_RB_BLEND_GREEN_FLOAT(0.0));
+ OUT_RING(ring, A3XX_RB_BLEND_BLUE_UINT(0) |
+ A3XX_RB_BLEND_BLUE_FLOAT(0.0));
+ OUT_RING(ring, A3XX_RB_BLEND_ALPHA_UINT(0xff) |
+ A3XX_RB_BLEND_ALPHA_FLOAT(1.0));
for (i = 0; i < 6; i++) {
OUT_PKT0(ring, REG_A3XX_GRAS_CL_USER_PLANE(i), 4);