drm/vboxvideo: Use drm_gem_fb_create_with_dirty instead of drm_gem_fb_create
Subsystems (3)
PATCH 1/1 drm/vboxvideo: Use drm_gem_fb_create_with_dirty instead of drm_gem_fb_create
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.
--- drivers/gpu/drm/vboxvideo/vbox_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vboxvideo/vbox_mode.c +1 -1
@@ -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, };
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Am 28.10.19 um 14:31 schrieb Hans de Goede:
Quoted 8 lines
Commit
7d79aa8628fe("drm/vboxvideo: Replace structvram_framebufferwith 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_dirtynotdrm_gem_fb_create.
Quoted 5 lines
This commit fixes this, fixing the framebuffer not always updating.
Cc Thomas Zimmermann <[email protected]>Fixes Commit 7d79aa8628fe ("drm/vboxvideo: Replace struct vram_framebuffer with generic implemenation")Signed-off-by Hans de Goede <[email protected]>
Quoted 18 lines
--- drivers/gpu/drm/vboxvideo/vbox_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/vboxvideo/vbox_mode.c +1
-1@@ -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, };
Signature · 6 lines
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
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi,
Quoted 10 lines · Thomas Zimmermann
Am 28.10.19 um 14:31 schrieb Hans de Goede:
Quoted 8 lines
Commit
7d79aa8628fe("drm/vboxvideo: Replace structvram_framebufferwith 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_dirtynotdrm_gem_fb_create.
Quoted 7 lines
Quoted 5 lines
This commit fixes this, fixing the framebuffer not always updating.
Cc Thomas Zimmermann <[email protected]>Fixes Commit 7d79aa8628fe ("drm/vboxvideo: Replace struct vram_framebuffer with generic implemenation")Signed-off-by Hans de Goede <[email protected]>
Thanks, pushed to drm-misc-next
Regards,
Hans
Quoted 11 lines
Quoted 11 lines
--- drivers/gpu/drm/vboxvideo/vbox_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/vboxvideo/vbox_mode.c +0
-0@@ -838,7 +838,7 @@ static int vbox_connector_init(struct drm_device *dev, }
Quoted 8 lines
drivers/gpu/drm/vboxvideo/vbox_mode.c static int vbox_connector_init(struct drm_device *dev, · line 844
Quoted 7 lines
drivers/gpu/drm/vboxvideo/vbox_mode.c +1
-1static 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, };
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel