freedreno/a4xx: blend state no longer depends on fb state
authorRob Clark <robclark@freedesktop.org>
Fri, 22 Apr 2016 21:04:20 +0000 (17:04 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 24 Apr 2016 17:40:57 +0000 (13:40 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a4xx/fd4_emit.c

index dbb9ad21a15ab37017673db7bd0df4438b0e1550..ba5d48909faaf573b0d3350507e59034d4f93cec 100644 (file)
@@ -657,11 +657,8 @@ fd4_emit_state(struct fd_context *ctx, struct fd_ringbuffer *ring,
                                A4XX_RB_FS_OUTPUT_SAMPLE_MASK(0xffff));
        }
 
-       if (dirty & (FD_DIRTY_BLEND_COLOR | FD_DIRTY_FRAMEBUFFER)) {
+       if (dirty & FD_DIRTY_BLEND_COLOR) {
                struct pipe_blend_color *bcolor = &ctx->blend_color;
-               struct pipe_framebuffer_state *pfb = &ctx->framebuffer;
-
-               /* TODO make this a state obj? */
 
                OUT_PKT0(ring, REG_A4XX_RB_BLEND_RED, 8);
                OUT_RING(ring, A4XX_RB_BLEND_RED_FLOAT(bcolor->color[0]) |