mesa/src
Rob Clark 964efdfba9 egl+libsync: Add check for valid fence-fd
Debugging fd mix-ups (ie. where, possibly via close()ing the original
fd, etc, you end up with something that is a valid fd but not a valid
*fence* fd) can be difficult.  Fortunately we can use the FILE_INFO
ioctl, which will return an error if the fd is not a fence fd.

For android, we instead use the libsync API, which does a similar thing
on modern kernels, but has a fallback path for older android kernels.

Note that the FILE_INFO ioctl has existed upstream since at least prior
to destaging of sync_file.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11202>
2021-06-07 20:14:25 +00:00
..
amd aco/scheduler: Move cursor handling state to dedicated interfaces 2021-06-07 12:09:39 +02:00
android_stub egl+libsync: Add check for valid fence-fd 2021-06-07 20:14:25 +00:00
asahi agx: Handle load_back_face_agx 2021-06-05 20:38:22 +00:00
broadcom v3dv: fix incorrect render area setup 2021-06-07 11:25:22 +00:00
compiler nir: Add nir_intrinsic_load_back_face_agx 2021-06-05 20:38:22 +00:00
drm-shim drm-shim: fix compile with glibc >= 2.33 2021-04-20 05:49:29 +00:00
egl egl+libsync: Add check for valid fence-fd 2021-06-07 20:14:25 +00:00
etnaviv etnaviv: tell the truth if alpha-test is supported 2021-04-08 19:25:26 +00:00
freedreno freedreno/regs: split old/not used phy registers to separate DB 2021-06-05 19:20:50 +00:00
gallium iris: Add a BO_ALLOC_SMEM flag for allocating from system memory 2021-06-07 10:35:25 -07:00
gbm gbm: list to stderr all the missing extension 2021-05-24 16:17:47 +00:00
getopt scons: Remove. 2021-03-20 10:38:55 +00:00
glx glx: create DRI screen for display GPU incase of prime 2021-06-03 09:12:32 +00:00
gtest
hgl
imgui
intel intel/fs/ra: Fix payload node setup for SIMD16 on Gen4-5 2021-06-07 16:52:19 +00:00
loader loader: allocate VRAM in display GPU in case of prime 2021-06-03 09:12:32 +00:00
mapi util: Add a helper macro for defining initial-exec variables. 2021-06-02 03:10:49 +00:00
mesa st/pbo: use correct type for images and textures 2021-06-07 12:13:32 +00:00
microsoft microsoft/compiler: Maintain sorting of resource type in the context 2021-04-29 23:55:02 +00:00
nouveau
panfrost panfrost: Elucidate thread group split field 2021-06-01 19:10:28 +00:00
tool pps: Intel pps driver 2021-05-18 14:28:48 +00:00
util egl+libsync: Add check for valid fence-fd 2021-06-07 20:14:25 +00:00
virtio venus: unify VkNativeBufferANDROID and AHardwareBuffer image create info 2021-06-05 22:50:23 +00:00
vulkan vulkan/util: add vk_default_allocator 2021-06-03 08:13:26 +00:00
meson.build freedreno: Add freedreno pps driver 2021-05-10 15:34:07 +00:00