summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2017-05-29 22:07:07 -0700
committerKenneth Graunke <kenneth@whitecape.org>2017-06-07 02:13:49 -0700
commit09c3a00f10861269f2187b5033f754b770a09b16 (patch)
tree6ac32780a042f56870c1984b9e8da992b085e483 /src/glx
parent98d5667f4b5ba67a482d34779471ddfbbc521d84 (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 <chrisforbes@google.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/glx')
0 files changed, 0 insertions, 0 deletions