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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user