From: Jason Ekstrand Date: Mon, 2 Dec 2019 18:14:45 +0000 (-0600) Subject: anv: Always invalidate the VF cache in BeginCommandBuffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ce39a55c1d7efe0432d4654cafe372b05d99ee2;p=mesa.git anv: Always invalidate the VF cache in BeginCommandBuffer I think the reason why we only do this for primaries is that we didn't expect to have blorp calls in secondaries. However, you are allowed to have a full render pass in a secondary command buffer so resolves and clears can end up in there. We should just always invalidate. Reviewed-by: Ivan Briano Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 44249575c52..d6c6243934c 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -1393,8 +1393,7 @@ genX(BeginCommandBuffer)( * blorp at least once per primary command buffer so it shouldn't be * wasted. */ - if (cmd_buffer->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY) - cmd_buffer->state.pending_pipe_bits |= ANV_PIPE_VF_CACHE_INVALIDATE_BIT; + cmd_buffer->state.pending_pipe_bits |= ANV_PIPE_VF_CACHE_INVALIDATE_BIT; /* We send an "Indirect State Pointers Disable" packet at * EndCommandBuffer, so all push contant packets are ignored during a