ephyr: Fail if glamor is requested but not usable

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Olivier Fourdan 2015-02-02 10:41:06 +01:00 committed by Eric Anholt
parent 0a78b599b3
commit 251a067993
1 changed files with 6 additions and 3 deletions

View File

@ -1407,9 +1407,12 @@ ephyr_glamor_init(ScreenPtr screen)
ephyr_glamor_set_window_size(scrpriv->glamor,
scrpriv->win_width, scrpriv->win_height);
glamor_init(screen,
GLAMOR_USE_SCREEN |
GLAMOR_USE_PICTURE_SCREEN);
if (!glamor_init(screen,
GLAMOR_USE_SCREEN |
GLAMOR_USE_PICTURE_SCREEN)) {
FatalError("Failed to initialize glamor\n");
return FALSE;
}
return TRUE;
}