#include <sys/mman.h>
#include <linux/input.h>
+#include <drm_fourcc.h>
#include <wayland-client.h>
#include <wayland-cursor.h>
#define WINDOW_TITLE "Weston Compositor"
+static const uint32_t wayland_formats[] = {
+ DRM_FORMAT_ARGB8888,
+};
+
struct wayland_backend {
struct weston_backend base;
struct weston_compositor *compositor;
output->gl.egl_window,
output->gl.egl_window,
gl_renderer->alpha_attribs,
- NULL,
- 0) < 0)
+ wayland_formats,
+ ARRAY_LENGTH(wayland_formats)) < 0)
goto cleanup_window;
return 0;
EGL_PLATFORM_WAYLAND_KHR,
b->parent.wl_display,
gl_renderer->alpha_attribs,
- NULL,
- 0) < 0) {
+ wayland_formats,
+ ARRAY_LENGTH(wayland_formats)) < 0) {
weston_log("Failed to initialize the GL renderer; "
"falling back to pixman.\n");
b->use_pixman = true;