diff options
author | Eric Anholt <[email protected]> | 2017-10-27 14:41:35 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-30 13:31:32 -0700 |
commit | 61bb0df60e08d0b5707879c49beed899d46eaf9a (patch) | |
tree | d948769aa46c594bf1d17fac3ada1b07321c59e2 /src/gallium/drivers/vc5/vc5_context.h | |
parent | 2e3c7beb1e60a47e1f5dd12d28ac3f328555a543 (diff) |
broadcom/vc5: Do BGRA vs RGBA swapping for the BLEND_CONSTANT_COLOR.
Fixes many of the fbo-blending-formats tests.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_context.h')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_context.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc5/vc5_context.h b/src/gallium/drivers/vc5/vc5_context.h index a1017bd1a6a..99d170b7dc0 100644 --- a/src/gallium/drivers/vc5/vc5_context.h +++ b/src/gallium/drivers/vc5/vc5_context.h @@ -337,6 +337,14 @@ struct vc5_context { struct pipe_stencil_ref stencil_ref; unsigned sample_mask; struct pipe_framebuffer_state framebuffer; + + /* Per render target, whether we should swap the R and B fields in the + * shader's color output and in blending. If render targets disagree + * on the R/B swap and use the constant color, then we would need to + * fall back to in-shader blending. + */ + uint8_t swap_color_rb; + struct pipe_poly_stipple stipple; struct pipe_clip_state clip; struct pipe_viewport_state viewport; |