linux/Documentation/gpu
Noralf Trønnes b39b5394fa drm/gem: Add drm_gem_object_funcs
This adds an optional function table on GEM objects.
The main benefit is for drivers that support more than one type of
memory (shmem,vram,cma) for their buffers depending on the hardware it
runs on. With the callbacks attached to the GEM object itself, it is
easier to have core helpers for the the various buffer types. The driver
only has to make the decision about buffer type on GEM object creation
and all other callbacks can be handled by the chosen helper.

drm_driver->gem_prime_res_obj has not been added since there's a todo to
put a reservation_object into drm_gem_object.

v3: Add todo entry

v2: Drop drm_gem_object_funcs->prime_mmap in favour of
drm_gem_prime_mmap() (Daniel Vetter)

v1:
- drm_gem_object_funcs.map -> .prime_map let it only do PRIME mmap like
  the function it superseeds (Daniel Vetter)
- Flip around the if ladders and make obj->funcs the first choice
  highlighting the fact that this the new default way of doing it
  (Daniel Vetter)

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181110145647.17580-4-noralf@tronnes.org
2018-11-20 14:56:18 +01:00
..
bridge
amdgpu.rst drm/amdgpu: update documentation for amdgpu_drv.c 2018-07-05 16:40:04 -05:00
conf.py
drivers.rst drm/vkms: Add kerneldoc entry 2018-09-11 20:06:35 +02:00
drm-client.rst drm: Begin an API for in-kernel clients 2018-07-10 14:51:37 +02:00
drm-internals.rst
drm-kms-helpers.rst drm: Extract drm_atomic_state_helper.[hc] 2018-10-05 18:04:09 +02:00
drm-kms.rst drm: extract drm_atomic_uapi.c 2018-09-09 14:19:18 +02:00
drm-mm.rst Merge branch 'drm-next-4.20' of git://people.freedesktop.org/~agd5f/linux into drm-next 2018-09-21 09:52:53 +10:00
drm-uapi.rst drm/doc: Update errno handbook 2018-10-24 14:20:36 +02:00
i915.rst drm/i915: Move a bunch of workaround-related code to its own file 2018-04-11 22:47:01 +01:00
index.rst drm: Begin an API for in-kernel clients 2018-07-10 14:51:37 +02:00
introduction.rst
kms-properties.csv drm: content-type property for HDMI connector 2018-05-17 18:58:35 +03:00
meson.rst
msm-crash-dump.rst drm/msm/gpu: Add the buffer objects from the submit to the crash dump 2018-07-30 08:50:10 -04:00
pl111.rst
tegra.rst
tinydrm.rst
todo.rst drm/gem: Add drm_gem_object_funcs 2018-11-20 14:56:18 +01:00
tve200.rst drm/tve200: fix kernel-doc documentation comment include 2018-02-21 09:26:38 +02:00
v3d.rst drm/v3d: Add missing v3d documentation structure. 2018-07-05 11:42:50 -07:00
vc4.rst
vga-switcheroo.rst
vgaarbiter.rst
vkms.rst drm/vkms: Extend todo 2018-10-03 18:19:41 +02:00
xen-front.rst drm/xen-front: Remove CMA support 2018-04-18 10:18:27 +03:00