Lines Matching refs:sh
57 struct gl_shader *sh) in _mesa_reference_shader() argument
60 if (*ptr == sh) { in _mesa_reference_shader()
85 if (sh) { in _mesa_reference_shader()
87 sh->RefCount++; in _mesa_reference_shader()
90 *ptr = sh; in _mesa_reference_shader()
125 _mesa_delete_shader(struct gl_context *ctx, struct gl_shader *sh) in _mesa_delete_shader() argument
127 if (sh->Source) in _mesa_delete_shader()
128 free((void *) sh->Source); in _mesa_delete_shader()
129 _mesa_reference_program(ctx, &sh->Program, NULL); in _mesa_delete_shader()
130 ralloc_free(sh); in _mesa_delete_shader()
141 struct gl_shader *sh = (struct gl_shader *) in _mesa_lookup_shader() local
147 if (sh && sh->Type == GL_SHADER_PROGRAM_MESA) { in _mesa_lookup_shader()
150 return sh; in _mesa_lookup_shader()
167 struct gl_shader *sh = (struct gl_shader *) in _mesa_lookup_shader_err() local
169 if (!sh) { in _mesa_lookup_shader_err()
173 if (sh->Type == GL_SHADER_PROGRAM_MESA) { in _mesa_lookup_shader_err()
177 return sh; in _mesa_lookup_shader_err()
311 gl_shader_type sh; in _mesa_free_shader_program_data() local
352 for (sh = 0; sh < MESA_SHADER_TYPES; sh++) { in _mesa_free_shader_program_data()
353 if (shProg->_LinkedShaders[sh] != NULL) { in _mesa_free_shader_program_data()
354 ctx->Driver.DeleteShader(ctx, shProg->_LinkedShaders[sh]); in _mesa_free_shader_program_data()
355 shProg->_LinkedShaders[sh] = NULL; in _mesa_free_shader_program_data()