| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
mesa: Make the android_stub be a set of non-installed shared libraries. Previously, we included the stubs in our driver binaries, so they didn't call the actual system libraries for these functions. This was enough to build-test the Android code in CI without even the NDK. To make NDK-built Mesa drivers useful, we need to link against these system libraries that aren't present in the NDK. Split the symbols to separate non-installed shared libraries and link against those, so that when you drop the resulting .so in your /vendor/lib64/hw/, it just works out. Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6805> | 5 年前 | |
mesa: Make the android_stub be a set of non-installed shared libraries. Previously, we included the stubs in our driver binaries, so they didn't call the actual system libraries for these functions. This was enough to build-test the Android code in CI without even the NDK. To make NDK-built Mesa drivers useful, we need to link against these system libraries that aren't present in the NDK. Split the symbols to separate non-installed shared libraries and link against those, so that when you drop the resulting .so in your /vendor/lib64/hw/, it just works out. Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6805> | 5 年前 | |
android_stub: update platform headers to include atrace 1. Add tracing headers 2. Update to reflect relocated headers 3. Remove redundant apex/window.h Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Ryan Neph <ryanneph@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13255> | 11 个月前 | |
mesa: Make the android_stub be a set of non-installed shared libraries. Previously, we included the stubs in our driver binaries, so they didn't call the actual system libraries for these functions. This was enough to build-test the Android code in CI without even the NDK. To make NDK-built Mesa drivers useful, we need to link against these system libraries that aren't present in the NDK. Split the symbols to separate non-installed shared libraries and link against those, so that when you drop the resulting .so in your /vendor/lib64/hw/, it just works out. Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6805> | 5 年前 | |
mesa: Make the android_stub be a set of non-installed shared libraries. Previously, we included the stubs in our driver binaries, so they didn't call the actual system libraries for these functions. This was enough to build-test the Android code in CI without even the NDK. To make NDK-built Mesa drivers useful, we need to link against these system libraries that aren't present in the NDK. Split the symbols to separate non-installed shared libraries and link against those, so that when you drop the resulting .so in your /vendor/lib64/hw/, it just works out. Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6805> | 5 年前 | |
egl/android: implement image cleanup callback According to ANDROID_get_native_client_buffer, EGL implementations must guarantee that the lifetime of an EGLClientBuffer returned by eglGetNativeClientBufferANDROID is at least as long as that of the EGLImage which is bound to. Do this by acquiring a reference to the underlying AHardwareBuffer for all ANativeWindowBuffers which are bound to an _EGLImage. Signed-off-by: David Stevens <stevensd@chromium.org> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7805> | 5 年前 | |
egl/android: refactor to use the legit vndk/window.h header Using the system/window.h header can potentially cause AHB breakage because the system header is reserved for platform internal use. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11206> | 11 个月前 | |
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> | 11 个月前 |
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.