* DEALINGS IN THE SOFTWARE.
*/
-#define LOG_TAG "MESA-EGL"
+#define LOG_TAG "EGL-GALLIUM"
#include <cutils/log.h>
#include <cutils/properties.h>
#include <hardware/gralloc.h>
return TRUE;
}
else {
- LOGE("failed to create DRM screen");
+ LOGW("failed to create DRM screen");
+ LOGW("will fall back to other EGL drivers if any");
return FALSE;
}
}
static struct pipe_screen *
create_drm_screen(const char *name, int fd)
{
+ struct pipe_screen *screen;
+
if (!name) {
name = drm_fd_get_screen_name(fd);
if (!name)
return NULL;
}
- return egl_pipe_create_drm_screen(name, fd);
+ screen = egl_pipe_create_drm_screen(name, fd);
+ if (screen)
+ _eglLog(_EGL_INFO, "created a pipe screen for %s", name);
+ else
+ _eglLog(_EGL_WARNING, "failed to create a pipe screen for %s", name);
+
+ return screen;
}
static struct pipe_screen *