eglMakeCurrent segfaults with L3.0.35 1.1.0 graphics stuff

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

eglMakeCurrent segfaults with L3.0.35 1.1.0 graphics stuff

跳至解决方案
1,338 次查看
emjay
Contributor I

I am using recipes from meta-fsl-arm (master) gpu-viv-bin-mx6q_1.1.0, xf86-dri-vivante_1.1.0, xf86-video-imxfb-vivante_1.1.0 to build various graphics packages from Freescale.

Xorg version is 1.11.2, kernel version is 3.5.7 and galcore driver is 4.6.9.

galcore, vivante, imxdrm, imx_fbdev and related modules are loaded.

Xorg.log shows loading the Vivante driver and opening the drm device.

I am trying to run the simple rotating triangle application. An X11 window is created to display the triangle drawn using OpenGLES 2.0 api.

After setting up the EGL context, when eglMakeCurrent is called, it segfaults.

  static const EGLint attr[] =

    {

      EGL_RED_SIZE,    5,

      EGL_GREEN_SIZE,     6,

      EGL_BLUE_SIZE,    5,

      EGL_ALPHA_SIZE,     EGL_DONT_CARE,

      EGL_NONE

    };

....

eglMakeCurrent(eglDisplay, eglWindowSurface, eglWindowSurface, eglContext);

If however eglMakeCurrent is called as follows:

eglMakeCurrent(eglDisplay, eglWindowSurface, EGL_NO_SURFACE, eglContext);

EGL_BAD_MATCH error occurs. It seems segfault occurs later in the function.

Can anyone suggest any way to debug this problem? Much appreciated.

Thanks!

标签 (3)
0 项奖励
回复
1 解答
916 次查看
karina_valencia
NXP Apps Support
NXP Apps Support
Re: Vivante GPU driver can't load into kernel

Andre SilvaEmployee

You don´t have to use the driver generated by the source code. Instead, you use the driver built in kernel. The only things you get from the gpu source is the libraries... the .ko comes from kernel.

在原帖中查看解决方案

0 项奖励
回复
1 回复
917 次查看
karina_valencia
NXP Apps Support
NXP Apps Support
Re: Vivante GPU driver can't load into kernel

Andre SilvaEmployee

You don´t have to use the driver generated by the source code. Instead, you use the driver built in kernel. The only things you get from the gpu source is the libraries... the .ko comes from kernel.

0 项奖励
回复