On Thu, 2016-09-01 at 10:36 +0100, Emil Velikov wrote:
> > From: Emil Velikov <[email protected]>
> 
> Currently, due to the inverse order, strcmp will produce negative result
> when the needle is towards the start of the haystack. Thus on the next
> iteration(s) we'll end up further towards the end and eventually fail to
> locate the entry.
> 
> > Cc: "12.0" <[email protected]>
> Signed-off-by: Emil Velikov <[email protected]>

This still sucks because the dispatch table contains doubled "glX"
prefixes in a couple of places, so the table isn't actually sorted.
Also, open-coding a binary search is a sin.

Better patch sent.

- ajax
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to