]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/tiny/simpledrm: Use fbdev-shmem
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 19 Apr 2024 08:29:10 +0000 (10:29 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 2 May 2024 09:33:20 +0000 (11:33 +0200)
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: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240419083331.7761-18-tzimmermann@suse.de
drivers/gpu/drm/tiny/simpledrm.c

index 1d8fa07572c52da24d3e8cef40e89df41d696bdf..d19e102894282fcd94e242b4b09473683eb0a345 100644 (file)
@@ -17,7 +17,7 @@
 #include <drm/drm_damage_helper.h>
 #include <drm/drm_device.h>
 #include <drm/drm_drv.h>
-#include <drm/drm_fbdev_generic.h>
+#include <drm/drm_fbdev_shmem.h>
 #include <drm/drm_format_helper.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem_atomic_helper.h>
@@ -1042,7 +1042,7 @@ static int simpledrm_probe(struct platform_device *pdev)
        if (color_mode == 16)
                color_mode = sdev->format->depth; // can be 15 or 16
 
-       drm_fbdev_generic_setup(dev, color_mode);
+       drm_fbdev_shmem_setup(dev, color_mode);
 
        return 0;
 }