Lines Matching +defs:prog +defs:mode

167  * \param mode   Classic texture environment mode (i.e., \c GL_REPLACE,
174 GLenum mode, GLenum texBaseFormat )
206 if (mode == GL_REPLACE_EXT)
207 mode = GL_REPLACE;
209 switch (mode) {
212 mode_rgb = (texBaseFormat == GL_ALPHA) ? GL_REPLACE : mode;
213 mode_a = mode;
280 "Invalid texture env mode 0x%x in calculate_derived_texenv",
281 mode);
423 tex_combine_translate_mode(GLenum envMode, GLenum mode)
425 switch (mode) {
448 unreachable("Invalid TexEnv Combine mode");
536 * mode.
583 _mesa_problem(ctx, "invalid RGB combine mode in update_texture_state");
611 _mesa_problem(ctx, "invalid Alpha combine mode in update_texture_state");
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])