Re: [Mesa-dev] [PATCH] radv: reduce CPU overhead merging bo lists.

2017-02-12 Thread Dave Airlie
On 11 February 2017 at 04:30, Bas Nieuwenhuizen wrote: > Was thinking of a sort or other asymptotically more efficient merge > method, but in the meantime this is I did get that, I just didn't have the brain power to work out what would be better, so just optimised the current code for now. Dav

Re: [Mesa-dev] [PATCH] radv: reduce CPU overhead merging bo lists.

2017-02-10 Thread Bas Nieuwenhuizen
Was thinking of a sort or other asymptotically more efficient merge method, but in the meantime this is Reviewed-by: Bas Nieuwenhuizen On Fri, Feb 10, 2017, at 02:07, Dave Airlie wrote: > From: Dave Airlie > > Just noticed we do a fair bit of unneeded searching here. > > Since we know that th

[Mesa-dev] [PATCH] radv: reduce CPU overhead merging bo lists.

2017-02-09 Thread Dave Airlie
From: Dave Airlie Just noticed we do a fair bit of unneeded searching here. Since we know that the buffers in a CS are unique already, the first time we get any buffers, we can just memcpy those into place, and when we are searching for subsequent CSes, we only have to search up until where the