From 8d1ccd67290c1fd0213aed6a7e9a6bf85858f227 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 18 Nov 2016 17:39:26 -0800 Subject: anv/cmd_buffer: Apply remaining flushes in EndCommandBuffer 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 --- src/intel/vulkan/genX_cmd_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 860294cbe4f..7aaa8a1cffe 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -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; -- cgit v1.2.3