[PATCH] drm/hisilicon: Enable the shadowfb for hibmc

Xinliang Liu xinliang.liu at linaro.org
Thu Feb 27 04:40:12 UTC 2020


Thanks for the patch.
Applied to drm-misc-next.

On Sat, 11 Jan 2020 at 11:09, Tian Tao <tiantao6 at hisilicon.com> wrote:

> set the prefer_shadow as 1,so we use the shadowfb to acceleration.
>
> Signed-off-by: Tian Tao <tiantao6 at hisilicon.com>
> Signed-off-by: Gong junjie <gongjunjie2 at huawei.com>
> ---
>  drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
> b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
> index dbdeb2b..2883555 100644
> --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
> +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
> @@ -93,7 +93,7 @@ static int hibmc_kms_init(struct hibmc_drm_private *priv)
>
>         priv->dev->mode_config.fb_base = priv->fb_base;
>         priv->dev->mode_config.preferred_depth = 24;
> -       priv->dev->mode_config.prefer_shadow = 0;
> +       priv->dev->mode_config.prefer_shadow = 1;
>
>         priv->dev->mode_config.funcs = (void *)&hibmc_mode_funcs;
>
> --
> 2.7.4
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200227/8a510939/attachment-0001.htm>


More information about the dri-devel mailing list