0002-libweston-backend-drm-might-need-EGL.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From 4b93b71067949cc5efabb9b3d59278a3f362b11c Mon Sep 17 00:00:00 2001
  2. From: Heiko Thiery <heiko.thiery@gmail.com>
  3. Date: Wed, 21 Oct 2020 13:33:25 +0200
  4. Subject: [PATCH] libweston/backend/drm: might need EGL
  5. gbm-drm.c includes gl-renderer.h. When EGL is enabled, that in turns
  6. includes egl.h. As such, dependencies for drm should include EGL if
  7. it is available.
  8. This condition is modelled after a similar one in libweston/meson.build
  9. Reported-by: Gary Bisson <gary.bisson@boundarydevices.com>
  10. Reported-by: Heiko Thiery <heiko.thiery@gmail.com>
  11. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
  12. Cc: Refik Tuzakli <tuzakli.refik@gmail.com>
  13. Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  14. Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
  15. ---
  16. This patch should be a proper fix for the issue discribed in the patch from
  17. Gary [1].
  18. Since the MR on weston upstream [2] is not merged now I add this patch
  19. to have working weston with imx in buildroot.
  20. [1] https://patchwork.ozlabs.org/project/buildroot/patch/20200402130842.918696-3-gary.bisson@boundarydevices.com/
  21. [2] https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/508
  22. ---
  23. libweston/backend-drm/meson.build | 3 +++
  24. 1 file changed, 3 insertions(+)
  25. diff --git a/libweston/backend-drm/meson.build b/libweston/backend-drm/meson.build
  26. index 484c2702..e3e5b976 100644
  27. --- a/libweston/backend-drm/meson.build
  28. +++ b/libweston/backend-drm/meson.build
  29. @@ -53,6 +53,9 @@ if get_option('renderer-gl')
  30. config_h.set('HAVE_GBM_FD_IMPORT', '1')
  31. endif
  32. deps_drm += dep_gbm
  33. + if dep_egl.found()
  34. + deps_drm += dep_egl
  35. + endif
  36. srcs_drm += 'drm-gbm.c'
  37. config_h.set('BUILD_DRM_GBM', '1')
  38. endif
  39. --
  40. 2.20.1