diff options
author | Andrzej Pietrasiewicz <andrzej.p@collabora.com> | 2020-03-11 17:55:36 +0300 |
---|---|---|
committer | Andrzej Pietrasiewicz <andrzej.p@collabora.com> | 2020-03-18 13:21:32 +0300 |
commit | f2b816d78a94319b7230430c3d1f99d9f1cb5bd0 (patch) | |
tree | f543a58e44d640501c05573df27f8a0151c535ec /Documentation/gpu | |
parent | 51b8479ab20ba3804348824c63abdb3f35b0aaeb (diff) | |
download | linux-f2b816d78a94319b7230430c3d1f99d9f1cb5bd0.tar.xz |
drm/core: Allow drivers allocate a subclass of struct drm_framebuffer
Allow allocating a specialized version of struct drm_framebuffer
by moving the actual fb allocation out of drm_gem_fb_create_with_funcs();
the respective functions names are adjusted to reflect that fact.
Please note, though, that standard size checks are performed on buffers,
so the drm_gem_fb_init_with_funcs() is useful for cases where those
standard size checks are appropriate or at least don't conflict the
checks to be performed in the specialized case.
Thanks to this change the drivers can call drm_gem_fb_init_with_funcs()
having allocated their special version of struct drm_framebuffer, exactly
the way the new version of drm_gem_fb_create_with_funcs() does.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: James Qian Wang <james.qian.wang@arm.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200311145541.29186-2-andrzej.p@collabora.com
Diffstat (limited to 'Documentation/gpu')
0 files changed, 0 insertions, 0 deletions