config_attrs[n++] = EGL_OPENGL_ES2_BIT;
config_attrs[n++] = EGL_NONE;
+#ifdef GL_DRM_DBG
DBG("GBM DEVICE: %x", (unsigned int)gbm);
+#endif
+
gw->egl_disp = eglGetDisplay((EGLNativeDisplayType)(gw->gbm));
if (gw->egl_disp == EGL_NO_DISPLAY)
{
if (!(info->info.gbm) || !(info->info.surface))
return 0;
+#ifdef GL_DRM_DBG
DBG("FD: %d, GBM_DEVICE: 0x%x, GBM_SURFACE: 0x%x",
info->info.fd, (unsigned int)info->info.gbm,
(unsigned int)info->info.surface);
+#endif
re = calloc(1, sizeof(Render_Engine));
if (!re) return 0;
if (!evas_drm_gbm_init(info, epd->output.w, epd->output.h))
return 0;
+#ifdef GL_DRM_DBG
DBG("FD: %d, GBM_DEVICE: 0x%x, GBM_SURFACE: 0x%x",
info->info.fd, (unsigned int)info->info.gbm,
(unsigned int)info->info.surface);
+#endif
ob = eng_window_new(info, eo_e, info->info.gbm,
info->info.surface, info->info.screen,
if (!n->egl_surface)
{
- ERR("eglCreatePixmapSurface() for 0x%x failed", (unsigned int)wl_buf);
+ ERR("eglCreatePixmapSurface() for %p failed", wl_buf);
eina_hash_del(ob->gl_context->shared->native_wl_hash, &wlid, img);
glsym_evas_gl_common_image_free(img);
free(n);