summaryrefslogtreecommitdiff
path: root/overlay/overlay.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-25 13:15:55 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-25 13:34:31 +0100
commitd929102591b25c1e9bf95ee58d95f86869e268fd (patch)
tree2b994ce26982c8637ecf19efc75d3cd0438ed6a9 /overlay/overlay.c
parent20a25f5eafd37c2864e04c3065f6355e1306c6a6 (diff)
overlay: Add a raw kms output
For when you don't have any display server, use brute force. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/overlay.c')
-rw-r--r--overlay/overlay.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/overlay/overlay.c b/overlay/overlay.c
index 1cf0eab3..a1d21df0 100644
--- a/overlay/overlay.c
+++ b/overlay/overlay.c
@@ -760,10 +760,14 @@ 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;
signal(SIGUSR1, signal_snapshot);