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_program.c | |
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_program.c')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_program.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/v3d/v3d_program.c b/src/gallium/drivers/v3d/v3d_program.c index c67104df234..b5742b3bb1e 100644 --- a/src/gallium/drivers/v3d/v3d_program.c +++ b/src/gallium/drivers/v3d/v3d_program.c @@ -414,8 +414,8 @@ v3d_update_compiled_fs(struct v3d_context *v3d, uint8_t prim_mode) key->is_lines = (prim_mode >= PIPE_PRIM_LINES && prim_mode <= PIPE_PRIM_LINE_STRIP); key->clamp_color = v3d->rasterizer->base.clamp_fragment_color; - if (v3d->blend->logicop_enable) { - key->logicop_func = v3d->blend->logicop_func; + if (v3d->blend->base.logicop_enable) { + key->logicop_func = v3d->blend->base.logicop_func; } else { key->logicop_func = PIPE_LOGICOP_COPY; } @@ -423,8 +423,8 @@ v3d_update_compiled_fs(struct v3d_context *v3d, uint8_t prim_mode) key->msaa = v3d->rasterizer->base.multisample; key->sample_coverage = (v3d->rasterizer->base.multisample && v3d->sample_mask != (1 << VC5_MAX_SAMPLES) - 1); - key->sample_alpha_to_coverage = v3d->blend->alpha_to_coverage; - key->sample_alpha_to_one = v3d->blend->alpha_to_one; + key->sample_alpha_to_coverage = v3d->blend->base.alpha_to_coverage; + key->sample_alpha_to_one = v3d->blend->base.alpha_to_one; } key->depth_enabled = (v3d->zsa->base.depth.enabled || |