From 572f6ab489db2d2311d89ab5910764ebb83cb49d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 3 Jul 2018 16:24:35 -0700 Subject: v3d: Add proper support for GL_EXT_draw_buffers2's blending enables. I had flagged it as enabled on V3D 4.x, but not actually implemented the per-RT enables. Fixes piglit fbo_drawbuffers2-blend. --- src/gallium/drivers/v3d/v3d_context.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/v3d/v3d_context.h') diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h index 7c920dbc3db..dea9f9f3d2c 100644 --- a/src/gallium/drivers/v3d/v3d_context.h +++ b/src/gallium/drivers/v3d/v3d_context.h @@ -375,7 +375,7 @@ struct v3d_context { /** @{ Current pipeline state objects */ struct pipe_scissor_state scissor; - struct pipe_blend_state *blend; + struct v3d_blend_state *blend; struct v3d_rasterizer_state *rasterizer; struct v3d_depth_stencil_alpha_state *zsa; @@ -454,6 +454,13 @@ struct v3d_depth_stencil_alpha_state { uint8_t stencil_back[6]; }; +struct v3d_blend_state { + struct pipe_blend_state base; + + /* Per-RT mask of whether blending is enabled. */ + uint8_t blend_enables; +}; + #define perf_debug(...) do { \ if (unlikely(V3D_DEBUG & V3D_DEBUG_PERF)) \ fprintf(stderr, __VA_ARGS__); \ -- cgit v1.2.3