Hi Fabio,
the attached patch should fix the issue. I should really try to get
this upstream, as some people complained about this already...
Regards,
Lucas
Am Dienstag, den 13.06.2017, 16:20 -0300 schrieb Fabio Estevam:
> Hi,
>
> I am running kernel 4.11.4 with Etnaviv 17.1.2 on a imx6qsabresd
> board
> and when I try to run glmark I am getting a segmentation fault:
>
> # glmark2-es2-drm
> ** Failed to set swap interval. Results may be bounded above by
> refresh rate.
> =======================================================
> glmark2 2014.03
> =======================================================
> OpenGL Information
> GL_VENDOR: etnaviv
> GL_RENDERER: Gallium 0.4 on Vivante GC2000 rev 5108
> GL_VERSION: OpenGL ES 2.0 Mesa 17.1.2
> =======================================================
> ** Failed to set swap interval. Results may be bounded above by
> refresh rate.
> [build] use-vbo=false:Segmentation fault
> #
>
> strace log can be found here:
> https://paste.ubuntu.com/24851027/
>
> This used to work before. Does anyone have any suggestions?
>
> Thanks
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
From: Lucas Stach <l.st...@pengutronix.de>
Date: Wed, 31 May 2017 13:01:00 +0200
Subject: [PATCH] NativeStateDRM: use fixed event context version
Using the latest version is not a good idea, as the context content may
change between versions.
Fixes a segfault with new kernel and libdrm.
Signed-off-by: Lucas Stach <l.st...@pengutronix.de>
---
src/native-state-drm.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/native-state-drm.cpp b/src/native-state-drm.cpp
index 454a24d898ff..b9af996667dc 100644
--- a/src/native-state-drm.cpp
+++ b/src/native-state-drm.cpp
@@ -106,7 +106,7 @@ NativeStateDRM::flip()
FD_ZERO(&fds);
FD_SET(fd_, &fds);
drmEventContext evCtx;
- evCtx.version = DRM_EVENT_CONTEXT_VERSION;
+ evCtx.version = 2;
evCtx.page_flip_handler = page_flip_handler;
while (waiting) {
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev