Lines Matching refs:prog
147 struct gl_program *prog = _mesa_lookup_program(ctx, ids[i]); in _mesa_DeleteProgramsARB() local
148 if (prog == &_mesa_DummyProgram) { in _mesa_DeleteProgramsARB()
151 else if (prog) { in _mesa_DeleteProgramsARB()
153 switch (prog->Target) { in _mesa_DeleteProgramsARB()
158 _mesa_BindProgramARB(prog->Target, 0); in _mesa_DeleteProgramsARB()
165 _mesa_BindProgramARB(prog->Target, 0); in _mesa_DeleteProgramsARB()
174 _mesa_reference_program(ctx, &prog, NULL); in _mesa_DeleteProgramsARB()
230 struct gl_program *prog = NULL; in _mesa_IsProgramARB() local
237 prog = _mesa_lookup_program(ctx, id); in _mesa_IsProgramARB()
238 if (prog && (prog != &_mesa_DummyProgram)) in _mesa_IsProgramARB()
248 struct gl_program *prog; in get_local_param_pointer() local
253 prog = ctx->VertexProgram.Current; in get_local_param_pointer()
258 prog = ctx->FragmentProgram.Current; in get_local_param_pointer()
272 if (!prog->arb.LocalParams) { in get_local_param_pointer()
273 prog->arb.LocalParams = rzalloc_array_size(prog, sizeof(float[4]), in get_local_param_pointer()
275 if (!prog->arb.LocalParams) in get_local_param_pointer()
279 *param = prog->arb.LocalParams[index]; in get_local_param_pointer()
315 struct gl_program *prog; in _mesa_ProgramStringARB() local
333 prog = ctx->VertexProgram.Current; in _mesa_ProgramStringARB()
334 _mesa_parse_arb_vertex_program(ctx, target, string, len, prog); in _mesa_ProgramStringARB()
338 prog = ctx->FragmentProgram.Current; in _mesa_ProgramStringARB()
339 _mesa_parse_arb_fragment_program(ctx, target, string, len, prog); in _mesa_ProgramStringARB()
350 if (!ctx->Driver.ProgramStringNotify(ctx, target, prog)) { in _mesa_ProgramStringARB()
362 shader_type, prog->Id); in _mesa_ProgramStringARB()
367 shader_type, prog->Id); in _mesa_ProgramStringARB()
370 shader_type, prog->Id); in _mesa_ProgramStringARB()
371 _mesa_print_program(prog); in _mesa_ProgramStringARB()
385 capture_path, shader_type[0], prog->Id); in _mesa_ProgramStringARB()
646 struct gl_program *prog; in _mesa_GetProgramivARB() local
651 prog = ctx->VertexProgram.Current; in _mesa_GetProgramivARB()
656 prog = ctx->FragmentProgram.Current; in _mesa_GetProgramivARB()
664 assert(prog); in _mesa_GetProgramivARB()
671 = prog->String ? (GLint) strlen((char *) prog->String) : 0; in _mesa_GetProgramivARB()
674 *params = prog->Format; in _mesa_GetProgramivARB()
677 *params = prog->Id; in _mesa_GetProgramivARB()
680 *params = prog->arb.NumInstructions; in _mesa_GetProgramivARB()
686 *params = prog->arb.NumNativeInstructions; in _mesa_GetProgramivARB()
692 *params = prog->arb.NumTemporaries; in _mesa_GetProgramivARB()
698 *params = prog->arb.NumNativeTemporaries; in _mesa_GetProgramivARB()
704 *params = prog->arb.NumParameters; in _mesa_GetProgramivARB()
710 *params = prog->arb.NumNativeParameters; in _mesa_GetProgramivARB()
716 *params = prog->arb.NumAttributes; in _mesa_GetProgramivARB()
722 *params = prog->arb.NumNativeAttributes; in _mesa_GetProgramivARB()
728 *params = prog->arb.NumAddressRegs; in _mesa_GetProgramivARB()
734 *params = prog->arb.NumNativeAddressRegs; in _mesa_GetProgramivARB()
753 if (prog->Id == 0) { in _mesa_GetProgramivARB()
759 *params = ctx->Driver.IsProgramNative( ctx, target, prog ); in _mesa_GetProgramivARB()
827 const struct gl_program *prog; in _mesa_GetProgramStringARB() local
832 prog = ctx->VertexProgram.Current; in _mesa_GetProgramStringARB()
835 prog = ctx->FragmentProgram.Current; in _mesa_GetProgramStringARB()
842 assert(prog); in _mesa_GetProgramStringARB()
849 if (prog->String) in _mesa_GetProgramStringARB()
850 memcpy(dst, prog->String, strlen((char *) prog->String)); in _mesa_GetProgramStringARB()