]> Gentwo Git Trees - linux/.git/commit
drm/client: Move dumb-buffer handling to drm_client_framebuffer_create()
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Oct 2025 12:09:13 +0000 (13:09 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 30 Oct 2025 20:01:21 +0000 (21:01 +0100)
commit2d262a483c7a128e50cdb64a0ec20c6d78df66cc
tree74411fd0e48f89a035e4ef61aab41ae06e5f5637
parentdce4657ff526b65007fe8d5c92968a933cc7c9da
drm/client: Move dumb-buffer handling to drm_client_framebuffer_create()

Dumb-buffer creation within the client code is asymetrically balanced
across drm_client_buffer_create() and drm_client_framebuffer_create().
Put all dumb-buffer code into drm_client_framebuffer_create() and leave
client-buffer initialization to drm_client_buffer_create(). Clarifies
responsibility between these functions.

Apart form the architectural improvements, drm_client_buffer_create()
can now be exported if needed by clients. The client will be able to
initialize buffers that have been created from other interfaces than
dumb buffers.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Francesco Valla <francesco@valla.it>
Link: https://patch.msgid.link/20251027121042.143588-3-tzimmermann@suse.de
drivers/gpu/drm/drm_client.c