Skip to content

Commit

Permalink
drm/udl: Use fbdev-shmem
Browse files Browse the repository at this point in the history
Implement fbdev emulation with fbdev-shmem. Avoids the overhead of
fbdev-generic's additional shadow buffering. No functional changes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Sean Paul <sean@poorly.run>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240419083331.7761-19-tzimmermann@suse.de
  • Loading branch information
Thomas Zimmermann committed May 2, 2024
1 parent 5134fa7 commit 0f8c731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/udl/udl_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <linux/module.h>

#include <drm/drm_drv.h>
#include <drm/drm_fbdev_generic.h>
#include <drm/drm_fbdev_shmem.h>
#include <drm/drm_file.h>
#include <drm/drm_gem_shmem_helper.h>
#include <drm/drm_managed.h>
Expand Down Expand Up @@ -117,7 +117,7 @@ static int udl_usb_probe(struct usb_interface *interface,

DRM_INFO("Initialized udl on minor %d\n", udl->drm.primary->index);

drm_fbdev_generic_setup(&udl->drm, 0);
drm_fbdev_shmem_setup(&udl->drm, 0);

return 0;
}
Expand Down

0 comments on commit 0f8c731

Please sign in to comment.