<div dir="ltr">Technically, this isn't actually a problem because blorp manually whacks BRW_NEW_URB_SIZE.  That said, triggering on NEW_BLORP is a better plan anyway.  With this patch, we can probably remove the line from blorp where it sets NEW_URB_SIZE.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 16, 2017 at 2:01 PM, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br>
<br>
It's a bit rare, but blorp can trigger a urb reconfiguration.  When that<br>
happens, we need to re-upload the URB config.  Fortunately, this isn't as<br>
bad as it looks because gen7_upload_urb will not re-emit the packet if it<br>
would end up being a no-op so this doesn't mean that running blorp always<br>
triggers a URB reconfig.<br>
<br>
v2 (idr): Sort BRW_NEW_ tokens to match brw_recalculate_urb_fence and<br>
gen6_urb.<br>
---<br>
 src/mesa/drivers/dri/i965/<wbr>gen7_urb.c | 3 ++-<br>
 1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>gen7_urb.c b/src/mesa/drivers/dri/i965/<wbr>gen7_urb.c<br>
index 525c9c4..c4b479c 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>gen7_urb.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>gen7_urb.c<br>
@@ -236,7 +236,8 @@ gen7_upload_urb(struct brw_context *brw, unsigned vs_size,<br>
 const struct brw_tracked_state gen7_urb = {<br>
    .dirty = {<br>
       .mesa = 0,<br>
-      .brw = BRW_NEW_CONTEXT |<br>
+      .brw = BRW_NEW_BLORP |<br>
+             BRW_NEW_CONTEXT |<br>
              BRW_NEW_URB_SIZE |<br>
              BRW_NEW_GS_PROG_DATA |<br>
              BRW_NEW_TCS_PROG_DATA |<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.4<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>