a94319d29b
amdgpu_winsys_bo_reference(dst, NULL) sets *dst to NULL, but we never read *dst again because we set num_buffers to 0. So don't touch the buffer list elements and only decrement the BO refcount. It makes a difference when you have 10k BOs. The CS thread overhead in VP2020/Catia1: 9.23% -> 8.74% Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27060>