]> git.baikalelectronics.ru Git - kernel.git/commit
drm/gem: Clear mapping addresses for unused framebuffer planes
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 30 Jul 2021 18:35:09 +0000 (20:35 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 2 Aug 2021 14:41:20 +0000 (16:41 +0200)
commit0ec77bd92b513aa4e556e5b92ccd993677d21cbc
tree9f2df07e1ee0f0eecde3ea398a2a870ad08ec322
parentf6424ecdb3c8aba18997a6992f780ab9c27734bc
drm/gem: Clear mapping addresses for unused framebuffer planes

Set the returned mapping address to NULL if a framebuffer plane does
not have a BO associated with it. Likewise, ignore mappings of NULL
during framebuffer unmap operations. Allows users of the functions to
perform unmap operations of certain BOs by themselfes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210730183511.20080-4-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_framebuffer_helper.c