Home
last modified time | relevance | path

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

12

/external/mesa3d/src/mesa/drivers/dri/i915/
Di915_context.c68 (struct i915_fragment_program *) ctx->FragmentProgram._Current; in i915InvalidateState()
237 ctx->Const.FragmentProgram.MaxNativeTemps = I915_MAX_TEMPORARY; in i915CreateContext()
238 ctx->Const.FragmentProgram.MaxNativeAttribs = 11; /* 8 tex, 2 color, fog */ in i915CreateContext()
239 ctx->Const.FragmentProgram.MaxNativeParameters = I915_MAX_CONSTANT; in i915CreateContext()
240 ctx->Const.FragmentProgram.MaxNativeAluInstructions = I915_MAX_ALU_INSN; in i915CreateContext()
241 ctx->Const.FragmentProgram.MaxNativeTexInstructions = I915_MAX_TEX_INSN; in i915CreateContext()
242 ctx->Const.FragmentProgram.MaxNativeInstructions = (I915_MAX_ALU_INSN + in i915CreateContext()
244 ctx->Const.FragmentProgram.MaxNativeTexIndirections = in i915CreateContext()
246 ctx->Const.FragmentProgram.MaxNativeAddressRegs = 0; /* I don't think we have one */ in i915CreateContext()
247 ctx->Const.FragmentProgram.MaxEnvParams = in i915CreateContext()
[all …]
Dintel_pixel.c64 if (ctx->FragmentProgram._Enabled) { in intel_check_blit_fragment_ops()
Dintel_pixel_copy.c68 ctx->FragmentProgram._Enabled || in intel_check_copypixel_blit_fragment_ops()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_context.c249 ctx->Const.FragmentProgram.MaxNativeInstructions = (16 * 1024); in brwCreateContext()
250 ctx->Const.FragmentProgram.MaxNativeAluInstructions = (16 * 1024); in brwCreateContext()
251 ctx->Const.FragmentProgram.MaxNativeTexInstructions = (16 * 1024); in brwCreateContext()
252 ctx->Const.FragmentProgram.MaxNativeTexIndirections = (16 * 1024); in brwCreateContext()
253 ctx->Const.FragmentProgram.MaxNativeAttribs = 12; in brwCreateContext()
254 ctx->Const.FragmentProgram.MaxNativeTemps = 256; in brwCreateContext()
255 ctx->Const.FragmentProgram.MaxNativeAddressRegs = 0; in brwCreateContext()
256 ctx->Const.FragmentProgram.MaxNativeParameters = 1024; in brwCreateContext()
257 ctx->Const.FragmentProgram.MaxEnvParams = in brwCreateContext()
258 MIN2(ctx->Const.FragmentProgram.MaxNativeParameters, in brwCreateContext()
[all …]
Dintel_pixel.c64 if (ctx->FragmentProgram._Enabled) { in intel_check_blit_fragment_ops()
Dbrw_state_upload.c452 if (brw->fragment_program != ctx->FragmentProgram._Current) { in brw_upload_state()
453 brw->fragment_program = ctx->FragmentProgram._Current; in brw_upload_state()
Dintel_pixel_copy.c68 ctx->FragmentProgram._Enabled || in intel_check_copypixel_blit_fragment_ops()
/external/mesa3d/src/mesa/main/
Dstate.c82 ctx->FragmentProgram._Enabled = ctx->FragmentProgram.Enabled in update_program_enables()
83 && ctx->FragmentProgram.Current->Base.Instructions; in update_program_enables()
110 const struct gl_fragment_program *prevFP = ctx->FragmentProgram._Current; in update_program()
136 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, in update_program()
138 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._TexEnvProgram, in update_program()
141 else if (ctx->FragmentProgram._Enabled) { in update_program()
146 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, in update_program()
147 ctx->FragmentProgram.Current); in update_program()
148 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._TexEnvProgram, in update_program()
151 else if (ctx->FragmentProgram._MaintainTexEnvProgram) { in update_program()
[all …]
Darbprogram.c89 curProg = &ctx->FragmentProgram.Current->Base; in _mesa_BindProgram()
145 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram.Current, in _mesa_BindProgram()
151 ASSERT(ctx->FragmentProgram.Current); in _mesa_BindProgram()
194 if (ctx->FragmentProgram.Current && in _mesa_DeletePrograms()
195 ctx->FragmentProgram.Current->Base.Id == ids[i]) { in _mesa_DeletePrograms()
286 prog = &(ctx->FragmentProgram.Current->Base); in get_local_param_pointer()
287 maxParams = ctx->Const.FragmentProgram.MaxLocalParams; in get_local_param_pointer()
291 prog = &(ctx->FragmentProgram.Current->Base); in get_local_param_pointer()
316 if (index >= ctx->Const.FragmentProgram.MaxEnvParams) { in get_env_param_pointer()
320 *param = ctx->FragmentProgram.Parameters[index]; in get_env_param_pointer()
[all …]
Dstate.h67 if (ctx->FragmentProgram._Current && in _mesa_need_secondary_color()
68 (ctx->FragmentProgram._Current != ctx->FragmentProgram._TexEnvProgram) && in _mesa_need_secondary_color()
69 (ctx->FragmentProgram._Current->Base.InputsRead & FRAG_BIT_COL1)) in _mesa_need_secondary_color()
Dcontext.c605 init_program_limits(ctx, GL_FRAGMENT_PROGRAM_ARB, &ctx->Const.FragmentProgram); in _mesa_init_constants()
693 (8 * sizeof(ctx->FragmentProgram._Current->Base.InputsRead))); in check_context_limits()
698 assert(ctx->Const.FragmentProgram.MaxLocalParams <= MAX_PROGRAM_LOCAL_PARAMS); in check_context_limits()
990 ctx->FragmentProgram._MaintainTexEnvProgram in _mesa_initialize_context()
997 ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE; in _mesa_initialize_context()
1038 ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE; in _mesa_initialize_context()
1119 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram.Current, NULL); in _mesa_free_context_data()
1120 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, NULL); in _mesa_free_context_data()
1121 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._TexEnvProgram, NULL); in _mesa_free_context_data()
1839 if (ctx->FragmentProgram.Enabled && !ctx->FragmentProgram._Enabled) { in _mesa_valid_to_render()
Denable.c916 if (ctx->FragmentProgram.Enabled == state) in _mesa_set_enable()
919 ctx->FragmentProgram.Enabled = state; in _mesa_set_enable()
954 if (ctx->FragmentProgram.Enabled == state) in _mesa_set_enable()
957 ctx->FragmentProgram.Enabled = state; in _mesa_set_enable()
1640 return ctx->FragmentProgram.Enabled; in _mesa_IsEnabled()
1661 return ctx->FragmentProgram.Enabled; in _mesa_IsEnabled()
/external/mesa3d/src/mesa/program/
Dprogram.c63 ASSERT(ctx->Const.FragmentProgram.MaxUniformComponents / 4 in _mesa_init_program()
68 ASSERT(ctx->Const.FragmentProgram.MaxTemps <= (1 << INST_INDEX_BITS)); in _mesa_init_program()
69 ASSERT(ctx->Const.FragmentProgram.MaxLocalParams <= (1 << INST_INDEX_BITS)); in _mesa_init_program()
72 ASSERT(ctx->Const.FragmentProgram.MaxUniformComponents <= 4 * MAX_UNIFORMS); in _mesa_init_program()
75 ASSERT(ctx->Const.FragmentProgram.MaxAddressOffset <= (1 << INST_INDEX_BITS)); in _mesa_init_program()
106 ctx->FragmentProgram.Enabled = GL_FALSE; in _mesa_init_program()
107 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram.Current, in _mesa_init_program()
109 assert(ctx->FragmentProgram.Current); in _mesa_init_program()
110 ctx->FragmentProgram.Cache = _mesa_new_program_cache(); in _mesa_init_program()
142 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram.Current, NULL); in _mesa_free_program_data()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_fragprog.c43 struct gl_fragment_program *fp = ctx->FragmentProgram._Current; in _swrast_use_fragment_program()
44 return fp && !(fp == ctx->FragmentProgram._TexEnvProgram in _swrast_use_fragment_program()
218 const struct gl_fragment_program *program = ctx->FragmentProgram._Current; in run_program()
277 const struct gl_fragment_program *program = ctx->FragmentProgram._Current; in _swrast_exec_fragment_program()
Ds_context.c226 = ctx->FragmentProgram._Current; in _swrast_update_deferred_texture()
252 const struct gl_fragment_program *fp = ctx->FragmentProgram._Current; in _swrast_update_fog_state()
275 ctx->FragmentProgram._Current->Base.Parameters); in _swrast_update_fragment_program()
506 attribsMask = ctx->FragmentProgram._Current->Base.InputsRead; in _swrast_update_active_attribs()
802 init_program_native_limits(&ctx->Const.FragmentProgram); in _swrast_CreateContext()
/external/mesa3d/src/mesa/tnl/
Dt_context.c129 const struct gl_fragment_program *fp = ctx->FragmentProgram._Current; in _tnl_InvalidateState()
224 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current; in _tnl_allow_vertex_fog()
234 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current; in _tnl_allow_pixel_fog()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_shader.c79 assert(st->ctx->FragmentProgram._Current); in update_fp()
80 stfp = st_fragment_program(st->ctx->FragmentProgram._Current); in update_fp()
Dst_atom_texture.c335 &ctx->FragmentProgram._Current->Base, in update_fragment_textures()
393 struct gl_fragment_program *fprog = ctx->FragmentProgram._Current; in finalize_textures()
Dst_atom.c122 if (ctx->FragmentProgram._Current != &st->fp->Base) in check_program_state()
Dst_atom_sampler.c260 &ctx->FragmentProgram._Current->Base, in update_samplers()
/external/mesa3d/src/mesa/swrast_setup/
Dss_context.c115 GLboolean intColors = !ctx->FragmentProgram._Current in setup_vertex_format()
142 const GLint emit = ctx->FragmentProgram._Current ? EMIT_4F : EMIT_1F; in setup_vertex_format()
/external/mesa3d/src/glsl/
Dstandalone_scaffolding.cpp98 ctx->Const.FragmentProgram.MaxUniformComponents = 64; in initialize_context_to_defaults()
/external/mesa3d/src/mesa/vbo/
Dvbo_save_draw.c307 (ctx->FragmentProgram.Enabled && !ctx->FragmentProgram._Enabled)) { in vbo_save_playback_vertex_list()
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_pixel.c64 if (ctx->FragmentProgram._Enabled) { in intel_check_blit_fragment_ops()
Dintel_pixel_copy.c68 ctx->FragmentProgram._Enabled || in intel_check_copypixel_blit_fragment_ops()

12