mesa/main: GL_GEOMETRY_SHADER_INVOCATIONS exists in GL_OES_geometry_shader

It seems that for desktop GL this was included with ARB_gpu_shader5, but
for OpenGL ES this is already included with the base extension and there is
a CTS test that checks this.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Iago Toral Quiroga 2019-10-14 10:13:17 +02:00 committed by Iago Toral
parent af60187153
commit 5be5b53b6d
1 changed files with 3 additions and 1 deletions

View File

@ -833,8 +833,10 @@ get_programiv(struct gl_context *ctx, GLuint program, GLenum pname,
}
return;
case GL_GEOMETRY_SHADER_INVOCATIONS:
if (!has_gs || !ctx->Extensions.ARB_gpu_shader5)
if (!has_gs ||
(_mesa_is_desktop_gl(ctx) && !ctx->Extensions.ARB_gpu_shader5)) {
break;
}
if (check_gs_query(ctx, shProg)) {
*params = shProg->_LinkedShaders[MESA_SHADER_GEOMETRY]->
Program->info.gs.invocations;