Lines Matching defs:program
49 #include "program/program.h"
50 #include "program/prog_parameter.h"
226 /* Enable individual stages from the program as requested by the
228 * program, _mesa_use_shader_program will enable fixed-function processing
234 * "If UseProgramStages is called with program set to zero or with a
235 * program object that contains no executable code for the given
285 * Bound program to severals stages of the pipeline
288 _mesa_UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program)
298 pipeline, stages, program);
336 * - by UseProgramStages if the program pipeline object it refers
348 if (program) {
349 shProg = _mesa_lookup_shader_program_err(ctx, program,
357 * "If the program object named by program was linked without the
360 * shader stages in the pipeline program pipeline object are not
365 "glUseProgramStages(program not linked)");
371 "glUseProgramStages(program wasn't linked with the "
381 active_shader_program(struct gl_context *ctx, GLuint pipeline, GLuint program,
387 if (program) {
389 shProg = _mesa_lookup_shader_program(ctx, program);
391 shProg = _mesa_lookup_shader_program_err(ctx, program,
392 "glActiveShaderProgram(program)");
410 "glActiveShaderProgram(program %u not linked)", shProg->Name);
420 _mesa_ActiveShaderProgram_no_error(GLuint pipeline, GLuint program)
423 active_shader_program(ctx, pipeline, program, true);
427 * Use the named shader program for subsequent glUniform calls (if pipeline
431 _mesa_ActiveShaderProgram(GLuint pipeline, GLuint program)
436 _mesa_debug(ctx, "glActiveShaderProgram(%u, %u)\n", pipeline, program);
438 active_shader_program(ctx, pipeline, program, false);
498 * Make program of the pipeline current
517 * "If there is a current program object established by UseProgram,
518 * that program is considered current for all stages. Otherwise, if
519 * there is a bound program pipeline object (see section 2.11.4), the
520 * program bound to the appropriate stage of the pipeline object is
527 /* Bound the pipeline to the current program and
579 * object reverts to zero and no program pipeline object becomes
624 /* make dsa-allocated objects behave like program objects */
785 * Determines whether every stage in a linked program is active in the
832 * linked program because a previous validation call to
876 * - A program object is active for at least one, but not all of
877 * the shader stages that were present when the program was
880 * For each possible program stage, verify that the program bound to that
881 * stage has all of its stages active. In other words, if the program
899 * - One program object is active for at least two shader stages
900 * and a second program is active for a shader stage between two
901 * stages for which the first program was active."
907 "intervening stage provided by another program");
919 * - There is an active program for tessellation control,
921 * executable shader, but there is no active program with
940 * - There is no current program object specified by UseProgram,
941 * there is a current program pipeline object, and the current
942 * program for any shader stage has been relinked since being
961 * of active program objects cannot be executed, for reasons including:
965 * - There is no current program object specified by UseProgram,
966 * there is a current program pipeline object, and that object is
988 * - Any two active samplers in the current program object are of
991 * - The number of active samplers in the program exceeds the
1002 * "Separable program objects may have validation failures that cannot be
1003 * detected without the complete program pipeline. Mismatched interfaces,
1004 * improper usage of program objects together, and the same
1006 * program objects."
1014 * active program objects cannot be executed, for reasons including:
1016 * * The current program pipeline object contains a shader interface
1044 * Check compatibility of pipeline's program