Mesa (7.10): mesa: Add getters for ARB_ES2_compatibility MAX_*_VECTORS.

Ian Romanick idr at kemper.freedesktop.org
Mon Feb 28 22:27:45 UTC 2011


Module: Mesa
Branch: 7.10
Commit: 6428ca32c0e80ec75c74e58dc2cebf827a00f55a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6428ca32c0e80ec75c74e58dc2cebf827a00f55a

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Jan 14 16:12:18 2011 -0800

mesa: Add getters for ARB_ES2_compatibility MAX_*_VECTORS.

Fixes piglit arb_es2_compatibility-maxvectors.
(cherry picked from commit 8395f206a86b3700fc5f8eefc4d9b55e7e150d25)

---

 src/mesa/main/get.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index ca539e1..57803be 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -272,6 +272,7 @@ static const int extra_EXT_gpu_shader4[] = {
 };
 
 
+EXTRA_EXT(ARB_ES2_compatibility);
 EXTRA_EXT(ARB_multitexture);
 EXTRA_EXT(ARB_texture_cube_map);
 EXTRA_EXT(MESA_texture_array);
@@ -586,6 +587,14 @@ static const struct value_desc values[] = {
    { GL_TEXTURE_COORD_ARRAY_STRIDE,
      LOC_CUSTOM, TYPE_BOOLEAN, offsetof(struct gl_client_array, Stride), NO_EXTRA },
 
+   /* GL_ARB_ES2_compatibility */
+   { GL_MAX_VARYING_VECTORS, CONTEXT_INT(Const.MaxVarying),
+     extra_ARB_ES2_compatibility },
+   { GL_MAX_VERTEX_UNIFORM_VECTORS, LOC_CUSTOM, TYPE_INT, 0,
+     extra_ARB_ES2_compatibility },
+   { GL_MAX_FRAGMENT_UNIFORM_VECTORS, LOC_CUSTOM, TYPE_INT, 0,
+     extra_ARB_ES2_compatibility },
+
    /* GL_ARB_multitexture */
    { GL_MAX_TEXTURE_UNITS_ARB,
      CONTEXT_INT(Const.MaxTextureUnits), extra_ARB_multitexture },




More information about the mesa-commit mailing list