OSDN Git Service

drm: document expectations for GETFB2 handles
authorSimon Ser <contact@emersion.fr>
Fri, 17 Feb 2023 16:22:01 +0000 (16:22 +0000)
committerSimon Ser <contact@emersion.fr>
Mon, 20 Feb 2023 09:41:43 +0000 (10:41 +0100)
commit61a55f8b1ebcde68bc7bfd57435b1b3bb1121b8f
treef49e2607c1cf033b30ff2c56386637eee16ea556
parentc2f2c721d28e8c56f56b074e2b9dfd5a24669597
drm: document expectations for GETFB2 handles

There are two important details missing from the docs:

- If the memory object backing the FB already has a GEM handle,
  it's not re-used, a new one is generated.
- Aliased planes will return the same GEM handle.

v2: document how user-space can obtain DMA-BUF FDs without leaking
handles (Pekka)

Signed-off-by: Simon Ser <contact@emersion.fr>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Pekka Paalanen <ppaalanen@gmail.com>
Cc: Daniel Stone <daniel@fooishbar.org>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20230217162151.59996-1-contact@emersion.fr
include/uapi/drm/drm.h