]> 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)
commit7b0018f02cb243678635945d76b2ce69299f40d0
tree9f2df07e1ee0f0eecde3ea398a2a870ad08ec322
parent45afe33535fb7ada60e3ebbccd1509620d88eca2
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