Native Display Auto-Detection For EGL is Come
Benjamin Franzke, the open-source developer that for a number of months has been contributed to Mesa / Wayland, has continued with his work. His latest achievement is landing some new EGL code in Mesa, which will benefit Wayland too.
Benjamin previously contributed Wayland platform support for Mesa EGL and back in April he made it possible to use Wayland with Gallium3D software rendering. In June he also published a graphics buffer manager for Mesa. He’s also been trying to get Wayland compliant with OpenWF, the Khronos specification for building composited windowing systems.
The work he’s pushed this week is an attempt to automatically detect the native platform type for EGL whether it be fbdev, Wayland, DRM, or X11. The detection is done based upon different characteristics of each platform, since the EGL specification doesn’t define how to manage different native platforms. This rather simple but needed code was pushed by this commit and reviewed by Kristian Høgsberg. There was also a related commit for debugging support.