drm/solomon: Use fbdev-shmem
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: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240419083331.7761-14-tzimmermann@suse.de
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <drm/drm_crtc_helper.h>
|
||||
#include <drm/drm_damage_helper.h>
|
||||
#include <drm/drm_edid.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>
|
||||
@@ -2029,7 +2029,7 @@ struct ssd130x_device *ssd130x_probe(struct device *dev, struct regmap *regmap)
|
||||
if (ret)
|
||||
return ERR_PTR(dev_err_probe(dev, ret, "DRM device register failed\n"));
|
||||
|
||||
drm_fbdev_generic_setup(drm, 32);
|
||||
drm_fbdev_shmem_setup(drm, 32);
|
||||
|
||||
return ssd130x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user