<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 30, 2014 at 4:24 PM, Matt Turner <span dir="ltr"><<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The compiler isn't privy to the knowledge that we're doing at least one<br>
framebuffer write.<br>
---<br>
 src/mesa/drivers/dri/i965/brw_fs.cpp | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp<br>
index 19e9cb9..d113812 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp<br>
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp<br>
@@ -2599,6 +2599,7 @@ fs_visitor::emit_repclear_shader()<br>
  Â  Â  Â write->header_present = false;<br>
  Â  Â  Â write->mlen = 1;<br>
  Â  } else {<br>
+  Â  Â  assume(key->nr_color_regions > 0);<br>
  Â  Â  Â for (int i = 0; i < key->nr_color_regions; ++i) {<br>
  Â  Â  Â  Â  write = emit(FS_OPCODE_REP_FB_WRITE);<br>
  Â  Â  Â  Â  write->saturate = key->clamp_fragment_color;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.5.5<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>