Commit 8a16620d authored by Daniel Martin's avatar Daniel Martin Committed by Keith Packard

modesetting: Create new EGL screen in drmmode_xf86crtc_resize

If we don't glamor_egl_create_textured_screen_ext() in
drmmode_xf86crtc_resize() we end up with a black screen and no client
window(s) visible.
Signed-off-by: default avatarDaniel Martin <>
Reviewed-by: Eric Anholt's avatarEric Anholt <>
Signed-off-by: Keith Packard's avatarKeith Packard <>
parent 0d63fa58
......@@ -49,6 +49,11 @@
#include "driver.h"
#ifdef GLAMOR
#include "glamor.h"
static struct dumb_bo *
dumb_bo_create(int fd,
const unsigned width, const unsigned height, const unsigned bpp)
......@@ -1243,6 +1248,20 @@ drmmode_xf86crtc_resize(ScrnInfoPtr scrn, int width, int height)
pitch, drmmode->shadow_fb);
#ifdef GLAMOR
if (drmmode->glamor) {
if (!glamor_egl_create_textured_screen_ext(screen,
scrn->displayWidth *
scrn->bitsPerPixel / 8,
NULL)) {
xf86DrvMsg(scrn->scrnIndex, X_ERROR,
"glamor_egl_create_textured_screen_ext() failed\n");
goto fail;
for (i = 0; i < xf86_config->num_crtc; i++) {
xf86CrtcPtr crtc = xf86_config->crtc[i];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment