nir: Stabilize compact_components sort
authorJames Park <jpark37@lagfreegames.com>
Sun, 1 Nov 2020 23:34:28 +0000 (15:34 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 2 Nov 2020 17:15:15 +0000 (17:15 +0000)
commitce5e2e21317d0bd29b4b46f8efd37985a62f5460
treeb0cd60b8ae4c4410c3adaa94e21eaf670e8f57d6
parentaaa94d92d523b550bb8f20146505f0becb82bcc2
nir: Stabilize compact_components sort

Incorporate location_frac into qsort comparison. qsort is not required
to be stable, and MSVC implementation is not.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7399>
src/compiler/nir/nir_linking_helpers.c