Home
last modified time | relevance | path

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

12

/external/mesa3d/src/mesa/main/
Dstate.c179 const struct gl_program *prevFP = ctx->FragmentProgram._Current; in update_program()
204 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, fsProg); in update_program()
205 _mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, in update_program()
210 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program()
211 ctx->FragmentProgram.Current); in update_program()
212 _mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, in update_program()
218 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program()
220 _mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, in update_program()
223 else if (ctx->FragmentProgram._MaintainTexEnvProgram) { in update_program()
227 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program()
[all …]
Dstate.h88 if (ctx->FragmentProgram._Current && in _mesa_need_secondary_color()
89 (ctx->FragmentProgram._Current != ctx->FragmentProgram._TexEnvProgram) && in _mesa_need_secondary_color()
90 (ctx->FragmentProgram._Current->info.inputs_read & VARYING_BIT_COL1)) in _mesa_need_secondary_color()
130 return ctx->FragmentProgram.Enabled && in _mesa_arb_fragment_program_enabled()
131 ctx->FragmentProgram.Current->arb.Instructions; in _mesa_arb_fragment_program_enabled()
Darbprogram.c115 curProg = ctx->FragmentProgram.Current; in _mesa_BindProgramARB()
147 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, newProg); in _mesa_BindProgramARB()
154 assert(ctx->FragmentProgram.Current); in _mesa_BindProgramARB()
193 if (ctx->FragmentProgram.Current && in _mesa_DeleteProgramsARB()
194 ctx->FragmentProgram.Current->Id == ids[i]) { in _mesa_DeleteProgramsARB()
278 return ctx->FragmentProgram.Current; in get_current_program()
327 *param = ctx->FragmentProgram.Parameters[index]; in get_env_param_pointer()
457 set_program_string(ctx->FragmentProgram.Current, target, format, len, string); in _mesa_ProgramStringARB()
567 dest = ctx->FragmentProgram.Parameters[index]; in _mesa_ProgramEnvParameters4fvEXT()
649 (target == GL_FRAGMENT_PROGRAM_ARB && prog == ctx->FragmentProgram.Current)) { in _mesa_NamedProgramLocalParameter4fEXT()
[all …]
Dcontext.c771 (8 * sizeof(ctx->FragmentProgram._Current->info.inputs_read))); in check_context_limits()
1245 ctx->FragmentProgram._MaintainTexEnvProgram in _mesa_initialize_context()
1252 ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE; in _mesa_initialize_context()
1291 ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE; in _mesa_initialize_context()
1340 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, NULL); in _mesa_free_context_data()
1341 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, NULL); in _mesa_free_context_data()
1342 _mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, NULL); in _mesa_free_context_data()
Ddraw_validate.c102 const struct gl_program *prog = ctx->FragmentProgram._Current; in check_blend_func_error()
145 if (ctx->FragmentProgram.Enabled && in _mesa_valid_to_render()
Dattrib.c135 GLboolean FragmentProgram; member
400 attr->FragmentProgram = ctx->FragmentProgram.Enabled; in _mesa_PushAttrib()
747 TEST_AND_UPDATE(ctx->FragmentProgram.Enabled, in pop_enable_group()
748 enable->FragmentProgram, in pop_enable_group()
/external/mesa3d/src/mesa/program/
Dprogram.c98 ctx->FragmentProgram.Enabled = GL_FALSE; in _mesa_init_program()
99 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, in _mesa_init_program()
101 assert(ctx->FragmentProgram.Current); in _mesa_init_program()
102 ctx->FragmentProgram.Cache = _mesa_new_program_cache(); in _mesa_init_program()
121 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, NULL); in _mesa_free_program_data()
122 _mesa_delete_shader_cache(ctx, ctx->FragmentProgram.Cache); in _mesa_free_program_data()
148 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, in _mesa_update_default_objects_program()
150 assert(ctx->FragmentProgram.Current); in _mesa_update_default_objects_program()
Dprog_statevars.c373 COPY_4V(value, ctx->FragmentProgram.Parameters[idx]); in fetch_state()
376 if (!ctx->FragmentProgram.Current->arb.LocalParams) { in fetch_state()
377 ctx->FragmentProgram.Current->arb.LocalParams = in fetch_state()
378 rzalloc_array_size(ctx->FragmentProgram.Current, in fetch_state()
381 if (!ctx->FragmentProgram.Current->arb.LocalParams) in fetch_state()
386 ctx->FragmentProgram.Current->arb.LocalParams[idx]); in fetch_state()
/external/mesa3d/src/mesa/swrast/
Ds_fragprog.c44 struct gl_program *fp = ctx->FragmentProgram._Current; in _swrast_use_fragment_program()
45 return fp && !(fp == ctx->FragmentProgram._TexEnvProgram in _swrast_use_fragment_program()
206 const struct gl_program *program = ctx->FragmentProgram._Current; in run_program()
265 const struct gl_program *program = ctx->FragmentProgram._Current; in _swrast_exec_fragment_program()
Ds_context.c220 const struct gl_program *fprog = ctx->FragmentProgram._Current; in _swrast_update_deferred_texture()
247 const struct gl_program *fp = ctx->FragmentProgram._Current; in _swrast_update_fog_state()
269 ctx->FragmentProgram._Current->Parameters); in _swrast_update_fragment_program()
500 attribsMask = ctx->FragmentProgram._Current->info.inputs_read; in _swrast_update_active_attribs()
/external/mesa3d/src/mesa/tnl/
Dt_context.c136 const struct gl_program *fp = ctx->FragmentProgram._Current; in _tnl_InvalidateState()
240 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current; in _tnl_allow_vertex_fog()
250 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current; in _tnl_allow_pixel_fog()
/external/mesa3d/src/mesa/drivers/dri/i915/
Di915_context.c75 (struct i915_fragment_program *) ctx->FragmentProgram._Current; in i915InvalidateState()
257 ctx->FragmentProgram._MaintainTexEnvProgram = true; in i915CreateContext()
/external/mesa3d/src/mesa/swrast_setup/
Dss_context.c116 GLboolean intColors = !ctx->FragmentProgram._Current in setup_vertex_format()
143 const GLint emit = ctx->FragmentProgram._Current ? EMIT_4F : EMIT_1F; in setup_vertex_format()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_shader.c103 assert(st->ctx->FragmentProgram._Current); in st_update_fp()
104 stfp = st_program(st->ctx->FragmentProgram._Current); in st_update_fp()
Dst_context.c155 st_program(ctx->FragmentProgram._Current); in st_get_active_states()
274 if (ctx->FragmentProgram._Current) { in st_invalidate_state()
275 struct st_program *stfp = st_program(ctx->FragmentProgram._Current); in st_invalidate_state()
642 ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE; in st_create_context_priv()
Dst_atom.c80 struct gl_program *new_fp = ctx->FragmentProgram._Current; in check_program_state()
Dst_atom_rasterizer.c69 const struct gl_program *fragProg = ctx->FragmentProgram._Current; in st_update_rasterizer()
Dst_atom_texture.c290 ctx->FragmentProgram._Current, in st_update_fragment_textures()
Dst_atom_sampler.c411 ctx->FragmentProgram._Current, in st_update_fragment_samplers()
Dst_cb_drawtex.c182 if (ctx->FragmentProgram._Current->info.inputs_read & VARYING_BIT_COL0) in st_DrawTex()
/external/mesa3d/src/mesa/vbo/
Dvbo_save_draw.c203 (ctx->FragmentProgram.Enabled && in vbo_save_playback_vertex_list()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw.c508 mark_textures_used_for_txf(used_for_txf, ctx->FragmentProgram._Current); in brw_predraw_resolve_inputs()
644 ctx->FragmentProgram._Current && in brw_predraw_resolve_framebuffer()
645 ctx->FragmentProgram._Current->info.outputs_read) { in brw_predraw_resolve_framebuffer()
854 util_last_bit(ctx->FragmentProgram._Current->info.textures_used); in brw_prepare_drawing()
Dbrw_state_upload.c631 ctx->FragmentProgram._Current) { in brw_upload_pipeline_state()
632 brw->programs[MESA_SHADER_FRAGMENT] = ctx->FragmentProgram._Current; in brw_upload_pipeline_state()
/external/mesa3d/src/mesa/drivers/common/
Dmeta.h126 struct gl_program *FragmentProgram; member
Dmeta.c612 save->FragmentProgramEnabled = ctx->FragmentProgram.Enabled; in _mesa_meta_begin()
613 _mesa_reference_program(ctx, &save->FragmentProgram, in _mesa_meta_begin()
614 ctx->FragmentProgram.Current); in _mesa_meta_begin()
986 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, in _mesa_meta_end()
987 save->FragmentProgram); in _mesa_meta_end()
988 _mesa_reference_program(ctx, &save->FragmentProgram, NULL); in _mesa_meta_end()

12