• Home
  • Raw
  • Download

Lines Matching refs:prog

182          struct gl_program *prog = _mesa_lookup_program(ctx, ids[i]);  in _mesa_DeleteProgramsARB()  local
183 if (prog == &_mesa_DummyProgram) { in _mesa_DeleteProgramsARB()
186 else if (prog) { in _mesa_DeleteProgramsARB()
188 switch (prog->Target) { in _mesa_DeleteProgramsARB()
193 _mesa_BindProgramARB(prog->Target, 0); in _mesa_DeleteProgramsARB()
200 _mesa_BindProgramARB(prog->Target, 0); in _mesa_DeleteProgramsARB()
209 _mesa_reference_program(ctx, &prog, NULL); in _mesa_DeleteProgramsARB()
259 struct gl_program *prog = NULL; in _mesa_IsProgramARB() local
266 prog = _mesa_lookup_program(ctx, id); in _mesa_IsProgramARB()
267 if (prog && (prog != &_mesa_DummyProgram)) in _mesa_IsProgramARB()
293 struct gl_program* prog, GLenum target, in get_local_param_pointer() argument
296 if (unlikely(index + count > prog->arb.MaxLocalParams)) { in get_local_param_pointer()
298 if (!prog->arb.MaxLocalParams) { in get_local_param_pointer()
307 if (!prog->arb.LocalParams) { in get_local_param_pointer()
308 prog->arb.LocalParams = rzalloc_array_size(prog, sizeof(float[4]), in get_local_param_pointer()
310 if (!prog->arb.LocalParams) { in get_local_param_pointer()
317 prog->arb.MaxLocalParams = max; in get_local_param_pointer()
321 if (index + count > prog->arb.MaxLocalParams) { in get_local_param_pointer()
327 *param = prog->arb.LocalParams[index]; in get_local_param_pointer()
360 set_program_string(struct gl_program *prog, GLenum target, GLenum format, GLsizei len, in set_program_string() argument
398 _mesa_parse_arb_vertex_program(ctx, target, string, len, prog); in set_program_string()
402 _mesa_parse_arb_fragment_program(ctx, target, string, len, prog); in set_program_string()
413 if (!st_program_string_notify(ctx, target, prog)) { in set_program_string()
428 shader_type, prog->Id); in set_program_string()
433 shader_type, prog->Id); in set_program_string()
436 shader_type, prog->Id); in set_program_string()
437 _mesa_print_program(prog); in set_program_string()
451 capture_path, shader_type[0], prog->Id); in set_program_string()
488 struct gl_program* prog = lookup_or_create_program(program, target, "glNamedProgramStringEXT"); in _mesa_NamedProgramStringEXT() local
490 if (!prog) { in _mesa_NamedProgramStringEXT()
493 set_program_string(prog, target, format, len, string); in _mesa_NamedProgramStringEXT()
640 struct gl_program* prog = get_current_program(ctx, target, "glProgramLocalParameterARB"); in _mesa_ProgramLocalParameter4fARB() local
641 if (!prog) { in _mesa_ProgramLocalParameter4fARB()
648 prog, target, index, 1, &param)) { in _mesa_ProgramLocalParameter4fARB()
660 struct gl_program* prog = lookup_or_create_program(program, target, in _mesa_NamedProgramLocalParameter4fEXT() local
663 if (!prog) { in _mesa_NamedProgramLocalParameter4fEXT()
667 if ((target == GL_VERTEX_PROGRAM_ARB && prog == ctx->VertexProgram.Current) || in _mesa_NamedProgramLocalParameter4fEXT()
668 (target == GL_FRAGMENT_PROGRAM_ARB && prog == ctx->FragmentProgram.Current)) { in _mesa_NamedProgramLocalParameter4fEXT()
673 prog, target, index, 1, &param)) { in _mesa_NamedProgramLocalParameter4fEXT()
699 program_local_parameters4fv(struct gl_program* prog, GLuint index, GLsizei count, in program_local_parameters4fv() argument
704 flush_vertices_for_program_constants(ctx, prog->Target); in program_local_parameters4fv()
711 prog, prog->Target, index, count, &dest)) in program_local_parameters4fv()
721 struct gl_program* prog = get_current_program(ctx, target, in _mesa_ProgramLocalParameters4fvEXT() local
723 if (!prog) { in _mesa_ProgramLocalParameters4fvEXT()
727 program_local_parameters4fv(prog, index, count, params, in _mesa_ProgramLocalParameters4fvEXT()
735 struct gl_program* prog = in _mesa_NamedProgramLocalParameters4fvEXT() local
738 if (!prog) { in _mesa_NamedProgramLocalParameters4fvEXT()
742 program_local_parameters4fv(prog, index, count, params, in _mesa_NamedProgramLocalParameters4fvEXT()
793 struct gl_program* prog = get_current_program(ctx, target, "glGetProgramLocalParameterfvARB"); in _mesa_GetProgramLocalParameterfvARB() local
794 if (!prog) { in _mesa_GetProgramLocalParameterfvARB()
799 prog, target, index, 1, &param)) { in _mesa_GetProgramLocalParameterfvARB()
811 struct gl_program* prog = lookup_or_create_program(program, target, in _mesa_GetNamedProgramLocalParameterfvEXT() local
813 if (!prog) { in _mesa_GetNamedProgramLocalParameterfvEXT()
818 prog, target, index, 1, &param)) { in _mesa_GetNamedProgramLocalParameterfvEXT()
830 struct gl_program* prog = get_current_program(ctx, target, "glGetProgramLocalParameterdvARB"); in _mesa_GetProgramLocalParameterdvARB() local
831 if (!prog) { in _mesa_GetProgramLocalParameterdvARB()
836 prog, target, index, 1, &param)) { in _mesa_GetProgramLocalParameterdvARB()
848 struct gl_program* prog = lookup_or_create_program(program, target, in _mesa_GetNamedProgramLocalParameterdvEXT() local
850 if (!prog) { in _mesa_GetNamedProgramLocalParameterdvEXT()
855 prog, target, index, 1, &param)) { in _mesa_GetNamedProgramLocalParameterdvEXT()
862 get_program_iv(struct gl_program *prog, GLenum target, GLenum pname, in get_program_iv() argument
876 assert(prog); in get_program_iv()
883 = prog->String ? (GLint) strlen((char *) prog->String) : 0; in get_program_iv()
886 *params = prog->Format; in get_program_iv()
889 *params = prog->Id; in get_program_iv()
892 *params = prog->arb.NumInstructions; in get_program_iv()
898 *params = prog->arb.NumNativeInstructions; in get_program_iv()
904 *params = prog->arb.NumTemporaries; in get_program_iv()
910 *params = prog->arb.NumNativeTemporaries; in get_program_iv()
916 *params = prog->arb.NumParameters; in get_program_iv()
922 *params = prog->arb.NumNativeParameters; in get_program_iv()
928 *params = prog->arb.NumAttributes; in get_program_iv()
934 *params = prog->arb.NumNativeAttributes; in get_program_iv()
940 *params = prog->arb.NumAddressRegs; in get_program_iv()
946 *params = prog->arb.NumNativeAddressRegs; in get_program_iv()
965 if (prog->Id == 0) { in get_program_iv()
1036 struct gl_program* prog = get_current_program(ctx, target, in _mesa_GetProgramivARB() local
1038 if (!prog) { in _mesa_GetProgramivARB()
1041 get_program_iv(prog, target, pname, params); in _mesa_GetProgramivARB()
1048 struct gl_program* prog; in _mesa_GetNamedProgramivEXT() local
1053 prog = lookup_or_create_program(program, target, in _mesa_GetNamedProgramivEXT()
1055 if (!prog) { in _mesa_GetNamedProgramivEXT()
1058 get_program_iv(prog, target, pname, params); in _mesa_GetNamedProgramivEXT()
1065 const struct gl_program *prog; in _mesa_GetProgramStringARB() local
1070 prog = ctx->VertexProgram.Current; in _mesa_GetProgramStringARB()
1073 prog = ctx->FragmentProgram.Current; in _mesa_GetProgramStringARB()
1080 assert(prog); in _mesa_GetProgramStringARB()
1087 if (prog->String) in _mesa_GetProgramStringARB()
1088 memcpy(dst, prog->String, strlen((char *) prog->String)); in _mesa_GetProgramStringARB()
1099 struct gl_program* prog = lookup_or_create_program(program, target, in _mesa_GetNamedProgramStringEXT() local
1101 if (!prog) in _mesa_GetNamedProgramStringEXT()
1109 if (prog->String) in _mesa_GetNamedProgramStringEXT()
1110 memcpy(dst, prog->String, strlen((char *) prog->String)); in _mesa_GetNamedProgramStringEXT()