Lines Matching defs:prog
658 update_single_program_texture(struct gl_context *ctx, struct gl_program *prog,
678 target_index = ffs(prog->TexturesUsed[unit]) - 1;
715 struct gl_program *prog,
721 texObj = update_single_program_texture(ctx, prog, unit);
730 update_program_texture_state(struct gl_context *ctx, struct gl_program **prog,
739 if (!prog[i])
742 mask = prog[i]->SamplersUsed;
747 update_single_program_texture_state(ctx, prog[i],
748 prog[i]->SamplerUnits[s],
752 if (unlikely(prog[i]->sh.HasBoundBindlessSampler)) {
755 for (s = 0; s < prog[i]->sh.NumBindlessSamplers; s++) {
757 &prog[i]->sh.BindlessSamplers[s];
762 update_single_program_texture_state(ctx, prog[i], sampler->unit,
768 if (prog[MESA_SHADER_FRAGMENT]) {
771 (prog[MESA_SHADER_FRAGMENT]->info.inputs_read >> VARYING_SLOT_TEX0) &
861 struct gl_program *prog,
864 GLbitfield mask = prog->SamplersUsed;
868 const int unit = prog->SamplerUnits[s];
869 const gl_texture_index target_index = ffs(prog->TexturesUsed[unit]) - 1;
894 struct gl_program *prog[MESA_SHADER_STAGES];
899 memcpy(prog, ctx->_Shader->CurrentProgram, sizeof(prog));
901 if (prog[MESA_SHADER_FRAGMENT] == NULL &&
903 prog[MESA_SHADER_FRAGMENT] = ctx->FragmentProgram.Current;
927 update_program_texture_state(ctx, prog, enabled_texture_units);
931 if (!prog[MESA_SHADER_FRAGMENT])
950 if (!prog[MESA_SHADER_FRAGMENT] || !prog[MESA_SHADER_VERTEX])