diff options
author | Simon Ser <contact@emersion.fr> | 2021-01-21 10:14:23 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-23 16:41:54 +0100 |
commit | 4f06ce255029a8d216d49e437632e2ecc79ef433 (patch) | |
tree | 06f6496947d39df753f16305aac817a26e1c17ad /include/util/shm.h | |
parent | 7bc8dbb991ecebd7c5117776a043f886593cbd97 (diff) |
render/gbm_allocator: avoid drmPrimeHandleToFD
Some drivers (e.g. nouveau) need to do some book-keeping when exporting
a BO handle to a DMA-BUF [1]. Using drmPrimeHandleToFD directly hides
the export from the user-space drivers and causes some ref'counting
issues.
So we can't properly handle BOs with a different handle for each plane
until [2] lands.
[1]: https://gitlab.freedesktop.org/drm/nouveau/-/issues/43#note_772661
[2]: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5442
Suggested-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'include/util/shm.h')
0 files changed, 0 insertions, 0 deletions