[openchrome-devel] xf86-video-openchrome: 2 commits - configure.ac src/via_driver.c

Kevin Brace kevinbrace at kemper.freedesktop.org
Sat Jan 4 17:41:49 UTC 2020


 configure.ac     |    2 +-
 src/via_driver.c |   18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 4ca942db8829a7a654860c495d81bd1582cf63bf
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Sat Jan 4 11:38:35 2020 -0600

    Version bumped to 0.6.202
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/configure.ac b/configure.ac
index fabd7a2..7a15105 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
 # Initialize Autoconf
 AC_PREREQ([2.60])
 AC_INIT([xf86-video-openchrome],
-        [0.6.201],
+        [0.6.202],
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome],
         [xf86-video-openchrome])
 
commit ac4b39b1c6aafe089e741f039cceb3a5684764ef
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Sat Jan 4 11:37:04 2020 -0600

    Make off screen back frame buffer the last item to be allocated
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_driver.c b/src/via_driver.c
index 50c891d..ab1062d 100644
--- a/src/via_driver.c
+++ b/src/via_driver.c
@@ -1420,15 +1420,6 @@ VIAScreenInit(SCREEN_INIT_ARGS_DECL)
     if (!drm_bo_manager_init(pScrn))
         return FALSE;
 
-    format = map_legacy_formats(pScrn->bitsPerPixel, pScrn->depth);
-    pVia->drmmode.front_bo = drm_bo_alloc_surface(pScrn, pScrn->virtualX, pScrn->virtualY,
-                                                    format, 16, TTM_PL_FLAG_VRAM);
-    if (!pVia->drmmode.front_bo)
-        return FALSE;
-
-    if (!drm_bo_map(pScrn, pVia->drmmode.front_bo))
-        return FALSE;
-
     if ((!pVia->NoAccel) &&
         ((pVia->directRenderingType == DRI_NONE)
 #ifdef HAVE_DRI
@@ -1543,6 +1534,15 @@ VIAScreenInit(SCREEN_INIT_ARGS_DECL)
         }
     }
 
+    format = map_legacy_formats(pScrn->bitsPerPixel, pScrn->depth);
+    pVia->drmmode.front_bo = drm_bo_alloc_surface(pScrn, pScrn->virtualX, pScrn->virtualY,
+                                                    format, 16, TTM_PL_FLAG_VRAM);
+    if (!pVia->drmmode.front_bo)
+        return FALSE;
+
+    if (!drm_bo_map(pScrn, pVia->drmmode.front_bo))
+        return FALSE;
+
     pScrn->vtSema = TRUE;
     pScreen->SaveScreen = xf86SaveScreen;
     pVia->CloseScreen = pScreen->CloseScreen;


More information about the openchrome-devel mailing list