egl_gbm: fix GBM surface creation with Nvidia drivers
Nvidia proprietary driver don't support creation flags In the regular scenario (without Nvidia hack), if we allocate the surface without GBM_BO_USE_RENDERING flag, the eglCreatePlatformWindowSurface (that we call right after) is supposed to fail. from https://registry.khronos.org/EGL/extensions/KHR/EGL_KHR_platform_gbm.txt To obtain a rendering surface from a GBM surface, call eglCreatePlatformWindowSurface with a <dpy> that belongs to the GBM platform and a <native_window> that points to a `struct gbm_surface`. If <native_window> was created without the GBM_BO_USE_RENDERING flag, or if the color format of <native_window> differs from the EGL_NATIVE_VISUAL_ID of <config>, then the function fails and generates EGL_BAD_MATCH.
parent
a63946b5
No related branches found
No related tags found
Please register or sign in to comment