Lines Matching refs:prog

177          struct gl_program *prog = _mesa_lookup_program(ctx, ids[i]);  in _mesa_DeletePrograms()  local
178 if (prog == &_mesa_DummyProgram) { in _mesa_DeletePrograms()
181 else if (prog) { in _mesa_DeletePrograms()
183 switch (prog->Target) { in _mesa_DeletePrograms()
189 _mesa_BindProgram(prog->Target, 0); in _mesa_DeletePrograms()
197 _mesa_BindProgram(prog->Target, 0); in _mesa_DeletePrograms()
206 _mesa_reference_program(ctx, &prog, NULL); in _mesa_DeletePrograms()
258 struct gl_program *prog = NULL; in _mesa_IsProgramARB() local
265 prog = _mesa_lookup_program(ctx, id); in _mesa_IsProgramARB()
266 if (prog && (prog != &_mesa_DummyProgram)) in _mesa_IsProgramARB()
276 struct gl_program *prog; in get_local_param_pointer() local
281 prog = &(ctx->VertexProgram.Current->Base); in get_local_param_pointer()
286 prog = &(ctx->FragmentProgram.Current->Base); in get_local_param_pointer()
291 prog = &(ctx->FragmentProgram.Current->Base); in get_local_param_pointer()
305 *param = prog->LocalParams[index]; in get_local_param_pointer()
368 struct gl_vertex_program *prog = ctx->VertexProgram.Current; in _mesa_ProgramStringARB() local
369 _mesa_parse_arb_vertex_program(ctx, target, string, len, prog); in _mesa_ProgramStringARB()
371 base = & prog->Base; in _mesa_ProgramStringARB()
376 struct gl_vertex_program *prog = ctx->VertexProgram.Current; in _mesa_ProgramStringARB() local
377 _mesa_parse_nv_vertex_program(ctx, target, string, len, prog); in _mesa_ProgramStringARB()
379 base = & prog->Base; in _mesa_ProgramStringARB()
383 struct gl_fragment_program *prog = ctx->FragmentProgram.Current; in _mesa_ProgramStringARB() local
384 _mesa_parse_arb_fragment_program(ctx, target, string, len, prog); in _mesa_ProgramStringARB()
386 base = & prog->Base; in _mesa_ProgramStringARB()
390 struct gl_fragment_program *prog = ctx->FragmentProgram.Current; in _mesa_ProgramStringARB() local
391 _mesa_parse_nv_fragment_program(ctx, target, string, len, prog); in _mesa_ProgramStringARB()
393 base = & prog->Base; in _mesa_ProgramStringARB()
698 struct gl_program *prog; in _mesa_GetProgramivARB() local
705 prog = &(ctx->VertexProgram.Current->Base); in _mesa_GetProgramivARB()
710 prog = &(ctx->FragmentProgram.Current->Base); in _mesa_GetProgramivARB()
718 ASSERT(prog); in _mesa_GetProgramivARB()
725 = prog->String ? (GLint) strlen((char *) prog->String) : 0; in _mesa_GetProgramivARB()
728 *params = prog->Format; in _mesa_GetProgramivARB()
731 *params = prog->Id; in _mesa_GetProgramivARB()
734 *params = prog->NumInstructions; in _mesa_GetProgramivARB()
740 *params = prog->NumNativeInstructions; in _mesa_GetProgramivARB()
746 *params = prog->NumTemporaries; in _mesa_GetProgramivARB()
752 *params = prog->NumNativeTemporaries; in _mesa_GetProgramivARB()
758 *params = prog->NumParameters; in _mesa_GetProgramivARB()
764 *params = prog->NumNativeParameters; in _mesa_GetProgramivARB()
770 *params = prog->NumAttributes; in _mesa_GetProgramivARB()
776 *params = prog->NumNativeAttributes; in _mesa_GetProgramivARB()
782 *params = prog->NumAddressRegs; in _mesa_GetProgramivARB()
788 *params = prog->NumNativeAddressRegs; in _mesa_GetProgramivARB()
807 if (prog->Id == 0) { in _mesa_GetProgramivARB()
813 *params = ctx->Driver.IsProgramNative( ctx, target, prog ); in _mesa_GetProgramivARB()
881 const struct gl_program *prog; in _mesa_GetProgramStringARB() local
888 prog = &(ctx->VertexProgram.Current->Base); in _mesa_GetProgramStringARB()
891 prog = &(ctx->FragmentProgram.Current->Base); in _mesa_GetProgramStringARB()
898 ASSERT(prog); in _mesa_GetProgramStringARB()
905 if (prog->String) in _mesa_GetProgramStringARB()
906 memcpy(dst, prog->String, strlen((char *) prog->String)); in _mesa_GetProgramStringARB()