Part Number: TDA4VM
HI TI Experts,
When I don't use surfaceless platform (EGL_MESA_platform_surfaceless),I use gbm device to create surface and get display from EGL_PLATFORM_GBM_MESA.
but the step of creating window surface failed and return EGL_NO_SURFACE.
obj->get_platform_display = (void *) eglGetProcAddress("eglGetPlatformDisplayEXT");
if(!obj->get_platform_display)
{
printf("EGL: ERROR: eglGetProcAddress(\"eglGetPlatformDisplayEXT\") failed !!!\n");
goto destroy_gbm_surface;
}
egl_platform_extensions = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
if (has_extension(egl_platform_extensions, "EGL_MESA_platform_gbm"))
{
obj->drm_fd=open("/dev/dri/by-path/platform-4a00000.dss-card",O_RDWR);
........
obj->display = obj->get_platform_display(EGL_PLATFORM_GBM_MESA,obj->gbm_dev, NULL);
}
in addition,the demo of opengl on TDA4 geting display from EGL_PLATFORM_GBM_KHR and work well,but the platfrom extensions don't have EGL_PLATFORM_GBM_KHR as far as I am concerned.
1、I want to Why is EGL_PLATFORM_GBM_KHR OK and the EGL_PLATFORM_GBM_MESA not?
2、Because eglGetDisplay return EGL_NO_DISPLAY,How can A72 control the display through modification?
