Displaying 3 results from an estimated 3 matches for "nvpreinitdrm".
2012 May 23
1
[PATCH (nouveau)] Add xwayland support
...(pScreen);
if (!pNv->NoAccel)
@@ -507,6 +610,11 @@ NVFreeScreen(int scrnIndex, int flags)
if (!pNv)
return;
+#ifdef XORG_WAYLAND
+ if (pNv->xwl_screen)
+ xwl_screen_destroy(pNv->xwl_screen);
+#endif
+
NVCloseDRM(pScrn);
free(pScrn->driverPrivate);
@@ -568,10 +676,16 @@ NVPreInitDRM(ScrnInfoPtr pScrn)
NVPtr pNv = NVPTR(pScrn);
char *bus_id;
int ret;
+ int drm_fd;
if (!NVDRIGetVersion(pScrn))
return FALSE;
+#ifdef XORG_WAYLAND
+ if (pNv->xwl_screen)
+ drm_fd = xwl_screen_get_drm_fd(pNv->xwl_screen);
+ else {
+#endif
/* Load the kernel module, and open th...
2009 Sep 14
1
[Nouveau-cvs] xf86-video-nv: Branch 'master'
...+ nouveau_bo_unmap(pNv->scanout);
> +
> pScreen->DestroyPixmap(pdpix);
> pScreen->DestroyPixmap(pspix);
> }
> diff --git a/src/nv_driver.c b/src/nv_driver.c
> index 9317b5e..645895d 100644
> --- a/src/nv_driver.c
> +++ b/src/nv_driver.c
> @@ -741,6 +741,8 @@ NVPreInitDRM(ScrnInfoPtr pScrn)
> */
> #ifdef XF86DRM_MODE
> pNv->kms_enable = !drmCheckModesettingSupported(bus_id);
> + if (pNv->kms_enable)
> + pScrn->canDoBGNoneRoot = 1;
> #endif
> xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
> "[drm] kernel modesetting...
2012 Jul 04
0
[PATCH] Add xwayland support (v2)
..._screen);
+
drmmode_screen_fini(pScreen);
if (!pNv->NoAccel)
@@ -499,6 +584,9 @@ NVFreeScreen(FREE_SCREEN_ARGS_DECL)
if (!pNv)
return;
+ if (pNv->xwl_screen)
+ xwl_screen_destroy(pNv->xwl_screen);
+
NVCloseDRM(pScrn);
free(pScrn->driverPrivate);
@@ -560,22 +648,29 @@ NVPreInitDRM(ScrnInfoPtr pScrn)
NVPtr pNv = NVPTR(pScrn);
char *bus_id;
int ret;
+ int drm_fd;
if (!NVDRIGetVersion(pScrn))
return FALSE;
- /* Load the kernel module, and open the DRM */
- bus_id = DRICreatePCIBusID(pNv->PciInfo);
- ret = DRIOpenDRMMaster(pScrn, SAREA_MAX, bus_id, "nouvea...