<div dir="ltr">Oops. This one is probably my fault. :-(<br><div><br>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 30, 2018 at 11:12 AM, Nanley Chery <span dir="ltr"><<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If the aux state is CLEAR and clear color value has changed, only the<br>
surface state must be updated. The bit-pattern in the aux buffer is<br>
exactly the same.<br>
---<br>
src/mesa/drivers/dri/i965/brw_<wbr>blorp.c | 7 +++----<br>
1 file changed, 3 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>brw_blorp.c b/src/mesa/drivers/dri/i965/<wbr>brw_blorp.c<br>
index c6fa5195ee3..bf7164688bb 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>brw_blorp.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>brw_blorp.c<br>
@@ -1239,13 +1239,12 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb,<br>
const enum isl_aux_state aux_state =<br>
intel_miptree_get_aux_state(<wbr>irb->mt, irb->mt_level, irb->mt_layer);<br>
<br>
- bool same_clear_color =<br>
- !intel_miptree_set_clear_<wbr>color(brw, irb->mt, &ctx->Color.ClearColor);<br>
+ intel_miptree_set_clear_color(<wbr>brw, irb->mt, &ctx->Color.ClearColor);<br>
<br>
- /* If the buffer is already in INTEL_FAST_CLEAR_STATE_CLEAR, the clear<br>
+ /* If the buffer is already in ISL_AUX_STATE_CLEAR, the clear<br>
* is redundant and can be skipped.<br>
*/<br>
- if (aux_state == ISL_AUX_STATE_CLEAR && same_clear_color)<br>
+ if (aux_state == ISL_AUX_STATE_CLEAR)<br>
return;<br>
<br>
DBG("%s (fast) to mt %p level %d layers %d+%d\n", __FUNCTION__,<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.16.2<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>