I'm going to add another case for Android shortly, and then we can keep the logic all in one spot. Reviewed-by: Roman Stratiienko <r.stratiienko@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10389>