diff options
author | Kenneth Graunke <[email protected]> | 2017-05-29 22:07:07 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-06-07 02:13:49 -0700 |
commit | 09c3a00f10861269f2187b5033f754b770a09b16 (patch) | |
tree | 6ac32780a042f56870c1984b9e8da992b085e483 /src/compiler/glsl/lower_distance.cpp | |
parent | 98d5667f4b5ba67a482d34779471ddfbbc521d84 (diff) |
i965: Fix alpha to one with dual color blending.
The BLEND_STATE documentation says that alpha to one must be disabled
when dual color blending is enabled. However, it appears that it simply
fails to override src1 alpha to one.
We can work around this by leaving alpha to one enabled, but overriding
SRC1_ALPHA to ONE and ONE_MINUS_SRC1_ALPHA to ZERO. This appears to be
what the other driver does, and it looks like it works despite the
documentation saying not to do it.
Fixes spec/ext_framebuffer_multisample/alpha-to-one-dual-src-blend *
Piglit tests.
v2: Add UNUSED to shut up warning on generations which don't use this.
Reviewed-by: Chris Forbes <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/compiler/glsl/lower_distance.cpp')
0 files changed, 0 insertions, 0 deletions