From d929102591b25c1e9bf95ee58d95f86869e268fd Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 25 Aug 2013 13:15:55 +0100 Subject: overlay: Add a raw kms output For when you don't have any display server, use brute force. Signed-off-by: Chris Wilson --- overlay/overlay.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'overlay/overlay.c') diff --git a/overlay/overlay.c b/overlay/overlay.c index 1cf0eab3..a1d21df0 100644 --- a/overlay/overlay.c +++ b/overlay/overlay.c @@ -760,9 +760,13 @@ int main(int argc, char **argv) ctx.width = 640; ctx.height = 236; - ctx.surface = x11_overlay_create(&config, &ctx.width, &ctx.height); + ctx.surface = NULL; + if (ctx.surface == NULL) + ctx.surface = x11_overlay_create(&config, &ctx.width, &ctx.height); if (ctx.surface == NULL) ctx.surface = x11_window_create(&config, &ctx.width, &ctx.height); + if (ctx.surface == NULL) + ctx.surface = kms_overlay_create(&config, &ctx.width, &ctx.height); if (ctx.surface == NULL) return ENOMEM; -- cgit v1.2.3