radv: only emit cache flushes when the pool size is large enough
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 28 Feb 2018 19:28:53 +0000 (20:28 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 1 Mar 2018 08:53:40 +0000 (09:53 +0100)
commitc27f5419f6f6aa6d51b44a99b6738fba70873604
treea9496986edbbbd38708ed3b51b88b6481911b9db
parent2fe07933bd5385f731b490ba22ee2086bfccfe63
radv: only emit cache flushes when the pool size is large enough

This is an optimization which reduces the number of flushes for
small pool buffers.

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