From: Jordan Justen Date: Sat, 25 Jan 2014 20:37:40 +0000 (-0800) Subject: main/shaderapi: GL_GEOMETRY_SHADER_INVOCATIONS GetProgramiv support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22388e2208a9a321240ec505f513fa5de5af8946;p=mesa.git main/shaderapi: GL_GEOMETRY_SHADER_INVOCATIONS GetProgramiv support v3: * Add check for ARB_gpu_shader5 Signed-off-by: Jordan Justen Reviewed-by: Paul Berry Reviewed-by: Anuj Phogat --- diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 8b962af6677..bf138149087 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -606,6 +606,12 @@ get_programiv(struct gl_context *ctx, GLuint program, GLenum pname, GLint *param if (check_gs_query(ctx, shProg)) *params = shProg->Geom.VerticesOut; return; + case GL_GEOMETRY_SHADER_INVOCATIONS: + if (!has_core_gs || !ctx->Extensions.ARB_gpu_shader5) + break; + if (check_gs_query(ctx, shProg)) + *params = shProg->Geom.Invocations; + return; case GL_GEOMETRY_INPUT_TYPE: if (!has_core_gs) break;