mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 12:40:23 +01:00
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:
parent
397920c16e
commit
dd45bf5bce
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue