From: Jason Ekstrand Date: Sat, 19 Nov 2016 01:39:26 +0000 (-0800) Subject: anv/cmd_buffer: Apply remaining flushes in EndCommandBuffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d1ccd67290c1fd0213aed6a7e9a6bf85858f227;p=mesa.git 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 --- 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;