diff options
author | Eric Anholt <[email protected]> | 2010-06-30 11:05:43 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-06-30 11:30:26 -0700 |
commit | 16b68b1952d0da14b9ce8306efa64988ce46b4b7 (patch) | |
tree | 9d8c8961b2ff83aaf0a1b83f589e9cb73feec1b6 /src/glsl/program.h | |
parent | 524745bc55dd23c612aebdb545125727bfb16e4d (diff) |
glsl2: Move our data from a glsl_shader* on the side to the main gl_shader *.
This saves recompiling at link time. gl_shader->ir is made a pointer
so that we don't have to bring exec_list into mtypes.h.
Diffstat (limited to 'src/glsl/program.h')
-rw-r--r-- | src/glsl/program.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/glsl/program.h b/src/glsl/program.h index fd8197a45a6..19c3a3e611b 100644 --- a/src/glsl/program.h +++ b/src/glsl/program.h @@ -30,24 +30,6 @@ extern "C" { } /** - * Based on gl_shader in Mesa's mtypes.h. - */ -struct glsl_shader { - GLenum Type; - GLuint Name; - GLint RefCount; - GLboolean DeletePending; - GLboolean CompileStatus; - const GLchar *Source; /**< Source code string */ - size_t SourceLen; - GLchar *InfoLog; - - struct exec_list ir; - struct glsl_symbol_table *symbols; - struct gl_shader *mesa_shader; -}; - -/** * Based on gl_shader_program in Mesa's mtypes.h. */ struct glsl_program { @@ -57,14 +39,14 @@ struct glsl_program { GLboolean DeletePending; GLuint NumShaders; /**< number of attached shaders */ - struct glsl_shader **Shaders; /**< List of attached the shaders */ + struct gl_shader **Shaders; /**< List of attached the shaders */ /** * Per-stage shaders resulting from the first stage of linking. */ /*@{*/ unsigned _NumLinkedShaders; - struct glsl_shader **_LinkedShaders; + struct gl_shader **_LinkedShaders; /*@}*/ /** User-defined attribute bindings (glBindAttribLocation) */ |