<div dir="ltr">Acked-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 7, 2018 at 8:45 AM, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Gen4-5 traditionally don't use GEM context support, which means that<br>
the PS_DEPTH_COUNT register isn't saved/restored for us across batches.<br>
<br>
This means that we have to bookend each batch with start/end snapshots,<br>
and add deltas from a series of pairs, instead of simply having a single<br>
<start, end> pair. Much messier.<br>
<br>
In the normal state upload code, we check on every draw call whether<br>
we need to take the starting snapshot for the batch. But in BLORP,<br>
we forgot to do this, so we'd miss the BLORP operation if it were the<br>
first thing in the batch.<br>
---<br>
src/mesa/drivers/dri/i965/<wbr>gen4_blorp_exec.h | 2 ++<br>
1 file changed, 2 insertions(+)<br>
<br>
I haven't observed this to fix anything. I was hoping it might help<br>
with NV_conditional_render test flakiness...<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>gen4_blorp_exec.h b/src/mesa/drivers/dri/i965/<wbr>gen4_blorp_exec.h<br>
index e59bc9f2c2c..ccff1f98123 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>gen4_blorp_exec.h<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>gen4_blorp_exec.h<br>
@@ -173,6 +173,8 @@ blorp_emit_pipeline(struct blorp_batch *batch,<br>
assert(batch->blorp->driver_<wbr>ctx == batch->driver_batch);<br>
struct brw_context *brw = batch->driver_batch;<br>
<br>
+ brw_emit_query_begin(brw);<br>
+<br>
emit_urb_config(batch, params);<br>
<br>
blorp_emit(batch, GENX(3DSTATE_PIPELINED_<wbr>POINTERS), pp) {<br>
<span class="HOEnZb"><font color="#888888">-- <br>
2.17.0<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>