]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fb-helper: Instanciate shadow FB if configured in device's mode_config
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 5 Jul 2019 07:31:00 +0000 (09:31 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Aug 2019 13:01:35 +0000 (15:01 +0200)
commit47236b00794e4ba5a78fd5663ffc36058edda4b8
tree2ec3fe68cca1208ff9dd6fa2ed33e9e85e4fd189
parentfcfca25591bcf007943d1df97d583fbd3eaac0a6
drm/fb-helper: Instanciate shadow FB if configured in device's mode_config

Generic framebuffer emulation uses a shadow buffer for framebuffers with
dirty() function. If drivers want to use the shadow FB without such a
function, they can now set prefer_shadow or prefer_shadow_fbdev in their
mode_config structures. The former flag is exported to userspace, the
latter flag is fbdev-only.

v3:
* only schedule dirty worker if fbdev uses shadow fb
* test shadow fb settings with boolean operators
* use bool for struct drm_mode_config.prefer_shadow_fbdev
* fix documentation comments

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Tested-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/315834/
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_mode_config.h