From e2791b38b42f83add5b07298c39741bf0a6d7d4b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 24 May 2016 07:58:32 +1000 Subject: mesa/program_interface_query: fix transform feedback varyings. The spec says gl_NextBuffer and gl_SkipComponents need to be returned to userspace in the program interface queries. We currently throw those away, this requires a complete piglit run to make sure no drivers fallover due to the extra varyings. This fixes: GL45-CTS.program_interface_query.transform-feedback-built-in Reviewed-by: Timothy Arceri Signed-off-by: Dave Airlie --- src/mesa/main/shader_query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index 31c0a4eb6fb..28d8147efe0 100644 --- a/src/mesa/main/shader_query.cpp +++ b/src/mesa/main/shader_query.cpp @@ -1143,7 +1143,7 @@ _mesa_program_resource_prop(struct gl_shader_program *shProg, *val = MAX2(_mesa_program_resource_array_size(res), 1); return 1; case GL_TRANSFORM_FEEDBACK_VARYING: - *val = MAX2(RESOURCE_XFV(res)->Size, 1); + *val = RESOURCE_XFV(res)->Size; return 1; default: goto invalid_operation; -- cgit v1.2.3