Home
last modified time | relevance | path

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

1234

/external/mesa3d/src/mesa/main/
Dstate.c110 const struct gl_program *prevVP = ctx->VertexProgram._Current; in update_program()
111 const struct gl_program *prevFP = ctx->FragmentProgram._Current; in update_program()
112 const struct gl_program *prevGP = ctx->GeometryProgram._Current; in update_program()
113 const struct gl_program *prevTCP = ctx->TessCtrlProgram._Current; in update_program()
114 const struct gl_program *prevTEP = ctx->TessEvalProgram._Current; in update_program()
115 const struct gl_program *prevCP = ctx->ComputeProgram._Current; in update_program()
140 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program()
149 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program()
159 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program()
170 _mesa_reference_program(ctx, &ctx->FragmentProgram._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->info.inputs_read & 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->info.inputs_read & VARYING_BIT_COL1)) in _mesa_need_secondary_color()
Dtexstate.c370 if (ctx->Texture.Unit[u]._Current && in update_texture_matrices()
387 if (texUnit->_Current->Target == GL_TEXTURE_BUFFER) in update_tex_combine()
399 const struct gl_texture_object *texObj = texUnit->_Current; in update_tex_combine()
591 _mesa_reference_texobj(&ctx->Texture.Unit[unit]._Current, texObj); in update_program_texture_state()
666 _mesa_reference_texobj(&texUnit->_Current, texObj); in update_ff_texture_state()
740 _mesa_reference_texobj(&ctx->Texture.Unit[i]._Current, NULL); in update_texture_state()
743 _mesa_reference_texobj(&ctx->Texture.Unit[i]._Current, NULL); in update_texture_state()
933 _mesa_reference_texobj(&ctx->Texture.Unit[u]._Current, NULL); in _mesa_free_texture_data()
Dsamplerobj.h43 else if (ctx->Texture.Unit[unit]._Current) in _mesa_get_samplerobj()
44 return &ctx->Texture.Unit[unit]._Current->Sampler; in _mesa_get_samplerobj()
/external/mesa3d/src/mesa/tnl/
Dt_vp_build.c43 const struct gl_program *prev = ctx->VertexProgram._Current; in _tnl_UpdateFixedFunctionProgram()
45 if (!ctx->VertexProgram._Current || in _tnl_UpdateFixedFunctionProgram()
46 ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) { in _tnl_UpdateFixedFunctionProgram()
47 ctx->VertexProgram._Current in _tnl_UpdateFixedFunctionProgram()
55 if (ctx->VertexProgram._Current != prev && ctx->Driver.BindProgram) { in _tnl_UpdateFixedFunctionProgram()
57 ctx->VertexProgram._Current); in _tnl_UpdateFixedFunctionProgram()
Dt_context.c134 const struct gl_program *vp = ctx->VertexProgram._Current; in _tnl_InvalidateState()
135 const struct gl_program *fp = ctx->FragmentProgram._Current; in _tnl_InvalidateState()
238 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current; in _tnl_allow_vertex_fog()
248 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current; in _tnl_allow_pixel_fog()
Dt_vb_program.c200 ctx->Texture.Unit[unit]._Current, in vp_fetch_texel()
240 machine->Samplers = ctx->VertexProgram._Current->SamplerUnits; in init_machine()
259 _swrast_map_texture(ctx, ctx->Texture.Unit[u]._Current); in map_textures()
278 _swrast_unmap_texture(ctx, ctx->Texture.Unit[u]._Current); in unmap_textures()
293 struct gl_program *program = ctx->VertexProgram._Current; in run_vp()
514 if (ctx->VertexProgram._Current) { in validate_vp_stage()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_shader.c73 struct gl_texture_object *texObj = _mesa_get_tex_unit(ctx, unit)->_Current; in get_texture_target()
115 assert(st->ctx->FragmentProgram._Current); in update_fp()
116 stfp = st_fragment_program(st->ctx->FragmentProgram._Current); in update_fp()
176 assert(st->ctx->VertexProgram._Current); in update_vp()
177 stvp = st_vertex_program(st->ctx->VertexProgram._Current); in update_vp()
221 if (!st->ctx->GeometryProgram._Current) { in update_gp()
227 stgp = st_geometry_program(st->ctx->GeometryProgram._Current); in update_gp()
250 if (!st->ctx->TessCtrlProgram._Current) { in update_tcp()
256 sttcp = st_tessctrl_program(st->ctx->TessCtrlProgram._Current); in update_tcp()
279 if (!st->ctx->TessEvalProgram._Current) { in update_tep()
[all …]
Dst_atom_texture.c68 texObj = ctx->Texture.Unit[texUnit]._Current; in update_single_texture()
209 ctx->VertexProgram._Current, in update_vertex_textures()
224 ctx->FragmentProgram._Current, in update_fragment_textures()
236 if (ctx->GeometryProgram._Current) { in update_geometry_textures()
239 ctx->GeometryProgram._Current, in update_geometry_textures()
252 if (ctx->TessCtrlProgram._Current) { in update_tessctrl_textures()
255 ctx->TessCtrlProgram._Current, in update_tessctrl_textures()
268 if (ctx->TessEvalProgram._Current) { in update_tesseval_textures()
271 ctx->TessEvalProgram._Current, in update_tesseval_textures()
284 if (ctx->ComputeProgram._Current) { in update_compute_textures()
[all …]
Dst_atom_sampler.c139 texobj = ctx->Texture.Unit[texUnit]._Current; in convert_sampler()
330 ctx->FragmentProgram._Current, in update_samplers()
337 ctx->VertexProgram._Current, in update_samplers()
342 if (ctx->GeometryProgram._Current) { in update_samplers()
345 ctx->GeometryProgram._Current, in update_samplers()
350 if (ctx->TessCtrlProgram._Current) { in update_samplers()
353 ctx->TessCtrlProgram._Current, in update_samplers()
358 if (ctx->TessEvalProgram._Current) { in update_samplers()
361 ctx->TessEvalProgram._Current, in update_samplers()
366 if (ctx->ComputeProgram._Current) { in update_samplers()
[all …]
Dst_atom.c72 struct gl_program *new_vp = ctx->VertexProgram._Current; in check_program_state()
73 struct gl_program *new_tcp = ctx->TessCtrlProgram._Current; in check_program_state()
74 struct gl_program *new_tep = ctx->TessEvalProgram._Current; in check_program_state()
75 struct gl_program *new_gp = ctx->GeometryProgram._Current; in check_program_state()
76 struct gl_program *new_fp = ctx->FragmentProgram._Current; in check_program_state()
125 struct gl_program *vp = st->ctx->VertexProgram._Current; in check_attrib_edgeflag()
181 struct gl_program *new_cp = ctx->ComputeProgram._Current; in st_validate_state()
Dst_atom_rasterizer.c65 const struct gl_program *vertProg = ctx->VertexProgram._Current; in update_raster_state()
66 const struct gl_program *fragProg = ctx->FragmentProgram._Current; in update_raster_state()
212 if (ctx->GeometryProgram._Current) in update_raster_state()
213 last = ctx->GeometryProgram._Current; in update_raster_state()
214 else if (ctx->TessEvalProgram._Current) in update_raster_state()
215 last = ctx->TessEvalProgram._Current; in update_raster_state()
216 else if (ctx->VertexProgram._Current) in update_raster_state()
217 last = ctx->VertexProgram._Current; in update_raster_state()
Dst_cb_drawtex.c126 if (ctx->FragmentProgram._Current->info.inputs_read & VARYING_BIT_COL0) in st_DrawTex()
134 if (ctx->Texture.Unit[i]._Current && in st_DrawTex()
135 ctx->Texture.Unit[i]._Current->Target == GL_TEXTURE_2D) { in st_DrawTex()
205 if (ctx->Texture.Unit[i]._Current && in st_DrawTex()
206 ctx->Texture.Unit[i]._Current->Target == GL_TEXTURE_2D) { in st_DrawTex()
207 struct gl_texture_object *obj = ctx->Texture.Unit[i]._Current; in st_DrawTex()
Dst_context.c131 st_vertex_program(ctx->VertexProgram._Current); in st_get_active_states()
133 st_tessctrl_program(ctx->TessCtrlProgram._Current); in st_get_active_states()
135 st_tesseval_program(ctx->TessEvalProgram._Current); in st_get_active_states()
137 st_geometry_program(ctx->GeometryProgram._Current); in st_get_active_states()
139 st_fragment_program(ctx->FragmentProgram._Current); in st_get_active_states()
141 st_compute_program(ctx->ComputeProgram._Current); in st_get_active_states()
264 if (ctx->FragmentProgram._Current && in st_invalidate_state()
265 ctx->FragmentProgram._Current->ExternalSamplersUsed) { in st_invalidate_state()
/external/mesa3d/src/mesa/swrast/
Ds_fragprog.c44 struct gl_program *fp = ctx->FragmentProgram._Current; in _swrast_use_fragment_program()
83 const struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; in fetch_texel_lod()
92 swrast->TextureSample[unit](ctx, samp, ctx->Texture.Unit[unit]._Current, in fetch_texel_lod()
117 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()
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()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_state_upload.c794 if (brw->fragment_program != ctx->FragmentProgram._Current) { in brw_upload_pipeline_state()
795 brw->fragment_program = ctx->FragmentProgram._Current; in brw_upload_pipeline_state()
799 if (brw->tess_eval_program != ctx->TessEvalProgram._Current) { in brw_upload_pipeline_state()
800 brw->tess_eval_program = ctx->TessEvalProgram._Current; in brw_upload_pipeline_state()
804 if (brw->tess_ctrl_program != ctx->TessCtrlProgram._Current) { in brw_upload_pipeline_state()
805 brw->tess_ctrl_program = ctx->TessCtrlProgram._Current; in brw_upload_pipeline_state()
809 if (brw->geometry_program != ctx->GeometryProgram._Current) { in brw_upload_pipeline_state()
810 brw->geometry_program = ctx->GeometryProgram._Current; in brw_upload_pipeline_state()
814 if (brw->vertex_program != ctx->VertexProgram._Current) { in brw_upload_pipeline_state()
815 brw->vertex_program = ctx->VertexProgram._Current; in brw_upload_pipeline_state()
[all …]
Dbrw_draw.c305 uint64_t mask = ctx->VertexProgram._Current->info.inputs_read; in brw_merge_inputs()
468 util_last_bit(ctx->FragmentProgram._Current->SamplersUsed); in brw_try_draw_prims()
469 brw->gs.base.sampler_count = ctx->GeometryProgram._Current ? in brw_try_draw_prims()
470 util_last_bit(ctx->GeometryProgram._Current->SamplersUsed) : 0; in brw_try_draw_prims()
471 brw->tes.base.sampler_count = ctx->TessEvalProgram._Current ? in brw_try_draw_prims()
472 util_last_bit(ctx->TessEvalProgram._Current->SamplersUsed) : 0; in brw_try_draw_prims()
473 brw->tcs.base.sampler_count = ctx->TessCtrlProgram._Current ? in brw_try_draw_prims()
474 util_last_bit(ctx->TessCtrlProgram._Current->SamplersUsed) : 0; in brw_try_draw_prims()
476 util_last_bit(ctx->VertexProgram._Current->SamplersUsed); in brw_try_draw_prims()
Dintel_tex_validate.c71 struct gl_texture_object *tObj = ctx->Texture.Unit[unit]._Current; in intel_finalize_mipmap_tree()
198 if (tex_unit->_Current) { in brw_validate_textures()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_state_init.c209 CHECK( cube0_mm, (ctx->Texture.Unit[0]._Current && ctx->Texture.Unit[0]._Current->Target == GL_TEXT…
210 CHECK( cube1_mm, (ctx->Texture.Unit[1]._Current && ctx->Texture.Unit[1]._Current->Target == GL_TEXT…
211 CHECK( cube2_mm, (ctx->Texture.Unit[2]._Current && ctx->Texture.Unit[2]._Current->Target == GL_TEXT…
214 TCL_CHECK( tcl_tex0_add4, ctx->Texture.Unit[0]._Current, 4 )
215 TCL_CHECK( tcl_tex1_add4, ctx->Texture.Unit[1]._Current, 4 )
216 TCL_CHECK( tcl_tex2_add4, ctx->Texture.Unit[2]._Current, 4 )
236 CHECK( txr0, (ctx->Texture.Unit[0]._Current && ctx->Texture.Unit[0]._Current->Target == GL_TEXTURE_…
237 CHECK( txr1, (ctx->Texture.Unit[1]._Current && ctx->Texture.Unit[1]._Current->Target == GL_TEXTURE_…
238 CHECK( txr2, (ctx->Texture.Unit[2]._Current && ctx->Texture.Unit[2]._Current->Target == GL_TEXTURE_…
428 if (!ctx->Texture.Unit[i]._Current || in cube_emit_cs()
[all …]
Dradeon_texstate.c231 if ( !texUnit->_Current ) { in radeonUpdateTextureEnv()
254 if (texUnit->_Current->Image[0][0]->_BaseFormat == GL_ALPHA) in radeonUpdateTextureEnv()
278 if (ctx->Texture.Unit[txunit]._Current->Image[0][0]->_BaseFormat == GL_ALPHA) in radeonUpdateTextureEnv()
299 if (texUnit->_Current->Image[0][0]->_BaseFormat == GL_LUMINANCE) in radeonUpdateTextureEnv()
323 if (ctx->Texture.Unit[txunit]._Current->Image[0][0]->_BaseFormat == GL_LUMINANCE) in radeonUpdateTextureEnv()
1034 if (ctx->Texture.Unit[unit]._Current && in radeonUpdateTextureUnit()
1035 ctx->Texture.Unit[unit]._Current->Target == GL_TEXTURE_3D) { in radeonUpdateTextureUnit()
1041 if (!ctx->Texture.Unit[unit]._Current) { in radeonUpdateTextureUnit()
1048 if (!radeon_validate_texture(ctx, ctx->Texture.Unit[unit]._Current, unit)) { in radeonUpdateTextureUnit()
1055 rmesa->state.texture.unit[unit].texobj = radeon_tex_obj(ctx->Texture.Unit[unit]._Current); in radeonUpdateTextureUnit()
/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()
Dnv04_state_tex.c68 if (ctx->Texture.Unit[i]._Current) { in nv04_emit_tex_obj()
69 struct gl_texture_object *t = ctx->Texture.Unit[i]._Current; in nv04_emit_tex_obj()
Dnv20_state_tex.c172 if (!ctx->Texture.Unit[i]._Current) { in nv20_emit_tex_obj()
180 t = ctx->Texture.Unit[i]._Current; in nv20_emit_tex_obj()
266 if (!ctx->Texture.Unit[i]._Current) in nv20_emit_tex_shader()
Dnv04_context.c37 struct gl_texture_object *t = u->_Current; in texunit_needs_combiners()
56 if ((ctx->Texture.Unit[0]._Current && in nv04_context_engine()
58 ctx->Texture.Unit[1]._Current || in nv04_context_engine()
/external/mesa3d/src/mesa/vbo/
Dvbo_context.h101 if (!ctx->VertexProgram._Current) in get_program_mode()
103 else if (ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) in get_program_mode()

1234