From e3fd31dc411c023495970ac51ce28b4d0deb80e6 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Wed, 11 Sep 2013 11:31:01 -0700 Subject: glapi: Add support for ARB_shader_atomic_counters. Add XML file for the dispatch code generator, update the dispatch_sanity test and add stub definition for the new entry point. Reviewed-by: Paul Berry Reviewed-by: Ian Romanick --- src/mesa/main/tests/dispatch_sanity.cpp | 2 +- src/mesa/main/uniforms.c | 6 ++++++ src/mesa/main/uniforms.h | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp index d26819c6b84..408dbc0ca74 100644 --- a/src/mesa/main/tests/dispatch_sanity.cpp +++ b/src/mesa/main/tests/dispatch_sanity.cpp @@ -827,7 +827,7 @@ const struct function gl_core_functions_possible[] = { { "glDrawTransformFeedbackInstanced", 43, -1 }, { "glDrawTransformFeedbackStreamInstanced", 43, -1 }, // { "glGetInternalformativ", 43, -1 }, // XXX: Add to xml -// { "glGetActiveAtomicCounterBufferiv", 43, -1 }, // XXX: Add to xml + { "glGetActiveAtomicCounterBufferiv", 43, -1 }, // { "glBindImageTexture", 43, -1 }, // XXX: Add to xml // { "glMemoryBarrier", 43, -1 }, // XXX: Add to xml { "glTexStorage1D", 43, -1 }, diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index 1e6f7f483c4..07e7ea37998 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -844,3 +844,9 @@ _mesa_get_uniform_name(const struct gl_uniform_storage *uni, *length += i; } } + +void GLAPIENTRY +_mesa_GetActiveAtomicCounterBufferiv(GLuint program, GLuint bufferIndex, + GLenum pname, GLint *params) +{ +} diff --git a/src/mesa/main/uniforms.h b/src/mesa/main/uniforms.h index 92239176e94..f7cac63286b 100644 --- a/src/mesa/main/uniforms.h +++ b/src/mesa/main/uniforms.h @@ -142,6 +142,9 @@ _mesa_UniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); void GLAPIENTRY +_mesa_GetActiveAtomicCounterBufferiv(GLuint program, GLuint bufferIndex, + GLenum pname, GLint *params); +void GLAPIENTRY _mesa_GetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, -- cgit v1.2.3