<div dir="ltr"><div>Might be a good idea to update the comment above the second hunk. It's very precise about which bits, and so now wrong.<br><br></div>- Chris<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 12:44 PM, Ben Widawsky <span dir="ltr"><<a href="mailto:benjamin.widawsky@intel.com" target="_blank">benjamin.widawsky@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Cc: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com">jordan.l.justen@intel.com</a>><br>
Signed-off-by: Ben Widawsky <<a href="mailto:benjamin.widawsky@intel.com">benjamin.widawsky@intel.com</a>><br>
---<br>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 4 +++-<br>
1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp<br>
index aad512f..820c1d4 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp<br>
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp<br>
@@ -924,6 +924,8 @@ void<br>
fs_visitor::emit_barrier()<br>
{<br>
assert(devinfo->gen >= 7);<br>
+ const uint32_t barrier_id_mask =<br>
+ devinfo->gen >= 9 ? 0x8f000000u : 0x0f000000u;<br>
<br>
/* We are getting the barrier ID from the compute shader header */<br>
assert(stage == MESA_SHADER_COMPUTE);<br>
@@ -937,7 +939,7 @@ fs_visitor::emit_barrier()<br>
<br>
/* Copy bits 27:24 of r0.2 (barrier id) to the message payload reg.2 */<br>
fs_reg r0_2 = fs_reg(retype(brw_vec1_grf(0, 2), BRW_REGISTER_TYPE_UD));<br>
- pbld.AND(component(payload, 2), r0_2, brw_imm_ud(0x0f000000u));<br>
+ pbld.AND(component(payload, 2), r0_2, brw_imm_ud(barrier_id_mask));<br>
<br>
/* Emit a gateway "barrier" message using the payload we set up, followed<br>
* by a wait instruction.<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.7.0<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" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>