Lines Matching defs:shProg
211 struct gl_shader_program *shProg,
215 if (shProg && shProg->_LinkedShaders[stage])
216 prog = shProg->_LinkedShaders[stage]->Program;
218 _mesa_use_program(ctx, stage, shProg, prog, pipe);
222 use_program_stages(struct gl_context *ctx, struct gl_shader_program *shProg,
239 use_program_stage(ctx, GL_VERTEX_SHADER, shProg, pipe);
242 use_program_stage(ctx, GL_FRAGMENT_SHADER, shProg, pipe);
245 use_program_stage(ctx, GL_GEOMETRY_SHADER, shProg, pipe);
248 use_program_stage(ctx, GL_TESS_CONTROL_SHADER, shProg, pipe);
251 use_program_stage(ctx, GL_TESS_EVALUATION_SHADER, shProg, pipe);
254 use_program_stage(ctx, GL_COMPUTE_SHADER, shProg, pipe);
270 struct gl_shader_program *shProg = NULL;
273 shProg = _mesa_lookup_shader_program(ctx, prog);
280 use_program_stages(ctx, shProg, stages, pipe);
292 struct gl_shader_program *shProg = NULL;
348 shProg = _mesa_lookup_shader_program_err(ctx, program,
350 if (shProg == NULL)
362 if (!shProg->data->LinkStatus) {
368 if (!shProg->SeparateShader) {
376 use_program_stages(ctx, shProg, stages, pipe);
383 struct gl_shader_program *shProg = NULL;
388 shProg = _mesa_lookup_shader_program(ctx, program);
390 shProg = _mesa_lookup_shader_program_err(ctx, program,
392 if (shProg == NULL)
407 if (!no_error && shProg != NULL && !shProg->data->LinkStatus) {
409 "glActiveShaderProgram(program %u not linked)", shProg->Name);
413 _mesa_reference_shader_program(ctx, &pipe->ActiveProgram, shProg);