search for: assigned_crtcs

Displaying 4 results from an estimated 4 matches for "assigned_crtcs".

2015 Jun 28
3
[PATCH] Take shift in crtc positions for ZaphodHeads configs into account.
...nt crtcs_needed = 0; + int crtcshift; drmmode = xnfalloc(sizeof *drmmode); drmmode->fd = fd; @@ -1444,8 +1445,9 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, int fd, int cpp) } xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Initializing outputs ...\n"); + crtcshift = ffs(pNVEnt->assigned_crtcs ^ 0xffffffff) - 1; for (i = 0; i < drmmode->mode_res->count_connectors; i++) - crtcs_needed += drmmode_output_init(pScrn, drmmode, i); + crtcs_needed += drmmode_output_init(pScrn, drmmode, i, crtcshift); xf86DrvMsg(pScrn->scrnIndex, X_INFO, "%d crtcs needed for screen...
2015 Aug 06
0
[PATCH] Take shift in crtc positions for ZaphodHeads configs into account.
...xnfalloc(sizeof *drmmode); > drmmode->fd = fd; > @@ -1444,8 +1445,9 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, int fd, int cpp) > } > > xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Initializing outputs ...\n"); > + crtcshift = ffs(pNVEnt->assigned_crtcs ^ 0xffffffff) - 1; Mario, any objections if I touch this up as ~pNVEnc->assigned_crtcs? XOR with ~0 is not a pattern I've seen a lot. > for (i = 0; i < drmmode->mode_res->count_connectors; i++) > - crtcs_needed += drmmode_output_init(pScrn, drmmode, i)...
2018 Jan 13
0
[PATCH] drmmode: update logic for dynamic connectors, paths, and tiles
...mode_res->count_crtcs) { - drmModeFreeResources(drmmode->mode_res); + if (!mode_res->count_connectors || + !mode_res->count_crtcs) { free(drmmode); goto done; } xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Initializing outputs ...\n"); crtcshift = ffs(pNVEnt->assigned_crtcs ^ 0xffffffff) - 1; - for (i = 0; i < drmmode->mode_res->count_connectors; i++) - crtcs_needed += drmmode_output_init(pScrn, drmmode, i, crtcshift); + for (i = 0; i < mode_res->count_connectors; i++) + crtcs_needed += drmmode_output_init(pScrn, drmmode, mode_res, i, FALSE, crtcshift...
2018 Oct 09
0
[PATCH] drmmode: update logic for dynamic connectors, paths, and tiles
...mode_res->count_crtcs) { - drmModeFreeResources(drmmode->mode_res); + if (!mode_res->count_connectors || + !mode_res->count_crtcs) { free(drmmode); goto done; } xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Initializing outputs ...\n"); crtcshift = ffs(pNVEnt->assigned_crtcs ^ 0xffffffff) - 1; - for (i = 0; i < drmmode->mode_res->count_connectors; i++) - crtcs_needed += drmmode_output_init(pScrn, drmmode, i, crtcshift); + for (i = 0; i < mode_res->count_connectors; i++) + crtcs_needed += drmmode_output_init(pScrn, drmmode, mode_res, i, FALSE, crtcshift...