[PATCH v2 xserver 08/11] modesetting: use drmmode_bo_for_pixmap in ms_do_pageflip

Qiang Yu Qiang.Yu at amd.com
Sat Jan 7 08:01:29 UTC 2017


Signed-off-by: Qiang Yu <Qiang.Yu at amd.com>
---
 hw/xfree86/drivers/modesetting/pageflip.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hw/xfree86/drivers/modesetting/pageflip.c b/hw/xfree86/drivers/modesetting/pageflip.c
index 4dc05ec..e33abdf 100644
--- a/hw/xfree86/drivers/modesetting/pageflip.c
+++ b/hw/xfree86/drivers/modesetting/pageflip.c
@@ -238,9 +238,7 @@ ms_do_pageflip(ScreenPtr screen,
     struct ms_flipdata *flipdata;
     glamor_block_handler(screen);
 
-    new_front_bo.gbm = glamor_gbm_bo_from_pixmap(screen, new_front);
-    new_front_bo.dumb = NULL;
-    if (!new_front_bo.gbm) {
+    if (!drmmode_bo_for_pixmap(&ms->drmmode, &new_front_bo, new_front)) {
         xf86DrvMsg(scrn->scrnIndex, X_ERROR,
                    "Failed to get GBM bo for flip to new front.\n");
         return FALSE;
-- 
2.7.4



More information about the xorg-devel mailing list