summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-08-28 19:51:45 -0400
committerIlia Mirkin <[email protected]>2016-09-13 20:49:47 -0400
commita69dc2c41294a4b7126804050bd4d10f3208852e (patch)
tree0d1738526cf3ed1a19333225783b559f0692b1d8 /src/mesa/main/context.h
parentaa7b410592700bf6253e8695ea208d0448c1610e (diff)
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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (v1) Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index 4cd149de14e..520b3bbfb9a 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