mesa/main: fixup requirements for GL_PRIMITIVES_GENERATED

This enum is also allowed by EXT_tessellation_shader, which is supported
on older i965 HW (as opposed to OES_geometry_shader). This was missed
when narrowing this code-path, leading to dEQP regressions.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108868
Fixes: f09d94fbd1 "mesa/main: fix validation of transform-feedback queries"
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
This commit is contained in:
Erik Faye-Lund 2018-11-26 20:36:04 +01:00
parent c120dbfe4d
commit d6d35d87f1
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@ get_query_binding_point(struct gl_context *ctx, GLenum target, GLuint index)
return NULL;
case GL_PRIMITIVES_GENERATED:
if (_mesa_has_EXT_transform_feedback(ctx) ||
_mesa_has_EXT_tessellation_shader(ctx) ||
_mesa_has_OES_geometry_shader(ctx))
return &ctx->Query.PrimitivesGenerated[index];
else