Skip to contentSkip to conversation

Remove nonexistant glamor flags from glamor_init

PATCH New Ian T. Jacobsen 1 participant 1 message Apr 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove nonexistant glamor flags from glamor_init

Glamor removed some flags.
This is my first time contributing via mailing list, but I hope I'm doing it correctly

src/nouveau_glamor.c +4 -0
index b8bca17..ca84df6 100644
@@ -217,10 +217,14 @@ nouveau_glamor_init(ScreenPtr screen)
    ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
    NVPtr pNv = NVPTR(scrn);
 
+#ifndef GLAMOR_USE_SCREEN
+    if (!glamor_init(screen, GLAMOR_USE_EGL_SCREEN)) {
+#else
    if (!glamor_init(screen, GLAMOR_INVERTED_Y_AXIS |
                 GLAMOR_USE_EGL_SCREEN |
                 GLAMOR_USE_SCREEN |
                 GLAMOR_USE_PICTURE_SCREEN)) {
+#endif
        xf86DrvMsg(scrn->scrnIndex, X_ERROR,
               "[GLAMOR] failed to initialise\n");
        return FALSE;

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau