mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-11 20:38:32 +02:00
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> |
||
|---|---|---|
| .. | ||
| backtrace_stub.cpp | ||
| cutils_stub.cpp | ||
| hardware_stub.cpp | ||
| log_stub.cpp | ||
| meson.build | ||
| nativewindow_stub.cpp | ||
| README.md | ||
| sync_stub.cpp | ||
The Android NDK doesn't come with enough of the platform libraries we need to build Mesa drivers out of tree, so android_stub has stub versions of those library that aren't installed which we link against, relying on the real libraries to be present when the Mesa driver is deployed.