modesetting: Enable Xv when using glamor
This just calls the existing function to create the relevant Xv adaptor and hook it up. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
5a541bd5e7
commit
2c7111235c
|
@ -1103,6 +1103,19 @@ ScreenInit(ScreenPtr pScreen, int argc, char **argv)
|
|||
|
||||
xf86DPMSInit(pScreen, xf86DPMSSet, 0);
|
||||
|
||||
#ifdef GLAMOR
|
||||
if (ms->drmmode.glamor) {
|
||||
XF86VideoAdaptorPtr glamor_adaptor;
|
||||
|
||||
glamor_adaptor = glamor_xv_init(pScreen, 16);
|
||||
if (glamor_adaptor != NULL)
|
||||
xf86XVScreenInit(pScreen, &glamor_adaptor, 1);
|
||||
else
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
|
||||
"Failed to initialize XV support.\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
if (serverGeneration == 1)
|
||||
xf86ShowUnusedOptions(pScrn->scrnIndex, pScrn->options);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user