]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/gem/shmem: Extract drm_gem_shmem_init() from drm_gem_shmem_create()
authorLyude Paul <lyude@redhat.com>
Thu, 11 Sep 2025 22:57:38 +0000 (18:57 -0400)
committerLyude Paul <lyude@redhat.com>
Fri, 12 Sep 2025 23:04:29 +0000 (19:04 -0400)
commite3f4bdaf2c5bfebcfb483a8caa1fb989ec042e5b
tree87fa5582ab0dd48ff5d29795c8138db3548f7f1a
parent27ed0d64a0f37224ca865fbf8f0aacdc46a3f481
drm/gem/shmem: Extract drm_gem_shmem_init() from drm_gem_shmem_create()

With gem objects in rust, the most ideal way for us to be able to handle
gem shmem object creation is to be able to handle the memory allocation of
a gem object ourselves - and then have the DRM gem shmem helpers initialize
the object we've allocated afterwards. So, let's split out
drm_gem_shmem_init() from drm_gem_shmem_create() to allow for doing this.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://lore.kernel.org/r/20250911230147.650077-2-lyude@redhat.com
drivers/gpu/drm/drm_gem_shmem_helper.c
include/drm/drm_gem_shmem_helper.h