diff options
author | Eric Anholt <[email protected]> | 2018-07-03 16:24:35 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-07-05 12:39:36 -0700 |
commit | 572f6ab489db2d2311d89ab5910764ebb83cb49d (patch) | |
tree | e1262aaddc51fb1af74b4476aff645829483531c /src/gallium/drivers/v3d/v3d_context.h | |
parent | 5601ab3981c8ab5872230a6a9afc236d76fa1405 (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_context.h')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_context.h | 9 |
1 files changed, 8 insertions, 1 deletions
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__); \ |