<div dir="ltr">This apparently fixes rendering corruptions on the Vulkan port of Skia on some hardware.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 24, 2017 at 4:31 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/intel/vulkan/genX_cmd_<wbr>buffer.c | 5 +++++<br>
1 file changed, 5 insertions(+)<br>
<br>
diff --git a/src/intel/vulkan/genX_cmd_<wbr>buffer.c b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
index e2364db..8ec882e 100644<br>
--- a/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
+++ b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
@@ -654,6 +654,11 @@ genX(CmdExecuteCommands)(<br>
*/<br>
genX(cmd_buffer_enable_pma_<wbr>fix)(primary, false);<br>
<br>
+ /* The secondary command buffer doesn't know which textures etc. have been<br>
+ * flushed prior to their execution. Apply those flushes now.<br>
+ */<br>
+ genX(cmd_buffer_apply_pipe_<wbr>flushes)(primary);<br>
+<br>
for (uint32_t i = 0; i < commandBufferCount; i++) {<br>
ANV_FROM_HANDLE(anv_cmd_<wbr>buffer, secondary, pCmdBuffers[i]);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.5.0.400.gff86faf<br>
<br>
</font></span></blockquote></div><br></div>