[Piglit] [PATCH 1/5] util: Add wrappers for glUniform[234]iv functions
Ian Romanick
idr at freedesktop.org
Tue May 3 11:29:58 PDT 2011
From: Ian Romanick <ian.d.romanick at intel.com>
---
tests/util/piglit-shader-gl.c | 6 ++++++
tests/util/piglit-util.h | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tests/util/piglit-shader-gl.c b/tests/util/piglit-shader-gl.c
index d2551f5..a26fbc7 100644
--- a/tests/util/piglit-shader-gl.c
+++ b/tests/util/piglit-shader-gl.c
@@ -51,6 +51,9 @@ PFNGLUNIFORM2FVPROC piglit_Uniform2fv = NULL;
PFNGLUNIFORM3FVPROC piglit_Uniform3fv = NULL;
PFNGLUNIFORM4FVPROC piglit_Uniform4fv = NULL;
PFNGLUNIFORM1IPROC piglit_Uniform1i = NULL;
+PFNGLUNIFORM2IVPROC piglit_Uniform2iv = NULL;
+PFNGLUNIFORM3IVPROC piglit_Uniform3iv = NULL;
+PFNGLUNIFORM4IVPROC piglit_Uniform4iv = NULL;
PFNGLUNIFORMMATRIX2FVPROC piglit_UniformMatrix2fv = NULL;
PFNGLUNIFORMMATRIX3FVPROC piglit_UniformMatrix3fv = NULL;
PFNGLUNIFORMMATRIX4FVPROC piglit_UniformMatrix4fv = NULL;
@@ -89,6 +92,9 @@ init_functions_from_core(void)
piglit_Uniform3fv = glUniform3fv;
piglit_Uniform4fv = glUniform4fv;
piglit_Uniform1i = glUniform1i;
+ piglit_Uniform2iv = glUniform2iv;
+ piglit_Uniform3iv = glUniform3iv;
+ piglit_Uniform4iv = glUniform4iv;
piglit_UniformMatrix2fv = glUniformMatrix2fv;
piglit_UniformMatrix3fv = glUniformMatrix3fv;
piglit_UniformMatrix4fv = glUniformMatrix4fv;
diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h
index 8e7b262..3f612e6 100644
--- a/tests/util/piglit-util.h
+++ b/tests/util/piglit-util.h
@@ -212,6 +212,9 @@ extern GLint piglit_ARBfp_pass_through;
#define piglit_Uniform3fv glUniform3fv
#define piglit_Uniform4fv glUniform4fv
#define piglit_Uniform1i glUniform1i
+#define piglit_Uniform2iv glUniform2iv
+#define piglit_Uniform3iv glUniform3iv
+#define piglit_Uniform4iv glUniform4iv
#define piglit_UniformMatrix2fv glUniformMatrix2fv
#define piglit_UniformMatrix3fv glUniformMatrix3fv
#define piglit_UniformMatrix4fv glUniformMatrix4fv
@@ -246,6 +249,9 @@ extern PFNGLUNIFORM2FVPROC piglit_Uniform2fv;
extern PFNGLUNIFORM3FVPROC piglit_Uniform3fv;
extern PFNGLUNIFORM4FVPROC piglit_Uniform4fv;
extern PFNGLUNIFORM1IPROC piglit_Uniform1i;
+extern PFNGLUNIFORM2IVPROC piglit_Uniform2iv;
+extern PFNGLUNIFORM3IVPROC piglit_Uniform3iv;
+extern PFNGLUNIFORM4IVPROC piglit_Uniform4iv;
extern PFNGLUNIFORMMATRIX2FVPROC piglit_UniformMatrix2fv;
extern PFNGLUNIFORMMATRIX3FVPROC piglit_UniformMatrix3fv;
extern PFNGLUNIFORMMATRIX4FVPROC piglit_UniformMatrix4fv;
--
1.7.4
More information about the Piglit
mailing list