<p dir="ltr">Yeah, this is probably good enough for now.</p>
<p dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>></p>
<div class="gmail_quote">On Feb 28, 2015 1:42 PM, "Matt Turner" <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We could do better by tracking scratch reads and writes.<br>
<br>
Cc: 10.5 <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>><br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=88793" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=88793</a><br>
---<br>
 src/mesa/drivers/dri/i965/brw_shader.cpp | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp<br>
index fbb20bc..ec3cfcb 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_shader.cpp<br>
+++ b/src/mesa/drivers/dri/i965/brw_shader.cpp<br>
@@ -963,6 +963,7 @@ backend_instruction::has_side_effects() const<br>
 {<br>
    switch (opcode) {<br>
    case SHADER_OPCODE_UNTYPED_ATOMIC:<br>
+   case SHADER_OPCODE_GEN4_SCRATCH_WRITE:<br>
    case SHADER_OPCODE_URB_WRITE_SIMD8:<br>
    case FS_OPCODE_FB_WRITE:<br>
       return true;<br>
--<br>
2.0.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>
</blockquote></div>