summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-06-05 14:46:19 -0700
committerEric Anholt <[email protected]>2013-06-07 12:55:07 -0700
commitbc8bfdc42cce18cf3a44f487b73460bebe8c2ae4 (patch)
tree7a5f1f592db60eb3999daa70e0f5f47e83660cd6 /src/mesa/main/get.c
parent7500ad23ebd5b61fba01490ce561ba24ee4a6947 (diff)
mesa: Expose MAX_FRAGMENT_INPUT_COMPONENTS on ES3 and desktop 3.2.
piglit OpenGL ES 3.0/minmax now passes. This was also one of the subcase failures in OpenGL 3.2/minmax (and still is, because our value is too low for 3.2, but at least we report what it is). Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index b7462e77f91..d31ba011ff1 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -407,6 +407,12 @@ static const int extra_gl30_es3[] = {
EXTRA_END,
};
+static const int extra_gl32_es3[] = {
+ EXTRA_VERSION_32,
+ EXTRA_API_ES3,
+ EXTRA_END,
+};
+
static const int
extra_ARB_vertex_program_api_es2[] = {
EXT(ARB_vertex_program),
@@ -724,6 +730,7 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu
break;
case GL_MAX_VARYING_FLOATS_ARB:
+ case GL_MAX_FRAGMENT_INPUT_COMPONENTS:
v->value_int = ctx->Const.MaxVarying * 4;
break;