diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-08-28 19:51:45 -0400 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-09-13 20:49:47 -0400 |
commit | a69dc2c41294a4b7126804050bd4d10f3208852e (patch) | |
tree | 0d1738526cf3ed1a19333225783b559f0692b1d8 /src/mesa/main/context.h | |
parent | aa7b410592700bf6253e8695ea208d0448c1610e (diff) | |
download | external_mesa3d-a69dc2c41294a4b7126804050bd4d10f3208852e.zip external_mesa3d-a69dc2c41294a4b7126804050bd4d10f3208852e.tar.gz external_mesa3d-a69dc2c41294a4b7126804050bd4d10f3208852e.tar.bz2 |
mesa: add a GLES3.2 enums section, and expose new MS line width params
This also exposes them for ARB_ES3_2_compatibility.
While both specs refer to the new MS line width parameters being
separate from the existing AA line widths, reality begs to differ. It's
the same on all hardware currently supported by mesa. Should hardware
come along that wants these to be different, they're easy enough to
separate out.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r-- | src/mesa/main/context.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 4cd149d..520b3bb 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -318,6 +318,16 @@ _mesa_is_gles31(const struct gl_context *ctx) /** + * Checks if the context is for GLES 3.2 or later + */ +static inline bool +_mesa_is_gles32(const struct gl_context *ctx) +{ + return ctx->API == API_OPENGLES2 && ctx->Version >= 32; +} + + +/** * Checks if the context supports geometry shaders. */ static inline bool |