28d240f281
Currently, the gl-renderer setup is being done on per-output basis. This isn't desirable when trying to make weston run with zero outputs. When there are no outputs present, there is no surface available to attach an EGLContext to with eglMakeCurrent, which makes any EGL command fail. The problem is solved by using EGL_KHR_surfaceless_context to bind an EGLContext to EGL_NO_SURFACE, or if that is unavailable, creating a dummy PbufferSurface and binding an EGLContext to it, so EGL gets set up properly. v2: - Move PbufferSurface creation into its own function - Introduce a new EGLConfig with EGL_PBUFFER_BIT set and use it to create a PbufferSurface - Make PbufferSurface attributes definition static - Check for return of gl_renderer_setup and terminate in case it fails - Remove redundant gl_renderer_setup call from gl_renderer_output_create - Only destroy the dummy surface if it is valid This patch causes a warning from Mesa when using the i965 driver: libEGL warning: FIXME: egl/x11 doesn't support front buffer rendering. A bug has been filed about it since it seems to be spurious: https://bugs.freedesktop.org/show_bug.cgi?id=96694 Signed-off-by: Armin Krezović <krezovic.armin@gmail.com> [Pekka: filed a Mesa bug and added the note in commit msg] Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> |
||
---|---|---|
.. | ||
animation.c | ||
bindings.c | ||
clipboard.c | ||
compositor-drm.c | ||
compositor-drm.h | ||
compositor-fbdev.c | ||
compositor-fbdev.h | ||
compositor-headless.c | ||
compositor-headless.h | ||
compositor-rdp.c | ||
compositor-rdp.h | ||
compositor-wayland.c | ||
compositor-wayland.h | ||
compositor-x11.c | ||
compositor-x11.h | ||
compositor.c | ||
compositor.h | ||
data-device.c | ||
dbus.c | ||
dbus.h | ||
gl-renderer.c | ||
gl-renderer.h | ||
input.c | ||
launcher-direct.c | ||
launcher-impl.h | ||
launcher-logind.c | ||
launcher-util.c | ||
launcher-util.h | ||
launcher-weston-launch.c | ||
libbacklight.c | ||
libbacklight.h | ||
libinput-device.c | ||
libinput-device.h | ||
libinput-seat.c | ||
libinput-seat.h | ||
libweston.pc.in | ||
linux-dmabuf.c | ||
linux-dmabuf.h | ||
log.c | ||
noop-renderer.c | ||
pixman-renderer.c | ||
pixman-renderer.h | ||
screenshooter.c | ||
spring-tool.c | ||
timeline-object.h | ||
timeline.c | ||
timeline.h | ||
vaapi-recorder.c | ||
vaapi-recorder.h | ||
version.h.in | ||
vertex-clipping.c | ||
vertex-clipping.h | ||
weston-egl-ext.h | ||
weston-launch.c | ||
weston-launch.h | ||
zoom.c |