i.MX X.org Video

i.MX X.org Video Driver for i.MX Graphics 2D acceleration (mirror).

0 Commits   4 Branches   26 Tags
author: Yong Gan <yong.gan@nxp.com> 2017-11-21 08:31:44 +0800 committer: Yong Gan <yong.gan@nxp.com> 2017-11-21 10:20:33 +0800 commit: 30163df36c62b3375dfd77adb18e46fb5fbc0c77 parent: 74c20b88b01356843d10cf3a055dacb44596844c
Commit Summary:
MGS-3426 [#ccc] x11 server down when run sdk app multi times in background
Diffstat:
1 file changed, 3 insertions, 3 deletions
diff --git a/EXA/src/imx_drm/imx_g2d_dri3.c b/EXA/src/imx_drm/imx_g2d_dri3.c
index e46cf8b..349b1b4 100644
--- a/EXA/src/imx_drm/imx_g2d_dri3.c
+++ b/EXA/src/imx_drm/imx_g2d_dri3.c
@@ -124,7 +124,7 @@ static int imx_g2d_dri3_fd_from_pixmap(ScreenPtr pScreen, PixmapPtr pPixmap,
     Viv2DPixmapPtr pVivPix = exaGetPixmapDriverPrivate(pPixmap);
     
     if (!pVivPix || !pVivPix->mVidMemInfo ) {
-		return BadMatch;
+		return -1;
     }
     surf = (GenericSurfacePtr)pVivPix->mVidMemInfo;
 	
@@ -133,7 +133,7 @@ static int imx_g2d_dri3_fd_from_pixmap(ScreenPtr pScreen, PixmapPtr pPixmap,
 
 	fd = g2d_buf_export_fd(surf->g2dbuf);
     if( fd < 0) {
-        return BadMatch;
+        return -1;
     }
 	*stride = pPixmap->devKind;
 	*size = surf->g2dbuf->buf_size;
@@ -158,4 +158,4 @@ Bool imx_g2d_dri3_creenInit(ScreenPtr pScreen){
 	return dri3_screen_init(pScreen, &imx_g2d_dri3_info);
 }
 
-#endif
\ No newline at end of file
+#endif