[PATCH 2/5] drm/exynos: use correct fb width/height

Inki Dae inki.dae at samsung.com
Wed Mar 11 06:35:17 PDT 2015


On 2015년 03월 07일 06:23, Rob Clark wrote:
> Signed-off-by: Rob Clark <robdclark at gmail.com>

Signed-off-by : Inki Dae <inki.dae at samsung.com>

Thanks,
Inki Dae

> ---
>  drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> index 84f8dfe..e71e331 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> @@ -76,6 +76,7 @@ static struct fb_ops exynos_drm_fb_ops = {
>  };
>  
>  static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
> +				     struct drm_fb_helper_surface_size *sizes,
>  				     struct drm_framebuffer *fb)
>  {
>  	struct fb_info *fbi = helper->fbdev;
> @@ -85,7 +86,7 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
>  	unsigned long offset;
>  
>  	drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth);
> -	drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height);
> +	drm_fb_helper_fill_var(fbi, helper, sizes->fb_width, sizes->fb_height);
>  
>  	/* RGB formats use only one buffer */
>  	buffer = exynos_drm_fb_buffer(fb, 0);
> @@ -189,7 +190,7 @@ static int exynos_drm_fbdev_create(struct drm_fb_helper *helper,
>  		goto err_destroy_framebuffer;
>  	}
>  
> -	ret = exynos_drm_fbdev_update(helper, helper->fb);
> +	ret = exynos_drm_fbdev_update(helper, sizes, helper->fb);
>  	if (ret < 0)
>  		goto err_dealloc_cmap;
>  
> 



More information about the dri-devel mailing list