diff options
author | Rob Herring <[email protected]> | 2016-02-02 14:23:07 -0600 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-04-01 13:44:25 +0100 |
commit | 8975527f58afd4af77966c6e46b485fc04008779 (patch) | |
tree | ce4f391af9cb9c066077161ed73cee9a3402ef10 /src/egl/main/eglconfig.h | |
parent | 2d9e0f24e1a13648a9bceb03dbfb438e03c81fd7 (diff) |
egl: Add EGL_FRAMEBUFFER_TARGET_ANDROID attribute
This is used by Android to select an eglconfig compatible with HWComposer.
Cc: [email protected]
Signed-off-by: Rob Herring <[email protected]>
[Emil Velikov: add the _eglIsConfigAttribValid check]
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/main/eglconfig.h')
-rw-r--r-- | src/egl/main/eglconfig.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/egl/main/eglconfig.h b/src/egl/main/eglconfig.h index 84cb2276b70..7bdb090c46c 100644 --- a/src/egl/main/eglconfig.h +++ b/src/egl/main/eglconfig.h @@ -86,6 +86,7 @@ struct _egl_config /* extensions */ EGLint YInvertedNOK; + EGLint FramebufferTargetAndroid; }; @@ -133,6 +134,7 @@ _eglOffsetOfConfig(EGLint attr) ATTRIB_MAP(EGL_CONFORMANT, Conformant); /* extensions */ ATTRIB_MAP(EGL_Y_INVERTED_NOK, YInvertedNOK); + ATTRIB_MAP(EGL_FRAMEBUFFER_TARGET_ANDROID, FramebufferTargetAndroid); #undef ATTRIB_MAP default: return -1; |