Even simpler: I've attached a Mir branch that replicates the problem (-e5) using just Mir demos. Unfortunately that doesn't relieve SDL from owning the solution to this bug. Because even if Mir added support for 16 bpp formats, SDL would still need to be changed to use it.
I suggest in the shorter term SDL can solve the problem by simply choosing a Mir-compatible EGL config in requesting a minimum of 8 bits per channel: EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_BLUE_SIZE, 8,
But feel free to shame Mir for failing to provide stronger API guarantees that the EGL config actually matches the pixel format in use.
Even simpler: I've attached a Mir branch that replicates the problem (-e5) using just Mir demos. Unfortunately that doesn't relieve SDL from owning the solution to this bug. Because even if Mir added support for 16 bpp formats, SDL would still need to be changed to use it.
I suggest in the shorter term SDL can solve the problem by simply choosing a Mir-compatible EGL config in requesting a minimum of 8 bits per channel:
EGL_RED_ SIZE, 8,
EGL_GREEN_ SIZE, 8,
EGL_BLUE_ SIZE, 8,
But feel free to shame Mir for failing to provide stronger API guarantees that the EGL config actually matches the pixel format in use.