<div dir="ltr">Two people have independently pointed out the i916 typo. I've fixed it locally.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 31, 2017 at 4:17 PM, Jason Ekstrand <span dir="ltr"><<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Cc: "13.0 17.0" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.<wbr>freedesktop.org</a>><br>
---<br>
src/mesa/drivers/dri/i965/<wbr>genX_blorp_exec.c | 13 ++++++++++++-<br>
1 file changed, 12 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>genX_blorp_exec.c b/src/mesa/drivers/dri/i965/<wbr>genX_blorp_exec.c<br>
index f9334ee..b6122a3 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>genX_blorp_exec.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>genX_blorp_exec.c<br>
@@ -122,8 +122,19 @@ blorp_alloc_vertex_buffer(<wbr>struct blorp_batch *batch, uint32_t size,<br>
assert(batch->blorp->driver_<wbr>ctx == batch->driver_batch);<br>
struct brw_context *brw = batch->driver_batch;<br>
<br>
+ /* From the Sky Lake PRM, 3DSTATE_VERTEX_BUFFERS:<br>
+ *<br>
+ * "The VF cache needs to be invalidated before binding and then using<br>
+ * Vertex Buffers that overlap with any previously bound Vertex Buffer<br>
+ * (at a 64B granularity) since the last invalidation. A VF cache<br>
+ * invalidate is performed by setting the "VF Cache Invalidation Enable"<br>
+ * bit in PIPE_CONTROL."<br>
+ *<br>
+ * In order to avoid this problem, we align all vertex buffer allocations<br>
+ * to 64 bytes.<br>
+ */<br>
uint32_t offset;<br>
- void *data = brw_state_batch(brw, size, 32, &offset);<br>
+ void *data = brw_state_batch(brw, size, 64, &offset);<br>
<br>
*addr = (struct blorp_address) {<br>
.buffer = brw-><a href="http://batch.bo" rel="noreferrer" target="_blank">batch.bo</a>,<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.0.400.gff86faf<br>
<br>
</font></span></blockquote></div><br></div>