Lines Matching defs:source

90    glsl source:
96 char *try_direct_replace(const char *app, const char *source)
109 static char *try_direct_replace(const char *app, const char *source)
252 * \param src the strings source
1126 * Return shader source code.
1148 * Set/replace shader source code. A helper function used by
1152 set_shader_source(struct gl_shader *sh, const GLchar *source,
1168 /* If shader was previously compiled back-up the source in case of cache
1173 sh->Source = source;
1175 /* free old shader source string and install new one */
1177 sh->Source = source;
1220 _mesa_log("GLSL source for %s shader %d:\n",
1258 _mesa_log("GLSL source for %s shader %d:\n",
1941 const char *source, const char *path)
1947 const char *format = strncmp(source, "!!ARB", 5) ? "glsl" : "arb";
1953 * Write given shader source to a file in MESA_SHADER_DUMP_PATH.
1956 _mesa_dump_shader_source(const gl_shader_stage stage, const char *source,
1975 char *name = construct_name(stage, sha, source, dump_path);
1979 fputs(source, f);
1991 * Read shader source code from a file.
1995 _mesa_read_shader_source(const gl_shader_stage stage, const char *source,
2010 char *new_source = try_direct_replace(process_name, source);
2038 char *name = construct_name(stage, sha, source, read_path);
2068 * Basically, concatenate the source code strings into one long string
2077 GLcharARB *source;
2099 * last element will be set to the total length of the source code.
2123 /* Total length of source string is sum off all strings plus two.
2128 source = malloc(totalLength * sizeof(GLcharARB));
2129 if (source == NULL) {
2137 memcpy(source + start, string[i],
2140 source[totalLength - 1] = '\0';
2141 source[totalLength - 2] = '\0';
2143 /* Compute the original source sha1 before shader replacement. */
2145 _mesa_sha1_compute(source, strlen(source), original_sha1);
2150 /* Dump original shader source to MESA_SHADER_DUMP_PATH and replace
2153 _mesa_dump_shader_source(sh->Stage, source, original_sha1);
2155 replacement = _mesa_read_shader_source(sh->Stage, source, original_sha1);
2157 free(source);
2158 source = replacement;
2162 set_shader_source(sh, source, original_sha1);
3682 const char *source = _mesa_lookup_shader_include(ctx, name_cp, false);
3685 if (!source)
3702 const char *source = _mesa_lookup_shader_include(ctx, name_cp, true);
3703 if (!source) {
3710 size_t size = MIN2(strlen(source), bufSize - 1);
3711 memcpy(string, source, size);
3730 const char *source = _mesa_lookup_shader_include(ctx, name_cp, true);
3731 if (!source) {
3740 *params = strlen(source) + 1;