Lines Matching defs:sh

104    gl_shader_type sh;
113 for (sh = 0; sh < MESA_SHADER_TYPES; ++sh)
114 memcpy(&ctx->ShaderCompilerOptions[sh], &options, sizeof(options));
212 struct gl_shader *sh;
219 sh = _mesa_lookup_shader_err(ctx, shader, "glAttachShader");
220 if (!sh) {
226 if (shProg->Shaders[i] == sh) {
250 _mesa_reference_shader(ctx, &shProg->Shaders[n], sh);
258 struct gl_shader *sh;
267 sh = ctx->Driver.NewShader(ctx, name, type);
268 _mesa_HashInsert(ctx->Shared->ShaderObjects, name, sh);
325 struct gl_shader *sh;
327 sh = _mesa_lookup_shader_err(ctx, shader, "glDeleteShader");
328 if (!sh)
331 if (!sh->DeletePending) {
332 sh->DeletePending = GL_TRUE;
334 /* effectively, decr sh's refcount */
335 _mesa_reference_shader(ctx, &sh, NULL);
662 struct gl_shader *sh = _mesa_lookup_shader(ctx, shader);
663 if (!sh) {
667 _mesa_copy_string(infoLog, bufSize, length, sh->InfoLog);
678 struct gl_shader *sh;
679 sh = _mesa_lookup_shader_err(ctx, shader, "glGetShaderSource");
680 if (!sh) {
683 _mesa_copy_string(sourceOut, maxLength, length, sh->Source);
694 struct gl_shader *sh;
696 sh = _mesa_lookup_shader_err(ctx, shader, "glShaderSource");
697 if (!sh)
701 if (sh->Source) {
702 free((void *) sh->Source);
704 sh->Source = source;
705 sh->CompileStatus = GL_FALSE;
707 sh->SourceChecksum = _mesa_str_checksum(sh->Source);
718 struct gl_shader *sh;
721 sh = _mesa_lookup_shader_err(ctx, shaderObj, "glCompileShader");
722 if (!sh)
725 options = &ctx->ShaderCompilerOptions[_mesa_shader_type_to_index(sh->Type)];
728 sh->Pragmas = options->DefaultPragmas;
730 /* this call will set the sh->CompileStatus field to indicate if
733 _mesa_glsl_compile_shader(ctx, sh);
735 if (sh->CompileStatus == GL_FALSE &&
738 sh->Name, sh->InfoLog);
1400 struct gl_shader *sh = _mesa_lookup_shader(ctx, shaderObj);
1401 if (sh)
1402 sh->SourceChecksum = checksum; /* save original checksum */
1682 struct gl_shader *sh;
1686 sh = _mesa_lookup_shader(ctx, shader);
1703 ralloc_strcat(&shProg->InfoLog, sh->InfoLog);