Home
last modified time | relevance | path

Searched refs:_Current (Results 1 – 25 of 76) sorted by relevance

1234

/external/mesa3d/src/mesa/main/
Dstate.c109 const struct gl_vertex_program *prevVP = ctx->VertexProgram._Current; in update_program()
110 const struct gl_fragment_program *prevFP = ctx->FragmentProgram._Current; in update_program()
111 const struct gl_geometry_program *prevGP = ctx->GeometryProgram._Current; in update_program()
136 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, in update_program()
146 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, in update_program()
158 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, in update_program()
165 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, NULL); in update_program()
173 _mesa_reference_geomprog(ctx, &ctx->GeometryProgram._Current, in update_program()
177 _mesa_reference_geomprog(ctx, &ctx->GeometryProgram._Current, NULL); in update_program()
187 _mesa_reference_vertprog(ctx, &ctx->VertexProgram._Current, in update_program()
[all …]
Dstate.h62 if (ctx->VertexProgram._Current && in _mesa_need_secondary_color()
63 (ctx->VertexProgram._Current != ctx->VertexProgram._TnlProgram) && in _mesa_need_secondary_color()
64 (ctx->VertexProgram._Current->Base.InputsRead & VERT_BIT_COLOR1)) in _mesa_need_secondary_color()
67 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()
Dsamplerobj.h36 else if (ctx->Texture.Unit[unit]._Current) in _mesa_get_samplerobj()
37 return &ctx->Texture.Unit[unit]._Current->Sampler; in _mesa_get_samplerobj()
Darrayobj.c316 if (!ctx->VertexProgram._Current || in _mesa_update_array_object_max_element()
317 ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) { in _mesa_update_array_object_max_element()
319 } else if (ctx->VertexProgram._Current->IsNVProgram) { in _mesa_update_array_object_max_element()
Dtexstate.c394 if (texUnit->_Current->Target == GL_TEXTURE_BUFFER) in update_tex_combine()
406 const struct gl_texture_object *texObj = texUnit->_Current; in update_tex_combine()
584 _mesa_reference_texobj(&texUnit->_Current, texObj); in update_texture_state()
610 _mesa_reference_texobj(&texUnit->_Current, texObj); in update_texture_state()
837 _mesa_reference_texobj(&ctx->Texture.Unit[u]._Current, NULL); in _mesa_free_texture_data()
/external/mesa3d/src/mesa/tnl/
Dt_vp_build.c44 const struct gl_vertex_program *prev = ctx->VertexProgram._Current; in _tnl_UpdateFixedFunctionProgram()
46 if (!ctx->VertexProgram._Current || in _tnl_UpdateFixedFunctionProgram()
47 ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) { in _tnl_UpdateFixedFunctionProgram()
48 ctx->VertexProgram._Current in _tnl_UpdateFixedFunctionProgram()
56 if (ctx->VertexProgram._Current != prev && ctx->Driver.BindProgram) { in _tnl_UpdateFixedFunctionProgram()
58 (struct gl_program *) ctx->VertexProgram._Current); in _tnl_UpdateFixedFunctionProgram()
Dt_context.c128 const struct gl_vertex_program *vp = ctx->VertexProgram._Current; in _tnl_InvalidateState()
129 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()
Dt_vb_program.c202 ctx->Texture.Unit[unit]._Current, in vp_fetch_texel()
234 if (ctx->VertexProgram._Current->IsNVProgram) { in init_machine()
263 machine->Samplers = ctx->VertexProgram._Current->Base.SamplerUnits; in init_machine()
282 _swrast_map_texture(ctx, ctx->Texture.Unit[u]._Current); in map_textures()
301 _swrast_unmap_texture(ctx, ctx->Texture.Unit[u]._Current); in unmap_textures()
316 struct gl_vertex_program *program = ctx->VertexProgram._Current; in run_vp()
558 if (ctx->VertexProgram._Current) { in validate_vp_stage()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_span.c119 tex_obj = intel_texture_object(ctx->Texture.Unit[i]._Current); in intel_span_map_buffers()
159 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intelSpanRenderFinish()
184 if (ctx->VertexProgram._Current == NULL) in intel_map_vertex_shader_textures()
189 ctx->VertexProgram._Current->Base.TexturesUsed[i] != 0) { in intel_map_vertex_shader_textures()
190 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_map_vertex_shader_textures()
204 if (ctx->VertexProgram._Current == NULL) in intel_unmap_vertex_shader_textures()
209 ctx->VertexProgram._Current->Base.TexturesUsed[i] != 0) { in intel_unmap_vertex_shader_textures()
210 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_unmap_vertex_shader_textures()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_span.c119 tex_obj = intel_texture_object(ctx->Texture.Unit[i]._Current); in intel_span_map_buffers()
159 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intelSpanRenderFinish()
184 if (ctx->VertexProgram._Current == NULL) in intel_map_vertex_shader_textures()
189 ctx->VertexProgram._Current->Base.TexturesUsed[i] != 0) { in intel_map_vertex_shader_textures()
190 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_map_vertex_shader_textures()
204 if (ctx->VertexProgram._Current == NULL) in intel_unmap_vertex_shader_textures()
209 ctx->VertexProgram._Current->Base.TexturesUsed[i] != 0) { in intel_unmap_vertex_shader_textures()
210 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_unmap_vertex_shader_textures()
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()
457 if (brw->vertex_program != ctx->VertexProgram._Current) { in brw_upload_state()
458 brw->vertex_program = ctx->VertexProgram._Current; in brw_upload_state()
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_span.c119 tex_obj = intel_texture_object(ctx->Texture.Unit[i]._Current); in intel_span_map_buffers()
159 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intelSpanRenderFinish()
184 if (ctx->VertexProgram._Current == NULL) in intel_map_vertex_shader_textures()
189 ctx->VertexProgram._Current->Base.TexturesUsed[i] != 0) { in intel_map_vertex_shader_textures()
190 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_map_vertex_shader_textures()
204 if (ctx->VertexProgram._Current == NULL) in intel_unmap_vertex_shader_textures()
209 ctx->VertexProgram._Current->Base.TexturesUsed[i] != 0) { in intel_unmap_vertex_shader_textures()
210 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_unmap_vertex_shader_textures()
/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()
131 assert(st->ctx->VertexProgram._Current); in update_vp()
132 stvp = st_vertex_program(st->ctx->VertexProgram._Current); in update_vp()
180 if (!st->ctx->GeometryProgram._Current) { in update_gp()
185 stgp = st_geometry_program(st->ctx->GeometryProgram._Current); in update_gp()
Dst_atom_texture.c202 texObj = ctx->Texture.Unit[texUnit]._Current; in update_single_texture()
320 &ctx->VertexProgram._Current->Base, in update_vertex_textures()
335 &ctx->FragmentProgram._Current->Base, in update_fragment_textures()
347 if (ctx->GeometryProgram._Current) { in update_geometry_textures()
350 &ctx->GeometryProgram._Current->Base, in update_geometry_textures()
393 struct gl_fragment_program *fprog = ctx->FragmentProgram._Current; in finalize_textures()
403 = ctx->Texture.Unit[texUnit]._Current; in finalize_textures()
Dst_atom_sampler.c135 texobj = ctx->Texture.Unit[texUnit]._Current; in convert_sampler()
260 &ctx->FragmentProgram._Current->Base, in update_samplers()
267 &ctx->VertexProgram._Current->Base, in update_samplers()
272 if (ctx->GeometryProgram._Current) { in update_samplers()
275 &ctx->GeometryProgram._Current->Base, in update_samplers()
Dst_atom.c119 if (ctx->VertexProgram._Current != &st->vp->Base) in check_program_state()
122 if (ctx->FragmentProgram._Current != &st->fp->Base) in check_program_state()
125 if (ctx->GeometryProgram._Current != &st->gp->Base) in check_program_state()
Dst_atom_rasterizer.c62 const struct gl_vertex_program *vertProg = ctx->VertexProgram._Current; in update_raster_state()
63 const struct gl_fragment_program *fragProg = ctx->FragmentProgram._Current; in update_raster_state()
/external/mesa3d/src/mesa/swrast/
Ds_fragprog.c43 struct gl_fragment_program *fp = ctx->FragmentProgram._Current; in _swrast_use_fragment_program()
82 const struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; in fetch_texel_lod()
91 swrast->TextureSample[unit](ctx, samp, ctx->Texture.Unit[unit]._Current, in fetch_texel_lod()
116 const struct gl_texture_object *texObj = texUnit->_Current; in fetch_texel_deriv()
140 swrast->TextureSample[unit](ctx, samp, ctx->Texture.Unit[unit]._Current, in fetch_texel_deriv()
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()
479 struct gl_texture_object *tObj = ctx->Texture.Unit[u]._Current; in _swrast_update_texture_samplers()
506 attribsMask = ctx->FragmentProgram._Current->Base.InputsRead; in _swrast_update_active_attribs()
Ds_texture.c300 struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; in _swrast_map_textures()
320 struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; in _swrast_unmap_textures()
/external/mesa3d/src/mesa/vbo/
Dvbo_context.h107 if (!ctx->VertexProgram._Current) in get_program_mode()
109 else if (ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) in get_program_mode()
111 else if (ctx->VertexProgram._Current->IsNVProgram) in get_program_mode()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_span.c129 ctx->Texture.Unit[i]._Current); in radeonSpanRenderStart()
130 radeon_swrast_map_texture_images(ctx, ctx->Texture.Unit[i]._Current); in radeonSpanRenderStart()
147 radeon_swrast_unmap_texture_images(ctx, ctx->Texture.Unit[i]._Current); in radeonSpanRenderFinish()
Dradeon_texstate.c280 || (texUnit->_Current != NULL) ); in radeonUpdateTextureEnv()
321 if (texUnit->_Current->Image[0][0]->_BaseFormat == GL_ALPHA) in radeonUpdateTextureEnv()
345 if (ctx->Texture.Unit[txunit]._Current->Image[0][0]->_BaseFormat == GL_ALPHA) in radeonUpdateTextureEnv()
366 if (texUnit->_Current->Image[0][0]->_BaseFormat == GL_LUMINANCE) in radeonUpdateTextureEnv()
390 if (ctx->Texture.Unit[txunit]._Current->Image[0][0]->_BaseFormat == GL_LUMINANCE) in radeonUpdateTextureEnv()
1116 if (!radeon_validate_texture(ctx, ctx->Texture.Unit[unit]._Current, unit)) { in radeonUpdateTextureUnit()
1123 rmesa->state.texture.unit[unit].texobj = radeon_tex_obj(ctx->Texture.Unit[unit]._Current); in radeonUpdateTextureUnit()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_span.c129 ctx->Texture.Unit[i]._Current); in radeonSpanRenderStart()
130 radeon_swrast_map_texture_images(ctx, ctx->Texture.Unit[i]._Current); in radeonSpanRenderStart()
147 radeon_swrast_unmap_texture_images(ctx, ctx->Texture.Unit[i]._Current); in radeonSpanRenderFinish()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_span.c72 _swrast_map_texture(ctx, ctx->Texture.Unit[i]._Current); in span_map_unmap()
74 _swrast_unmap_texture(ctx, ctx->Texture.Unit[i]._Current); in span_map_unmap()

1234