Home
last modified time | relevance | path

Searched refs:FragmentProgram (Results 1 – 22 of 22) sorted by relevance

/third_party/mesa3d/src/mesa/main/
Dstate.c182 const struct gl_program *prevFP = ctx->FragmentProgram._Current; in update_program()
207 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, fsProg); in update_program()
208 _mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, in update_program()
213 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program()
214 ctx->FragmentProgram.Current); in update_program()
215 _mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, in update_program()
221 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program()
223 _mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, in update_program()
230 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program()
232 _mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, in update_program()
[all …]
Dstate.h83 if (ctx->FragmentProgram._Current && in _mesa_need_secondary_color()
84 (ctx->FragmentProgram._Current != ctx->FragmentProgram._TexEnvProgram) && in _mesa_need_secondary_color()
85 (ctx->FragmentProgram._Current->info.inputs_read & VARYING_BIT_COL1)) in _mesa_need_secondary_color()
125 return ctx->FragmentProgram.Enabled && in _mesa_arb_fragment_program_enabled()
126 ctx->FragmentProgram.Current->arb.Instructions; in _mesa_arb_fragment_program_enabled()
Darbprogram.c118 curProg = ctx->FragmentProgram.Current; in _mesa_BindProgramARB()
150 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, newProg); in _mesa_BindProgramARB()
158 assert(ctx->FragmentProgram.Current); in _mesa_BindProgramARB()
197 if (ctx->FragmentProgram.Current && in _mesa_DeleteProgramsARB()
198 ctx->FragmentProgram.Current->Id == ids[i]) { in _mesa_DeleteProgramsARB()
282 return ctx->FragmentProgram.Current; in get_current_program()
342 *param = ctx->FragmentProgram.Parameters[index]; in get_env_param_pointer()
476 set_program_string(ctx->FragmentProgram.Current, target, format, len, string); in _mesa_ProgramStringARB()
586 dest = ctx->FragmentProgram.Parameters[index]; in _mesa_ProgramEnvParameters4fvEXT()
668 (target == GL_FRAGMENT_PROGRAM_ARB && prog == ctx->FragmentProgram.Current)) { in _mesa_NamedProgramLocalParameter4fEXT()
[all …]
Dcontext.c628 (8 * sizeof(ctx->FragmentProgram._Current->info.inputs_read))); in check_context_limits()
1126 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, NULL); in _mesa_free_context_data()
1127 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, NULL); in _mesa_free_context_data()
1128 _mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, NULL); in _mesa_free_context_data()
Ddraw_validate.c151 if (ctx->FragmentProgram.Enabled && in _mesa_update_valid_to_render_state()
Dattrib.c202 attr->FragmentProgram = ctx->FragmentProgram.Enabled; in _mesa_PushAttrib()
476 TEST_AND_UPDATE(ctx->FragmentProgram.Enabled, in pop_enable_group()
477 enable->FragmentProgram, in pop_enable_group()
Dff_fragment_shader.cpp1131 _mesa_search_program_cache(ctx->FragmentProgram.Cache, in _mesa_get_fixed_func_fragment_program()
1137 _mesa_shader_cache_insert(ctx, ctx->FragmentProgram.Cache, in _mesa_get_fixed_func_fragment_program()
Denable.c1135 if (ctx->FragmentProgram.Enabled == state) in _mesa_set_enable()
1138 ctx->FragmentProgram.Enabled = state; in _mesa_set_enable()
1880 return ctx->FragmentProgram.Enabled; in _mesa_IsEnabled()
Dmtypes.h3175 GLboolean FragmentProgram; member
3437 struct gl_fragment_program_state FragmentProgram; member
Dtexstate.c903 prog[MESA_SHADER_FRAGMENT] = ctx->FragmentProgram.Current; in _mesa_update_texture_state()
Dffvertex_prog.c156 const struct gl_program *fp = ctx->FragmentProgram._Current; in make_state_key()
/third_party/mesa3d/src/mesa/program/
Dprogram.c101 ctx->FragmentProgram.Enabled = GL_FALSE; in _mesa_init_program()
102 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, in _mesa_init_program()
104 assert(ctx->FragmentProgram.Current); in _mesa_init_program()
105 ctx->FragmentProgram.Cache = _mesa_new_program_cache(); in _mesa_init_program()
124 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, NULL); in _mesa_free_program_data()
125 _mesa_delete_shader_cache(ctx, ctx->FragmentProgram.Cache); in _mesa_free_program_data()
151 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, in _mesa_update_default_objects_program()
153 assert(ctx->FragmentProgram.Current); in _mesa_update_default_objects_program()
Dprog_statevars.c472 COPY_4V(value, ctx->FragmentProgram.Parameters[idx]); in fetch_state()
478 memcpy(value, ctx->FragmentProgram.Parameters[idx], bytes); in fetch_state()
482 float (*params)[4] = ctx->FragmentProgram.Current->arb.LocalParams; in fetch_state()
499 float (*params)[4] = ctx->FragmentProgram.Current->arb.LocalParams; in fetch_state()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_shader.c117 assert(st->ctx->FragmentProgram._Current); in st_update_fp()
118 fp = st->ctx->FragmentProgram._Current; in st_update_fp()
173 update_gl_clamp(st, st->ctx->FragmentProgram._Current, key.gl_clamp); in st_update_fp()
Dst_context.c81 struct gl_program *fp = ctx->FragmentProgram._Current; in st_get_active_states()
202 if (ctx->FragmentProgram._Current) { in st_invalidate_state()
203 struct gl_program *fp = ctx->FragmentProgram._Current; in st_invalidate_state()
Dst_atom.c90 struct gl_program *new_fp = ctx->FragmentProgram._Current; in check_program_state()
Dst_atom_sampler.c338 ctx->FragmentProgram._Current, in st_update_fragment_samplers()
Dst_atom_rasterizer.c69 const struct gl_program *fragProg = ctx->FragmentProgram._Current; in st_update_rasterizer()
Dst_atom_texture.c294 ctx->FragmentProgram._Current); in st_update_fragment_textures()
Dst_cb_drawtex.c182 if (ctx->FragmentProgram._Current->info.inputs_read & VARYING_BIT_COL0) in st_DrawTex()
Dst_cb_bitmap.c248 ctx->FragmentProgram._Current, sampler_views); in setup_render_state()
Dst_cb_drawpixels.c875 ctx->FragmentProgram._Current, sampler_views); in draw_textured_quad()
1545 !ctx->FragmentProgram.Enabled && in blit_copy_pixels()