cherry-pick bgra/vertex-array checks to 4.12
Adding these patches atop 4.12.3 improves performance quite a bit on Asahi. Might be because of the level of GL/GLES/EGL exposed, but either way, it's the difference between popovers glitching in resizes and not.