<div dir="ltr">Fixes: (<span id="summary_alias_container"><span id="short_desc_nonedit_display">Flickering shadows in unreleased title trace</span></span>)<br>
<span class="">Bugzilla</span>: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=91173" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=80500</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 10:16 AM, Mike Stroyan <span dir="ltr"><<a href="mailto:mike@lunarg.com" target="_blank">mike@lunarg.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When there are no color buffer render targets, gen6 and gen7 still<br>
use the first BLEND_STATE element to determine alpha test.<br>
gen6_upload_blend_state was allocating zero elements when<br>
ctx->Color.AlphaEnabled was false.<br>
That left _3DSTATE_CC_STATE_POINTERS or _3DSTATE_BLEND_STATE_POINTERS<br>
pointing to random data from some previous brw_state_batch().<br>
That sometimes suppressed depth rendering when those bits<br>
happened to mean COMPAREFUNC_NEVER.<br>
This produced flickering shadows for dota2 reborn.<br>
---<br>
src/mesa/drivers/dri/i965/gen6_cc.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/gen6_cc.c b/src/mesa/drivers/dri/i965/gen6_cc.c<br>
index 2bfa271..2b76e24 100644<br>
--- a/src/mesa/drivers/dri/i965/gen6_cc.c<br>
+++ b/src/mesa/drivers/dri/i965/gen6_cc.c<br>
@@ -51,7 +51,7 @@ gen6_upload_blend_state(struct brw_context *brw)<br>
* with render target 0, which will reference BLEND_STATE[0] for<br>
* alpha test enable.<br>
*/<br>
- if (nr_draw_buffers == 0 && ctx->Color.AlphaEnabled)<br>
+ if (nr_draw_buffers == 0)<br>
nr_draw_buffers = 1;<br>
<br>
size = sizeof(*blend) * nr_draw_buffers;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.1.0<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><br> Mike Stroyan - Software Architect<br> LunarG, Inc. - The Graphics Experts<br> Cell: (970) 219-7905<br> Email: Mike@LunarG.com<br> Website: <a href="http://www.lunarg.com" target="_blank">http://www.lunarg.com</a></div>
</div>