diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2020-01-11 04:09:06 +0100 |
---|---|---|
committer | Xinliang Liu <xinliang.liu@linaro.org> | 2020-02-27 05:34:31 +0100 |
commit | 31d6feebec8e502d3a8e58beeef96e90d836e70b (patch) | |
tree | 0c438d117a77684f1eaa86d81f78529549671960 | |
parent | drm/hisilicon: Add new clock/resolution configurations (diff) | |
download | linux-31d6feebec8e502d3a8e58beeef96e90d836e70b.tar.xz linux-31d6feebec8e502d3a8e58beeef96e90d836e70b.zip |
drm/hisilicon: Enable the shadowfb for hibmc
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
-rw-r--r-- | drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c index 4a8a4cfb4b75..5f612f6ac223 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -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; |