diff options
author | Chia-I Wu <[email protected]> | 2009-09-27 16:14:36 +0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-29 08:10:47 -0600 |
commit | 55893b9439754c5213a9c182ee84f6c2554a0281 (patch) | |
tree | d1509e0816221d3b9486ef7729966ae935ca779d /src/egl/main/eglconfigutil.h | |
parent | 56822b0812cd500bd54bb7c4b573c54547efb657 (diff) |
egl: Add a function to convert __GLcontextModes to _EGLConfig.
_eglConfigFromContextModesRec is used to convert a __GLcontextModes to a
_EGLConfig. Note that the config is not validated. An invalid mode
is likely to give an invalid config.
Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/egl/main/eglconfigutil.h')
-rw-r--r-- | src/egl/main/eglconfigutil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/main/eglconfigutil.h b/src/egl/main/eglconfigutil.h index 820244611c8..ad850798908 100644 --- a/src/egl/main/eglconfigutil.h +++ b/src/egl/main/eglconfigutil.h @@ -12,6 +12,11 @@ _eglConfigToContextModesRec(const _EGLConfig *config, __GLcontextModes *mode); extern EGLBoolean +_eglConfigFromContextModesRec(_EGLConfig *conf, const __GLcontextModes *m, + EGLint conformant, EGLint renderable_type); + + +extern EGLBoolean _eglFillInConfigs( _EGLConfig *configs, EGLenum fb_format, EGLenum fb_type, const uint8_t * depth_bits, const uint8_t * stencil_bits, |