[PATCH] modesetting: Enable Xv when using glamor
Alex Deucher
alexdeucher at gmail.com
Mon Dec 15 07:17:26 PST 2014
On Sun, Dec 14, 2014 at 1:29 AM, Keith Packard <keithp at keithp.com> wrote:
> This just calls the existing function to create the relevant Xv
> adaptor and hook it up.
>
> Signed-off-by: Keith Packard <keithp at keithp.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> hw/xfree86/drivers/modesetting/driver.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c
> index cad9000..d9a2982 100644
> --- a/hw/xfree86/drivers/modesetting/driver.c
> +++ b/hw/xfree86/drivers/modesetting/driver.c
> @@ -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);
>
> --
> 2.1.3
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
More information about the xorg-devel
mailing list