mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
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:
parent
5be635d5e4
commit
828faaef40
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue