nir/load_store_vectorize: stabilize entry sort

I think this was unlikely to cause issues, even if the qsort()
implementation is unstable.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35255>
This commit is contained in:
Rhys Perry 2025-05-27 12:43:56 +01:00 committed by Marge Bot
parent 397920c16e
commit dd45bf5bce

View file

@ -241,8 +241,13 @@ sort_entries(const void *a_, const void *b_)
return 1;
else if (a->offset_signed < b->offset_signed)
return -1;
else
return 0;
if (a->index > b->index)
return 1;
else if (a->index < b->index)
return -1;
return 0;
}
static unsigned