All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATH RFC] Fix glmark2 error with Vivante
@ 2016-04-29 11:40 Mylène Josserand
  2016-04-29 11:40 ` [Buildroot] [PATH RFC] glmark2: check mesa3d opengl when adding drm Mylène Josserand
  0 siblings, 1 reply; 4+ messages in thread
From: Mylène Josserand @ 2016-04-29 11:40 UTC (permalink / raw)
  To: buildroot

While using Vivante OpenGL driver, I got an error on glmark2 :
   "Checking for 'gbm' : not found
    The configuration failed [...]"

This is due to the fact that, with Vivante driver, mesa3d is not
configured to enable "gdm" (as BR2_PACKAGE_MESA3D_OPENGL_EGL=n).
As the gdm is used only on "drm" flavors of glmark2, this patch
proposes to check if the MESA3D OpenGL is enabled before adding
"drm" flavors on configuration (so the need of "gbm").

This is a RFC patch because I do not really know how all OpenGL stuff
are handled in buildroot and maybe, this is not the best way to do it.

If you have any ideas, remarks or questions, do not hesitate.

Best regards,

Myl?ne Josserand (1):
  glmark2: check mesa3d opengl when adding drm

 package/glmark2/glmark2.mk | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.8.0.rc3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATH RFC] glmark2: check mesa3d opengl when adding drm
  2016-04-29 11:40 [Buildroot] [PATH RFC] Fix glmark2 error with Vivante Mylène Josserand
@ 2016-04-29 11:40 ` Mylène Josserand
  2016-05-14 13:23   ` Thomas Petazzoni
  2016-09-05 15:16   ` Bernd Kuhls
  0 siblings, 2 replies; 4+ messages in thread
From: Mylène Josserand @ 2016-04-29 11:40 UTC (permalink / raw)
  To: buildroot

When using Vivante OpenGL, the mesa3d is not enabling gbm which is
needed by glmark3 with flavor "drm".

This patch adds a check to enable "drm" flavors only in case of mesa3d
opengl enabled.

Signed-off-by: Myl?ne Josserand <mylene.josserand@free-electrons.com>
---
 package/glmark2/glmark2.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/glmark2/glmark2.mk b/package/glmark2/glmark2.mk
index bd5b51a..9588576 100644
--- a/package/glmark2/glmark2.mk
+++ b/package/glmark2/glmark2.mk
@@ -23,6 +23,7 @@ GLMARK2_FLAVORS += x11-gl
 endif
 endif
 
+ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
 ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGLES),yy)
 GLMARK2_FLAVORS += drm-glesv2
 endif
@@ -30,6 +31,7 @@ endif
 ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGL),yy)
 GLMARK2_FLAVORS += drm-gl
 endif
+endif
 
 ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGLES),yyy)
 GLMARK2_DEPENDENCIES += wayland
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATH RFC] glmark2: check mesa3d opengl when adding drm
  2016-04-29 11:40 ` [Buildroot] [PATH RFC] glmark2: check mesa3d opengl when adding drm Mylène Josserand
@ 2016-05-14 13:23   ` Thomas Petazzoni
  2016-09-05 15:16   ` Bernd Kuhls
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-05-14 13:23 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 29 Apr 2016 13:40:52 +0200, Myl?ne Josserand wrote:
> When using Vivante OpenGL, the mesa3d is not enabling gbm which is
> needed by glmark3 with flavor "drm".
> 
> This patch adds a check to enable "drm" flavors only in case of mesa3d
> opengl enabled.
> 
> Signed-off-by: Myl?ne Josserand <mylene.josserand@free-electrons.com>

I *think* this problem is already solved by patch
http://patchwork.ozlabs.org/patch/610921/ from Gustavo, which I have
just applied to our master branch. Let me know if that is not the case.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATH RFC] glmark2: check mesa3d opengl when adding drm
  2016-04-29 11:40 ` [Buildroot] [PATH RFC] glmark2: check mesa3d opengl when adding drm Mylène Josserand
  2016-05-14 13:23   ` Thomas Petazzoni
@ 2016-09-05 15:16   ` Bernd Kuhls
  1 sibling, 0 replies; 4+ messages in thread
From: Bernd Kuhls @ 2016-09-05 15:16 UTC (permalink / raw)
  To: buildroot

Am Fri, 29 Apr 2016 13:40:52 +0200 schrieb Myl?ne Josserand:

> When using Vivante OpenGL, the mesa3d is not enabling gbm which is
> needed by glmark3 with flavor "drm".

Hi,

there are other reasons why mesa3d does not provide gbm.
I think this patch is still valid because it fixes
http://autobuild.buildroot.net/results/cb7/cb765a1dbcbe6956a44974c3af35cf17420a6bf4/

Regards, Bernd

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-05 15:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-29 11:40 [Buildroot] [PATH RFC] Fix glmark2 error with Vivante Mylène Josserand
2016-04-29 11:40 ` [Buildroot] [PATH RFC] glmark2: check mesa3d opengl when adding drm Mylène Josserand
2016-05-14 13:23   ` Thomas Petazzoni
2016-09-05 15:16   ` Bernd Kuhls

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.