mesa/src
Lionel Landwerlin aba3aed96e iris: fix export of GEM handles
We reuse DRM file descriptors internally. Therefore when we export a
GEM handle we must do so in the file descriptor used externally.

This change also fixes a file descriptor leak of the FD given at
screen creation.

v2: Don't bother checking fd equals, they're always different
    Fix dmabuf leak
    Fix GEM handle leaks by tracking exported handles

v3: Check os_same_file_description error (Michel)
    Don't create multiple exports for a given GEM table

v4: Add WARN_ONCE (Ken)
    Rename external_fd to winsys_fd

v5: Remove export lock in favor of bufmgr's

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2882
Fixes: 7557f16059 ("iris: share buffer managers accross screens")
Tested-by: Eric Engestrom <eric@engestrom.ch>
Tested-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4861>
2020-06-04 07:31:38 +00:00
..
amd aco: sign-extend input/identity for 16-bit subgroup ops on GFX6-GFX7 2020-06-03 19:48:43 +02:00
broadcom nir: add callback to nir_remove_dead_variables() 2020-06-03 02:22:23 +00:00
compiler nir/lower_tex: fixes for fp16 yuv lowering 2020-06-03 21:24:13 +00:00
drm-shim meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
egl meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
etnaviv meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
freedreno freedreno/a6xx: update depth-plane control regs 2020-06-04 02:34:54 +00:00
gallium iris: fix export of GEM handles 2020-06-04 07:31:38 +00:00
gbm gbm: document that gbm_bo_map exposes a linear view 2020-06-03 10:09:52 +00:00
getopt
glx meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
gtest
hgl
imgui
intel intel/compiler: Extract control barriers from scoped barriers 2020-06-03 07:39:52 +00:00
loader meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
mapi mesa: Fix NetBSD compiler macro. 2020-06-03 21:09:54 -07:00
mesa i965: don't forget to set screen on duped image 2020-06-04 07:31:38 +00:00
panfrost pan/bi: Disassemble gl_PointCoord reads. 2020-06-03 22:58:46 +00:00
util util: add BITSET_LAST_BIT() helper 2020-06-03 10:34:22 +00:00
vulkan vulkan-overlay/meson: use install_data instead of configure_file 2020-06-01 18:59:18 +00:00
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
SConscript