mesa/main: fix chromium on wayland
There's two issues that makes Chromium fail to work properly on Wayland.
First of all, I didn't update _mesa_base_tex_format
properly while adding EXT_texture_storage
support. My bad.
But second, and much worse: Chromium thinks that EXT_texture_storage
allows using GL_BGRA8_EXT
for functions like glTexSubImage2D()
, which just isn't the case. But since the problematic logic was introduced all the way back in 2016, it seems unlikely that we're going to just be able to patch Chrome and be done with it. So this MR also adds a driconf variable that allows GL_BGRA8_EXT
elsewhere, and hooks it up for Chromium and Chrome.
There's probably a lot of derivative browsers that has the same issue, but I'm not really interested in going hunting for every possible fork at this point. People can patch this as they need it.
...And let's not talk about Electron apps
Closes: #10550 (closed)