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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user