diff options
author | Eric Engestrom <eric.engestrom@imgtec.com> | 2017-09-01 10:49:57 +0100 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@imgtec.com> | 2017-09-01 10:49:59 +0100 |
commit | 9966d3af4b68521efe77d52540f5e1ffb8b35225 (patch) | |
tree | 3044a6aeca7676d6be35ea8fcb693903452dea32 | |
parent | 66136b9548de7578a905dfd24c472a5921046c9e (diff) |
eglinfo: add comment mapping attributes to printf
Without this, one has to read the printf's, counting the columns to find
the one we're looking for, then look for the eglGetConfigAttrib line
that sets the corresponding var, to find which attribute is being
queried.
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
-rw-r--r-- | src/egl/opengl/eglinfo.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/egl/opengl/eglinfo.c b/src/egl/opengl/eglinfo.c index f7da372b..8705c0d1 100644 --- a/src/egl/opengl/eglinfo.c +++ b/src/egl/opengl/eglinfo.c @@ -55,6 +55,25 @@ PrintConfigs(EGLDisplay d) printf("Configurations:\n"); printf(" bf lv colorbuffer dp st ms vis cav bi renderable supported\n"); printf(" id sz l r g b a th cl ns b id eat nd gl es es2 vg surfaces \n"); + /* ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ + * | | | | | | | | | | | | | | | | | | | + * | | | | | | | | | | | | | | | | | | EGL_SURFACE_TYPE + * | | | | | | | | | | | | | | EGL_RENDERABLE_TYPE + * | | | | | | | | | | | | | EGL_BIND_TO_TEXTURE_RGB/EGL_BIND_TO_TEXTURE_RGBA + * | | | | | | | | | | | | EGL_CONFIG_CAVEAT + * | | | | | | | | | | | EGL_NATIVE_VISUAL_ID/EGL_NATIVE_VISUAL_TYPE + * | | | | | | | | | | EGL_SAMPLE_BUFFERS + * | | | | | | | | | EGL_SAMPLES + * | | | | | | | | EGL_STENCIL_SIZE + * | | | | | | | EGL_DEPTH_SIZE + * | | | | | | EGL_ALPHA_SIZE + * | | | | | EGL_BLUE_SIZE + * | | | | EGL_GREEN_SIZE + * | | | EGL_RED_SIZE + * | | EGL_LEVEL + * | EGL_BUFFER_SIZE + * EGL_CONFIG_ID + */ printf("---------------------------------------------------------------------\n"); for (i = 0; i < numConfigs; i++) { EGLint id, size, level; |