<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Reviewed-by: Tim Rowley <<a href="mailto:timothy.o.rowley@intel.com" class="">timothy.o.rowley@intel.com</a>>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Nov 9, 2016, at 1:38 PM, Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">This setting is for whether color and alpha have different blend<br class="">
settings, not for whether blending is enabled on a per-RT basis.<br class="">
<br class="">
Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>><br class="">
---<br class="">
<br class="">
This fixes gl-1.0-blend-func. Not 100% sure why this setting is a thing, as<br class="">
opposed to just looking at the values directly, but ... wtvr.<br class="">
<br class="">
src/gallium/drivers/swr/swr_state.cpp | 7 ++++++-<br class="">
1 file changed, 6 insertions(+), 1 deletion(-)<br class="">
<br class="">
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp<br class="">
index d19acfb..65327f3 100644<br class="">
--- a/src/gallium/drivers/swr/swr_state.cpp<br class="">
+++ b/src/gallium/drivers/swr/swr_state.cpp<br class="">
@@ -1318,7 +1318,12 @@ swr_update_derived(struct pipe_context *pipe,<br class="">
            compileState.desc.alphaTestEnable =<br class="">
               ctx->depth_stencil->alpha.enabled;<br class="">
            compileState.desc.independentAlphaBlendEnable =<br class="">
-               ctx->blend->pipe.independent_blend_enable;<br class="">
+               (compileState.blendState.sourceBlendFactor !=<br class="">
+                compileState.blendState.sourceAlphaBlendFactor) ||<br class="">
+               (compileState.blendState.destBlendFactor !=<br class="">
+                compileState.blendState.destAlphaBlendFactor) ||<br class="">
+               (compileState.blendState.colorBlendFunc !=<br class="">
+                compileState.blendState.alphaBlendFunc);<br class="">
            compileState.desc.alphaToCoverageEnable =<br class="">
               ctx->blend->pipe.alpha_to_coverage;<br class="">
            compileState.desc.sampleMaskEnable = 0; // XXX<br class="">
-- <br class="">
2.7.3<br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>