/external/mesa3d/src/mesa/main/ |
D | state.c | 178 const struct gl_program *prevVP = ctx->VertexProgram._Current; in update_program() 179 const struct gl_program *prevFP = ctx->FragmentProgram._Current; in update_program() 180 const struct gl_program *prevGP = ctx->GeometryProgram._Current; in update_program() 181 const struct gl_program *prevTCP = ctx->TessCtrlProgram._Current; in update_program() 182 const struct gl_program *prevTEP = ctx->TessEvalProgram._Current; in update_program() 183 const struct gl_program *prevCP = ctx->ComputeProgram._Current; in update_program() 204 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, fsProg); in update_program() 210 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program() 218 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program() 227 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, in update_program() [all …]
|
D | state.h | 83 if (ctx->VertexProgram._Current && in _mesa_need_secondary_color() 84 (ctx->VertexProgram._Current != ctx->VertexProgram._TnlProgram) && in _mesa_need_secondary_color() 85 (ctx->VertexProgram._Current->info.inputs_read & VERT_BIT_COLOR1)) in _mesa_need_secondary_color() 88 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()
|
D | texstate.c | 399 if (ctx->Texture.Unit[u]._Current && in _mesa_update_texture_matrices() 519 if (texUnit->_Current->Target == GL_TEXTURE_BUFFER) in update_tex_combine() 531 const struct gl_texture_object *texObj = texUnit->_Current; in update_tex_combine() 711 _mesa_reference_texobj(&ctx->Texture.Unit[unit]._Current, texObj); in update_single_program_texture_state() 827 _mesa_reference_texobj(&texUnit->_Current, texObj); in update_ff_texture_state() 859 if (!ctx->Texture.Unit[unit]._Current) { in fix_missing_textures_for_atifs() 862 _mesa_reference_texobj(&ctx->Texture.Unit[unit]._Current, texObj); in fix_missing_textures_for_atifs() 920 _mesa_reference_texobj(&ctx->Texture.Unit[i]._Current, NULL); in _mesa_update_texture_state() 923 _mesa_reference_texobj(&ctx->Texture.Unit[i]._Current, NULL); in _mesa_update_texture_state() 1098 _mesa_reference_texobj(&ctx->Texture.Unit[u]._Current, NULL); in _mesa_free_texture_data()
|
D | samplerobj.h | 43 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/state_tracker/ |
D | st_util.h | 107 const struct gl_program *vertProg = ctx->VertexProgram._Current; in st_point_size_per_vertex() 124 if (ctx->GeometryProgram._Current) in st_point_size_per_vertex() 125 last = ctx->GeometryProgram._Current; in st_point_size_per_vertex() 126 else if (ctx->TessEvalProgram._Current) in st_point_size_per_vertex() 127 last = ctx->TessEvalProgram._Current; in st_point_size_per_vertex() 128 else if (ctx->VertexProgram._Current) in st_point_size_per_vertex() 129 last = ctx->VertexProgram._Current; in st_point_size_per_vertex()
|
D | st_atom_texture.c | 71 texObj = ctx->Texture.Unit[texUnit]._Current; in st_update_single_texture() 277 ctx->VertexProgram._Current, in st_update_vertex_textures() 290 ctx->FragmentProgram._Current, in st_update_fragment_textures() 300 if (ctx->GeometryProgram._Current) { in st_update_geometry_textures() 302 ctx->GeometryProgram._Current); in st_update_geometry_textures() 312 if (ctx->TessCtrlProgram._Current) { in st_update_tessctrl_textures() 314 ctx->TessCtrlProgram._Current); in st_update_tessctrl_textures() 324 if (ctx->TessEvalProgram._Current) { in st_update_tesseval_textures() 326 ctx->TessEvalProgram._Current); in st_update_tesseval_textures() 336 if (ctx->ComputeProgram._Current) { in st_update_compute_textures() [all …]
|
D | st_atom_sampler.c | 240 texobj = ctx->Texture.Unit[texUnit]._Current; in st_convert_sampler_from_unit() 292 ctx->Texture.Unit[tex_unit]._Current->Target != GL_TEXTURE_BUFFER) { in update_shader_samplers() 359 ctx->VertexProgram._Current, in st_update_vertex_samplers() 370 if (ctx->TessCtrlProgram._Current) { in st_update_tessctrl_samplers() 373 ctx->TessCtrlProgram._Current, NULL, NULL); in st_update_tessctrl_samplers() 383 if (ctx->TessEvalProgram._Current) { in st_update_tesseval_samplers() 386 ctx->TessEvalProgram._Current, NULL, NULL); in st_update_tesseval_samplers() 396 if (ctx->GeometryProgram._Current) { in st_update_geometry_samplers() 399 ctx->GeometryProgram._Current, NULL, NULL); in st_update_geometry_samplers() 411 ctx->FragmentProgram._Current, in st_update_fragment_samplers() [all …]
|
D | st_atom_shader.c | 62 struct gl_texture_object *texObj = _mesa_get_tex_unit(ctx, unit)->_Current; in get_texture_target() 103 assert(st->ctx->FragmentProgram._Current); in st_update_fp() 104 stfp = st_program(st->ctx->FragmentProgram._Current); in st_update_fp() 186 assert(st->ctx->VertexProgram._Current); in st_update_vp() 187 stvp = st_program(st->ctx->VertexProgram._Current); in st_update_vp() 234 !st->ctx->GeometryProgram._Current) in st_update_vp() 310 st->ctx->GeometryProgram._Current, in st_update_gp() 320 st->ctx->TessCtrlProgram._Current, in st_update_tcp() 330 st->ctx->TessEvalProgram._Current, in st_update_tep() 340 st->ctx->ComputeProgram._Current, in st_update_cp()
|
D | st_atom.c | 76 struct gl_program *new_vp = ctx->VertexProgram._Current; in check_program_state() 77 struct gl_program *new_tcp = ctx->TessCtrlProgram._Current; in check_program_state() 78 struct gl_program *new_tep = ctx->TessEvalProgram._Current; in check_program_state() 79 struct gl_program *new_gp = ctx->GeometryProgram._Current; in check_program_state() 80 struct gl_program *new_fp = ctx->FragmentProgram._Current; in check_program_state() 146 struct gl_program *vp = st->ctx->VertexProgram._Current; in check_attrib_edgeflag() 224 struct gl_program *new_cp = ctx->ComputeProgram._Current; in st_validate_state()
|
D | st_cb_drawtex.c | 182 if (ctx->FragmentProgram._Current->info.inputs_read & VARYING_BIT_COL0) in st_DrawTex() 190 if (ctx->Texture.Unit[i]._Current && in st_DrawTex() 191 ctx->Texture.Unit[i]._Current->Target == GL_TEXTURE_2D) { in st_DrawTex() 261 if (ctx->Texture.Unit[i]._Current && in st_DrawTex() 262 ctx->Texture.Unit[i]._Current->Target == GL_TEXTURE_2D) { in st_DrawTex() 263 struct gl_texture_object *obj = ctx->Texture.Unit[i]._Current; in st_DrawTex()
|
D | st_context.c | 147 st_program(ctx->VertexProgram._Current); in st_get_active_states() 149 st_program(ctx->TessCtrlProgram._Current); in st_get_active_states() 151 st_program(ctx->TessEvalProgram._Current); in st_get_active_states() 153 st_program(ctx->GeometryProgram._Current); in st_get_active_states() 155 st_program(ctx->FragmentProgram._Current); in st_get_active_states() 157 st_program(ctx->ComputeProgram._Current); in st_get_active_states() 198 const uint64_t inputs = ctx->VertexProgram._Current->info.inputs_read; in st_vp_uses_current_values() 244 if (ctx->GeometryProgram._Current) in st_invalidate_state() 246 else if (ctx->TessEvalProgram._Current) in st_invalidate_state() 274 if (ctx->FragmentProgram._Current) { in st_invalidate_state() [all …]
|
/external/mesa3d/src/mesa/tnl/ |
D | t_vp_build.c | 43 if (!ctx->VertexProgram._Current || in _tnl_UpdateFixedFunctionProgram() 44 ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) { in _tnl_UpdateFixedFunctionProgram() 45 ctx->VertexProgram._Current in _tnl_UpdateFixedFunctionProgram()
|
D | t_context.c | 135 const struct gl_program *vp = ctx->VertexProgram._Current; in _tnl_InvalidateState() 136 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()
|
D | t_vb_program.c | 204 ctx->Texture.Unit[unit]._Current, in vp_fetch_texel() 244 machine->Samplers = ctx->VertexProgram._Current->SamplerUnits; in init_machine() 263 _swrast_map_texture(ctx, ctx->Texture.Unit[u]._Current); in map_textures() 282 _swrast_unmap_texture(ctx, ctx->Texture.Unit[u]._Current); in unmap_textures() 297 struct gl_program *program = ctx->VertexProgram._Current; in run_vp() 518 if (ctx->VertexProgram._Current) { in validate_vp_stage()
|
/external/mesa3d/src/mesa/swrast/ |
D | s_fragprog.c | 44 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/ |
D | brw_state_upload.c | 631 ctx->FragmentProgram._Current) { in brw_upload_pipeline_state() 632 brw->programs[MESA_SHADER_FRAGMENT] = ctx->FragmentProgram._Current; in brw_upload_pipeline_state() 637 ctx->TessEvalProgram._Current) { in brw_upload_pipeline_state() 638 brw->programs[MESA_SHADER_TESS_EVAL] = ctx->TessEvalProgram._Current; in brw_upload_pipeline_state() 643 ctx->TessCtrlProgram._Current) { in brw_upload_pipeline_state() 644 brw->programs[MESA_SHADER_TESS_CTRL] = ctx->TessCtrlProgram._Current; in brw_upload_pipeline_state() 649 ctx->GeometryProgram._Current) { in brw_upload_pipeline_state() 650 brw->programs[MESA_SHADER_GEOMETRY] = ctx->GeometryProgram._Current; in brw_upload_pipeline_state() 654 if (brw->programs[MESA_SHADER_VERTEX] != ctx->VertexProgram._Current) { in brw_upload_pipeline_state() 655 brw->programs[MESA_SHADER_VERTEX] = ctx->VertexProgram._Current; in brw_upload_pipeline_state() [all …]
|
D | brw_draw.c | 344 const uint64_t vs_inputs = ctx->VertexProgram._Current->info.inputs_read; in brw_merge_inputs() 504 mark_textures_used_for_txf(used_for_txf, ctx->VertexProgram._Current); in brw_predraw_resolve_inputs() 505 mark_textures_used_for_txf(used_for_txf, ctx->TessCtrlProgram._Current); in brw_predraw_resolve_inputs() 506 mark_textures_used_for_txf(used_for_txf, ctx->TessEvalProgram._Current); in brw_predraw_resolve_inputs() 507 mark_textures_used_for_txf(used_for_txf, ctx->GeometryProgram._Current); in brw_predraw_resolve_inputs() 508 mark_textures_used_for_txf(used_for_txf, ctx->FragmentProgram._Current); in brw_predraw_resolve_inputs() 510 mark_textures_used_for_txf(used_for_txf, ctx->ComputeProgram._Current); in brw_predraw_resolve_inputs() 524 if (!ctx->Texture.Unit[i]._Current) in brw_predraw_resolve_inputs() 526 tex_obj = intel_texture_object(ctx->Texture.Unit[i]._Current); in brw_predraw_resolve_inputs() 538 if (!ctx->Texture.Unit[i]._Current) in brw_predraw_resolve_inputs() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_state_init.c | 209 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 …]
|
D | radeon_texstate.c | 238 if ( !rtexUnit->_Current ) { in radeonUpdateTextureEnv() 261 if (texture_base_format(rtexUnit->_Current) == GL_ALPHA) in radeonUpdateTextureEnv() 285 if (texture_base_format(ctx->Texture.Unit[txunit]._Current) == GL_ALPHA) in radeonUpdateTextureEnv() 306 if (texture_base_format(rtexUnit->_Current) == GL_LUMINANCE) in radeonUpdateTextureEnv() 330 if (texture_base_format(ctx->Texture.Unit[txunit]._Current) == GL_LUMINANCE) in radeonUpdateTextureEnv() 1036 if (ctx->Texture.Unit[unit]._Current && in radeonUpdateTextureUnit() 1037 ctx->Texture.Unit[unit]._Current->Target == GL_TEXTURE_3D) { in radeonUpdateTextureUnit() 1043 if (!ctx->Texture.Unit[unit]._Current) { in radeonUpdateTextureUnit() 1050 if (!radeon_validate_texture(ctx, ctx->Texture.Unit[unit]._Current, unit)) { in radeonUpdateTextureUnit() 1057 rmesa->state.texture.unit[unit].texobj = radeon_tex_obj(ctx->Texture.Unit[unit]._Current); in radeonUpdateTextureUnit()
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nouveau_span.c | 72 _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()
|
D | nv04_state_tex.c | 68 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()
|
D | nv04_context.c | 39 struct gl_texture_object *t = u->_Current; in texunit_needs_combiners() 58 if ((ctx->Texture.Unit[0]._Current && in nv04_context_engine() 61 ctx->Texture.Unit[1]._Current || in nv04_context_engine()
|
D | nv20_state_tex.c | 174 if (!ctx->Texture.Unit[i]._Current) { in nv20_emit_tex_obj() 182 t = ctx->Texture.Unit[i]._Current; in nv20_emit_tex_obj() 304 if (!ctx->Texture.Unit[i]._Current) in nv20_emit_tex_shader()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i830_texstate.c | 120 struct gl_texture_object *tObj = tUnit->_Current; in i830_update_tex_unit() 334 if (intel->ctx.Texture.Unit[i]._Current) { in i830UpdateTextureState() 335 switch (intel->ctx.Texture.Unit[i]._Current->Target) { in i830UpdateTextureState()
|
D | i915_texstate.c | 145 struct gl_texture_object *tObj = tUnit->_Current; in i915_update_tex_unit() 420 if (intel->ctx.Texture.Unit[i]._Current) { in i915UpdateTextureState() 421 switch (intel->ctx.Texture.Unit[i]._Current->Target) { in i915UpdateTextureState()
|