On 28 January 2014 11:22, Jordan Justen <jordan.l.jus...@intel.com> wrote:
> Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com> > --- > src/mesa/main/shaderapi.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c > index a8336c9..fb107d5 100644 > --- a/src/mesa/main/shaderapi.c > +++ b/src/mesa/main/shaderapi.c > @@ -603,6 +603,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) > This needs to be: if (!has_core_gs || !ctx->Extensions.ARB_gpu_shader5) so that the query will generate the proper error message on platforms that don't support 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; > -- > 1.8.5.3 > With that fixed, the patch is: Reviewed-by: Paul Berry <stereotype...@gmail.com>
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev