There should be a way to tell the compositor if wl_buffer's contents are y-flipped or not. X11 and EGL already have similar functionality: GLX_Y_INVERTED_EXT on X11 EGL_Y_INVERTED_NOK on EGL - Nokia's extension. Both are not suitable for wayland since wayland is obviously not related to X11 and EGL_Y_INVERTED_NOK is a part of EGL_NOK_texture_from_pixmap extension, which implies pixmap support (wayland doesn't support pixmaps). Thus, eglQueryWaylandBufferWL should be extended with a new attribute, something like EGL_WAYLAND_Y_INVERTED_WL, OpenGL implementation will then be able to tell the compositor that wl_buffer is y-flipped
Fixed in weston commit bfbb8e59fadda112fcdb0bf0a0ed2c0b6c1e1923 mesa commit 1281a90532511bb5dcecab1220aa89aa42c4a142
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.