Mesa (master): mesa/main: GL_GEOMETRY_SHADER_INVOCATIONS exists in GL_OES_geometry_shader
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 18 09:58:00 UTC 2019
Module: Mesa
Branch: master
Commit: 5be5b53b6d6e59acb683644cdab533fd80b00713
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5be5b53b6d6e59acb683644cdab533fd80b00713
Author: Iago Toral Quiroga <itoral at igalia.com>
Date: Mon Oct 14 10:13:17 2019 +0200
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 at amd.com>
---
src/mesa/main/shaderapi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 0a9700a6761..8bca17a9352 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -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;
More information about the mesa-commit
mailing list