From 5dc1c1c8ebad8b9fdad502d564b0819bf9d7bd4b Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 25 Oct 2017 15:28:46 -0400 Subject: [PATCH] wl-drm: Fix issue of not being able to set output mode If we pass in screen geometry here when trying to set an output mode, we can encounter "out of memory" errors from libdrm with outputs that have a high resolution. As it turns out, we should be passing 0, 0 for the x/y values when trying to set an output mode. @fix Signed-off-by: Chris Michael --- src/modules/wl_drm/e_mod_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c index e4355268e..f533f1907 100644 --- a/src/modules/wl_drm/e_mod_main.c +++ b/src/modules/wl_drm/e_mod_main.c @@ -580,8 +580,7 @@ _drm2_randr_apply(void) if (s->config.priority > top_priority) top_priority = s->config.priority; - ecore_drm2_output_mode_set(output, mode, s->config.geom.x, - s->config.geom.y); + ecore_drm2_output_mode_set(output, mode, 0, 0); /* TODO: cannot support rotations until we support planes * and we cannot support planes until Atomic support is in */