swr: correct setting of independentAlphaBlendEnable

This setting is for whether color and alpha have different blend
settings, not for whether blending is enabled on a per-RT basis.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
Ilia Mirkin 2016-11-09 14:31:25 -05:00
parent 5be635d5e4
commit 828faaef40

View file

@ -1318,7 +1318,12 @@ swr_update_derived(struct pipe_context *pipe,
compileState.desc.alphaTestEnable =
ctx->depth_stencil->alpha.enabled;
compileState.desc.independentAlphaBlendEnable =
ctx->blend->pipe.independent_blend_enable;
(compileState.blendState.sourceBlendFactor !=
compileState.blendState.sourceAlphaBlendFactor) ||
(compileState.blendState.destBlendFactor !=
compileState.blendState.destAlphaBlendFactor) ||
(compileState.blendState.colorBlendFunc !=
compileState.blendState.alphaBlendFunc);
compileState.desc.alphaToCoverageEnable =
ctx->blend->pipe.alpha_to_coverage;
compileState.desc.sampleMaskEnable = 0; // XXX