diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-11-23 01:45:25 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-11-23 01:45:25 +0000 |
commit | 023c95481b37b6a1e0ddbef0b0f8e9f6e792ae3a (patch) | |
tree | a0bffba9bf57926b9d2e24aa3597d8ad55fb9d94 /progs/egl | |
parent | 957b517c4f79b07888e40e74f9b6c96a2e2dc1c0 (diff) |
check/print EGL_SCREEN_BIT_MESA, fix eglGetDisplay() call
Diffstat (limited to 'progs/egl')
-rw-r--r-- | progs/egl/eglinfo.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/progs/egl/eglinfo.c b/progs/egl/eglinfo.c index 4826fd094..f9c247544 100644 --- a/progs/egl/eglinfo.c +++ b/progs/egl/eglinfo.c @@ -48,9 +48,9 @@ PrintConfigs(EGLDisplay d) eglGetConfigs(d, configs, MAX_CONFIGS, &numConfigs); printf("Configurations:\n"); - printf(" bf lv d st colorbuffer dp st supported \n"); + printf(" bf lv d st colorbuffer dp st supported\n"); printf(" id sz l b ro r g b a th cl surfaces \n"); - printf("----------------------------------------------\n"); + printf("---------------------------------------------------\n"); for (i = 0; i < numConfigs; i++) { EGLint id, size, level; EGLint red, green, blue, alpha; @@ -77,6 +77,10 @@ PrintConfigs(EGLDisplay d) strcat(surfString, "pb,"); if (surfaces & EGL_PIXMAP_BIT) strcat(surfString, "pix,"); +#ifdef EGL_MESA_screen_surface + if (surfaces & EGL_SCREEN_BIT_MESA) + strcat(surfString, "scrn,"); +#endif if (strlen(surfString) > 0) surfString[strlen(surfString) - 1] = 0; @@ -136,7 +140,7 @@ main(int argc, char *argv[]) { int maj, min; /*EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);*/ - EGLDisplay d = eglGetDisplay("!r200_dri"); + EGLDisplay d = eglGetDisplay(":0"); if (!eglInitialize(d, &maj, &min)) { printf("eglinfo: eglInitialize failed\n"); |