]> 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)
commit3a5c846f87f04cf9b3f42c3b31d4861de9158cfa
tree9f2df07e1ee0f0eecde3ea398a2a870ad08ec322
parent63b55d013d00ae2811196bb463e9a0fbafc7ce29
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