anv/cmd_buffer: Apply remaining flushes in EndCommandBuffer
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 19 Nov 2016 01:39:26 +0000 (17:39 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Nov 2016 22:24:29 +0000 (14:24 -0800)
Otherwise, some pipe flushes may just never happen.  This is unlikely to
cause problems depending on how the kernel schedules batches, but we
shouldn't count on it.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/genX_cmd_buffer.c

index 860294cbe4f413ca1a732bc181605d2edf45a868..7aaa8a1cffe0257cd6cf5faa24cde4f9bdcf5f27 100644 (file)
@@ -453,6 +453,8 @@ genX(EndCommandBuffer)(
 {
    ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
 
+   genX(cmd_buffer_apply_pipe_flushes)(cmd_buffer);
+
    anv_cmd_buffer_end_batch_buffer(cmd_buffer);
 
    return VK_SUCCESS;