radv: remove useless sync after copying query results with compute
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 2 Nov 2018 11:20:48 +0000 (12:20 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 5 Nov 2018 08:47:55 +0000 (09:47 +0100)
commitdc3419195cb57a9fa041c61fd92727cb0a81f36b
treef506c0b1a708f497ab20978c12af3e9e194c2b89
parent64a9ed8848ed5c2c909b59e0e4b600b2b01bba28
radv: remove useless sync after copying query results with compute

The spec says:
   "vkCmdCopyQueryPoolResults is considered to be a transfer
    operation, and its writes to buffer memory must be synchronized
    using VK_PIPELINE_STAGE_TRANSFER_BIT and VK_ACCESS_TRANSFER_WRITE_BIT
    before using the results."

VK_PIPELINE_STAGE_TRANSFER_BIT will wait for compute to be idle,
while VK_ACCESS_TRANSFER_WRITE_BIT will invalidate both L1 vector
caches and L2. So, it's useless to set those flags internally.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_query.c