[PATCH] drm/vboxvideo: Use drm_gem_fb_create_with_dirty instead of drm_gem_fb_create

Thomas Zimmermann tzimmermann at suse.de
Mon Oct 28 13:38:07 UTC 2019


Am 28.10.19 um 14:31 schrieb Hans de Goede:
> Commit 7d79aa8628fe ("drm/vboxvideo: Replace struct vram_framebuffer
> with generic implemenation") removed the diy framebuffer code from
> the vboxvideo driver, resulting in a nice cleanup.
> 
> But since the vboxvideo driver needs the generic dirty tracking code,
> it's drm_mode_config_funcs.fb_create should be set to
> drm_gem_fb_create_with_dirty not drm_gem_fb_create.
> 
> This commit fixes this, fixing the framebuffer not always updating.
> 
> Cc: Thomas Zimmermann <tzimmermann at suse.de>
> Fixes: Commit 7d79aa8628fe ("drm/vboxvideo: Replace struct vram_framebuffer with generic implemenation")
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>

Acked-by: Thomas Zimmermann <tzimmermann at suse.de>

> ---
>  drivers/gpu/drm/vboxvideo/vbox_mode.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/vboxvideo/vbox_mode.c b/drivers/gpu/drm/vboxvideo/vbox_mode.c
> index d9818a8a32fa..f15ed2272205 100644
> --- a/drivers/gpu/drm/vboxvideo/vbox_mode.c
> +++ b/drivers/gpu/drm/vboxvideo/vbox_mode.c
> @@ -838,7 +838,7 @@ static int vbox_connector_init(struct drm_device *dev,
>  }
>  
>  static const struct drm_mode_config_funcs vbox_mode_funcs = {
> -	.fb_create = drm_gem_fb_create,
> +	.fb_create = drm_gem_fb_create_with_dirty,
>  	.atomic_check = drm_atomic_helper_check,
>  	.atomic_commit = drm_atomic_helper_commit,
>  };
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20191028/1ffbbdbc/attachment.sig>


More information about the dri-devel mailing list