drm/hisilicon: Enable the shadowfb for hibmc
authorTian Tao <tiantao6@hisilicon.com>
Sat, 11 Jan 2020 03:09:06 +0000 (11:09 +0800)
committerXinliang Liu <xinliang.liu@linaro.org>
Thu, 27 Feb 2020 04:34:31 +0000 (04:34 +0000)
set the prefer_shadow as 1,so we use the shadowfb to acceleration.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Gong junjie <gongjunjie2@huawei.com>
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1578712146-16327-1-git-send-email-tiantao6@hisilicon.com
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c

index 4a8a4cfb4b756d3c502fe59bb8db7e26cc75e85a..5f612f6ac223aee8134df34832142b1e8bf622dd 100644 (file)
@@ -95,7 +95,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;