From: Dave Airlie <airl...@redhat.com> This adds the necessary storage for subroutine info to gl_shader.
Signed-off-by: Dave Airlie <airl...@redhat.com> --- src/mesa/main/mtypes.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index a93fe94..c53bf2d 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2359,6 +2359,15 @@ struct gl_ati_fragment_shader_state struct ati_fragment_shader *Current; }; +/** + * Shader subroutine function definition + */ +struct gl_subroutine_function +{ + char *name; + int num_compat_types; + const struct glsl_type **types; +}; /** * A GLSL vertex or fragment shader object. @@ -2509,6 +2518,12 @@ struct gl_shader */ unsigned LocalSize[3]; } Comp; + + GLuint NumSubroutineUniformTypes; + GLuint NumSubroutineUniforms; + struct gl_uniform_storage **SubroutineUniformRemapTable; + GLuint NumSubroutineFunctions; + struct gl_subroutine_function *SubroutineFunctions; }; -- 2.4.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev