summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/egl-static
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-08-04 11:49:42 +0900
committerChia-I Wu <[email protected]>2011-08-21 02:01:50 +0800
commitb71a7a2f37ec3693b8f3a7f1acb0c59ed076f104 (patch)
tree2e9260d51249517d1814ea3393686617e79d305c /src/gallium/targets/egl-static
parent5ce2dc692f9ffe801d96f45e5be972d2fe1855f8 (diff)
st/egl: improve error logging
This helps diagnose problems in EGL initialization.
Diffstat (limited to 'src/gallium/targets/egl-static')
-rw-r--r--src/gallium/targets/egl-static/egl.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/targets/egl-static/egl.c b/src/gallium/targets/egl-static/egl.c
index 6e5f6f30b11..a7aee27238b 100644
--- a/src/gallium/targets/egl-static/egl.c
+++ b/src/gallium/targets/egl-static/egl.c
@@ -221,13 +221,21 @@ drm_fd_get_screen_name(int fd)
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 *