Skip to content

Commit

Permalink
drm/tiny/cirrus: 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>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240419083331.7761-15-tzimmermann@suse.de
  • Loading branch information
Thomas Zimmermann committed May 2, 2024
1 parent 92e7a36 commit eb9479a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/tiny/cirrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <drm/drm_damage_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_edid.h>
#include <drm/drm_fbdev_generic.h>
#include <drm/drm_fbdev_shmem.h>
#include <drm/drm_file.h>
#include <drm/drm_format_helper.h>
#include <drm/drm_fourcc.h>
Expand Down Expand Up @@ -716,7 +716,7 @@ static int cirrus_pci_probe(struct pci_dev *pdev,
if (ret)
return ret;

drm_fbdev_generic_setup(dev, 16);
drm_fbdev_shmem_setup(dev, 16);
return 0;
}

Expand Down

0 comments on commit eb9479a

Please sign in to comment.