7aff69bcdd
The main goal is to never fail to upload non-VBO vertex arrays. When glthread synchronized, it didn't upload vertices, expecting st/mesa to do that. This keeps the required sync, and then upload vertices in glthread. Also, reorder the code and remove goto statements. This is pretty much a rewrite. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20624>