<div dir="ltr">On 2 April 2013 11:11, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is the same computation as the _WriteEnabled flag, so we may as<br>
well use it.<br>
<br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br></blockquote><div><br></div><div>This series is:<br><br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
 src/mesa/drivers/dri/i965/gen6_depthstencil.c | 6 +-----<br>
 1 file changed, 1 insertion(+), 5 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/gen6_depthstencil.c b/src/mesa/drivers/dri/i965/gen6_depthstencil.c<br>
index 4ea517f..940d91f 100644<br>
--- a/src/mesa/drivers/dri/i965/gen6_depthstencil.c<br>
+++ b/src/mesa/drivers/dri/i965/gen6_depthstencil.c<br>
@@ -74,11 +74,7 @@ gen6_upload_depth_stencil_state(struct brw_context *brw)<br>
         ds->ds1.bf_stencil_test_mask = ctx->Stencil.ValueMask[back];<br>
       }<br>
<br>
-      /* Not really sure about this:<br>
-       */<br>
-      if (ctx->Stencil.WriteMask[0] ||<br>
-         (ctx->Stencil._TestTwoSide && ctx->Stencil.WriteMask[back]))<br>
-        ds->ds0.stencil_write_enable = 1;<br>
+      ds->ds0.stencil_write_enable = ctx->Stencil._WriteEnabled;<br>
    }<br>
<br>
    /* _NEW_DEPTH */<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.2<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>