[Mesa-dev] [RESEND PATCH v5 0/3] egl/android: Add DRM node probing and filtering
Robert Foss
robert.foss at collabora.com
Mon Jun 25 16:56:20 UTC 2018
Pushed.
On 2018-06-25 13:39, Robert Foss wrote:
> [RESEND] due to the previous version sent to the ML mistakenly being
> v4 again. Please excuse the spam.
>
> This series replaces the dependency on
> GRALLOC_MODULE_PERFORM_GET_DRM_FD with DRM node
> probing and disables the support for drm_gralloc.
>
> The series has been tested on Qemu+AOSP, where a
> virtio gpu was successfully probed for and
> opened.
>
> The current branch can be found here:
> https://gitlab.collabora.com/robertfoss/mesa/tree/drm_probing_v5
>
> Changes since v4:
> - Removed dead continue statement
> - Switched function argument to const char* from char*
>
> Changes since v3:
> - Reduced number of probing return codes
> - Simplified driver vendor check in droid_probe_device()
> - Fixed type with ';' prepended to a if-statement
> - Removed a strlen call
> - Switched a sprintf to snprintf
> - Replaced fd == -1 check with < 0
> - Simplified switch+goto statements
>
> Changes since v2:
> - Fixed whitespace issue
> - Diversified return codes from probing functions
> - Switched away from using drmGetDevices2, to iterating over
> /dev/dir/renderD nodes manually
>
> Changes since v1:
> - Added fix for build issue
> - Do not rely on libdrm for probing
> - Distinguish between errors and when no drm devices are found
>
> Changes since RFC:
> - Rebased work on the libdrm patch [2].
> - Included patch from Rob Herring disabling drm_gralloc/flink
> support by default.
> - Added device handler driver probing.
>
>
> Rob Herring (1):
> egl/android: #ifdef out flink name support
>
> Robert Foss (2):
> gallium/util: Fix build error due to cast to different size
> egl/android: Add DRM node probing and filtering
>
> src/egl/Android.mk | 6 +-
> src/egl/drivers/dri2/egl_dri2.h | 2 -
> src/egl/drivers/dri2/platform_android.c | 227 +++++++++++++++---
> .../auxiliary/util/u_debug_stack_android.cpp | 4 +-
> 4 files changed, 195 insertions(+), 44 deletions(-)
>
More information about the mesa-dev
mailing list