<div dir="ltr">Reviewed-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 Fri, May 12, 2017 at 4:38 PM, Anuj Phogat <span dir="ltr"><<a href="mailto:anuj.phogat@gmail.com" target="_blank">anuj.phogat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Ben Widawsky <<a href="mailto:benjamin.widawsky@intel.com">benjamin.widawsky@intel.com</a>><br>
<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_<wbr>queryobj.c | 8 ++++++++<br>
1 file changed, 8 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>brw_queryobj.c b/src/mesa/drivers/dri/i965/<wbr>brw_queryobj.c<br>
index de93b8b..0a830ae 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>brw_queryobj.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>brw_queryobj.c<br>
@@ -111,6 +111,14 @@ brw_write_depth_count(struct brw_context *brw, struct brw_bo *query_bo, int idx)<br>
if (brw->gen == 9 && brw->gt == 4)<br>
flags |= PIPE_CONTROL_CS_STALL;<br>
<br>
+ if (brw->gen >= 10) {<br>
+ /* "Driver must program PIPE_CONTROL with only Depth Stall Enable bit set<br>
+ * prior to programming a PIPE_CONTROL with Write PS Depth Count Post sync<br>
+ * operation."<br>
+ */<br>
+ brw_emit_pipe_control_flush(<wbr>brw, PIPE_CONTROL_DEPTH_STALL);<br>
+ }<br>
+<br>
brw_emit_pipe_control_write(<wbr>brw, flags,<br>
query_bo, idx * sizeof(uint64_t),<br>
0, 0);<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.3<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>