Files
mesa/src/util
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
..
2019-08-08 22:02:54 +01:00
2018-10-10 13:13:12 -05:00
2021-05-02 20:38:28 +00:00
2019-09-19 19:56:22 +00:00
2020-09-25 20:09:08 +00:00
2019-03-11 13:13:52 -07:00
2019-03-11 13:13:52 -07:00
2019-08-02 18:38:52 +01:00
2021-05-26 18:48:04 +00:00
2020-08-31 09:14:57 +00:00
2021-06-04 19:08:57 +00:00
2020-10-27 15:33:40 -07:00
2020-12-02 10:12:27 -08:00
2020-12-01 07:11:44 +00:00
2020-08-21 18:22:21 +00:00
2020-11-10 15:37:07 +00:00
2020-11-11 06:08:15 +10:00
2019-03-14 22:41:08 +00:00
2021-02-22 00:30:46 +00:00
2021-05-10 15:34:07 +00:00
2021-05-10 15:34:07 +00:00
2021-02-19 11:05:38 +00:00
2021-06-02 03:10:49 +00:00
2020-05-13 23:36:44 +00:00
2020-05-13 23:36:44 +00:00
2020-12-01 10:04:41 +01:00