radv: Add WSI buffers to BO list only if they can be used

Graphics / Mesa 3D Graphics Library / Mesa - Bas Nieuwenhuizen [basnieuwenhuizen.nl] - 27 April 2020 18:01 EDT

Also reverse the BO list removal loop. This way typical WSI usage should find the entry in O(active swapchains) iterations, which should not be a performance issues. Tested with Doom(2106) which found the entry in 1 iteration every time.

cbeda7f78e3 radv: Add WSI buffers to BO list only if they can be used.
src/amd/vulkan/radv_device.c | 20 ++++++++++++--------
src/amd/vulkan/radv_private.h | 5 +++++
src/amd/vulkan/radv_wsi.c | 31 +++++++++++++++++++++++++------
3 files changed, 42 insertions(+), 14 deletions(-)

Upstream: cgit.freedesktop.org


  • Share