diff options
author | Christian König <[email protected]> | 2011-05-21 16:43:12 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2011-05-21 16:43:12 +0200 |
commit | aa63ebc48a2ee1ee9afbf2112d4d25e8a9a8d1e8 (patch) | |
tree | c97d505614f1fd84d498484a45156e0064daf649 /src/gallium/include | |
parent | 120b55a96e30f1f74ba3448665cef3d724fed647 (diff) | |
parent | 3c5e74186244f2d77cc711d2b487283459ed06ad (diff) |
Merge remote-tracking branch 'origin/master' into pipe-video
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/state_tracker/st_api.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h index d4973a10cc7..04fc7c6c5de 100644 --- a/src/gallium/include/state_tracker/st_api.h +++ b/src/gallium/include/state_tracker/st_api.h @@ -70,6 +70,15 @@ enum st_profile_type #define ST_PROFILE_OPENGL_ES2_MASK (1 << ST_PROFILE_OPENGL_ES2) /** + * New context flags for GL 3.0 and beyond. + */ +#define ST_CONTEXT_FLAG_CORE_PROFILE (1 << 0) +#define ST_CONTEXT_FLAG_COMPATIBLE_PROFILE (1 << 1) +#define ST_CONTEXT_FLAG_FORWARD_COMPATIBLE (1 << 2) +#define ST_CONTEXT_FLAG_DEBUG (1 << 3) +#define ST_CONTEXT_FLAG_ROBUST_ACCESS (1 << 4) + +/** * Used in st_context_iface->teximage. */ enum st_texture_type { @@ -207,21 +216,14 @@ struct st_context_attribs * The profile and minimal version to support. * * The valid profiles and versions are rendering API dependent. The latest - * version satisfying the request should be returned, unless - * forward_compatiible is true. + * version satisfying the request should be returned, unless the + * ST_CONTEXT_FLAG_FORWARD_COMPATIBLE bit is set. */ enum st_profile_type profile; int major, minor; - /** - * Enable debugging. - */ - boolean debug; - - /** - * Return the exact version and disallow the use of deprecated features. - */ - boolean forward_compatible; + /** Mask of ST_CONTEXT_FLAG_x bits */ + unsigned flags; /** * The visual of the framebuffers the context will be bound to. |