/third_party/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 | 78 if (ctx->VertexProgram._Current && in _mesa_need_secondary_color() 79 (ctx->VertexProgram._Current != ctx->VertexProgram._TnlProgram) && in _mesa_need_secondary_color() 80 (ctx->VertexProgram._Current->info.inputs_read & VERT_BIT_COLOR1)) in _mesa_need_secondary_color() 83 if (ctx->FragmentProgram._Current && in _mesa_need_secondary_color() 84 (ctx->FragmentProgram._Current != ctx->FragmentProgram._TexEnvProgram) && in _mesa_need_secondary_color() 85 (ctx->FragmentProgram._Current->info.inputs_read & VARYING_BIT_COL1)) in _mesa_need_secondary_color()
|
D | texstate.c | 404 if (ctx->Texture.Unit[u]._Current && in _mesa_update_texture_matrices() 529 if (texUnit->_Current->Target == GL_TEXTURE_BUFFER) in update_tex_combine() 541 const struct gl_texture_object *texObj = texUnit->_Current; in update_tex_combine() 721 _mesa_reference_texobj(&ctx->Texture.Unit[unit]._Current, texObj); in update_single_program_texture_state() 837 _mesa_reference_texobj(&texUnit->_Current, texObj); in update_ff_texture_state() 869 if (!ctx->Texture.Unit[unit]._Current) { in fix_missing_textures_for_atifs() 872 _mesa_reference_texobj(&ctx->Texture.Unit[unit]._Current, texObj); in fix_missing_textures_for_atifs() 935 _mesa_reference_texobj(&ctx->Texture.Unit[i]._Current, NULL); in _mesa_update_texture_state() 938 _mesa_reference_texobj(&ctx->Texture.Unit[i]._Current, NULL); in _mesa_update_texture_state() 1126 _mesa_reference_texobj(&ctx->Texture.Unit[u]._Current, NULL); in _mesa_free_texture_data()
|
D | context.c | 682 (8 * sizeof(ctx->VertexProgram._Current->info.outputs_written))); in check_context_limits() 684 (8 * sizeof(ctx->FragmentProgram._Current->info.inputs_read))); in check_context_limits() 1244 _mesa_reference_program(ctx, &ctx->VertexProgram._Current, NULL); in _mesa_free_context_data() 1247 _mesa_reference_program(ctx, &ctx->TessCtrlProgram._Current, NULL); in _mesa_free_context_data() 1248 _mesa_reference_program(ctx, &ctx->TessEvalProgram._Current, NULL); in _mesa_free_context_data() 1249 _mesa_reference_program(ctx, &ctx->GeometryProgram._Current, NULL); in _mesa_free_context_data() 1252 _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, NULL); in _mesa_free_context_data() 1255 _mesa_reference_program(ctx, &ctx->ComputeProgram._Current, NULL); in _mesa_free_context_data()
|
/third_party/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_shader.c | 62 struct gl_texture_object *texObj = _mesa_get_tex_unit(ctx, unit)->_Current; in get_texture_index() 95 (st->ctx->Texture.Unit[tex_unit]._Current->Target != GL_TEXTURE_BUFFER || in update_gl_clamp() 101 texobj = ctx->Texture.Unit[tex_unit]._Current; in update_gl_clamp() 124 assert(st->ctx->FragmentProgram._Current); in st_update_fp() 125 stfp = st_program(st->ctx->FragmentProgram._Current); in st_update_fp() 185 update_gl_clamp(st, st->ctx->FragmentProgram._Current, key.gl_clamp); in st_update_fp() 210 assert(st->ctx->VertexProgram._Current); in st_update_vp() 211 stvp = st_program(st->ctx->VertexProgram._Current); in st_update_vp() 250 if (!st->ctx->GeometryProgram._Current && in st_update_vp() 251 !st->ctx->TessEvalProgram._Current) { in st_update_vp() [all …]
|
D | st_atom_sampler.c | 156 texobj = ctx->Texture.Unit[texUnit]._Current; in st_convert_sampler_from_unit() 205 (ctx->Texture.Unit[tex_unit]._Current->Target != GL_TEXTURE_BUFFER || in update_shader_samplers() 282 ctx->VertexProgram._Current, in st_update_vertex_samplers() 293 if (ctx->TessCtrlProgram._Current) { in st_update_tessctrl_samplers() 296 ctx->TessCtrlProgram._Current, NULL, NULL); in st_update_tessctrl_samplers() 306 if (ctx->TessEvalProgram._Current) { in st_update_tesseval_samplers() 309 ctx->TessEvalProgram._Current, NULL, NULL); in st_update_tesseval_samplers() 319 if (ctx->GeometryProgram._Current) { in st_update_geometry_samplers() 322 ctx->GeometryProgram._Current, NULL, NULL); in st_update_geometry_samplers() 334 ctx->FragmentProgram._Current, in st_update_fragment_samplers() [all …]
|
D | st_atom_texture.c | 67 texObj = ctx->Texture.Unit[texUnit]._Current; in st_update_single_texture() 285 ctx->VertexProgram._Current); in st_update_vertex_textures() 296 ctx->FragmentProgram._Current); in st_update_fragment_textures() 305 if (ctx->GeometryProgram._Current) { in st_update_geometry_textures() 307 ctx->GeometryProgram._Current); in st_update_geometry_textures() 317 if (ctx->TessCtrlProgram._Current) { in st_update_tessctrl_textures() 319 ctx->TessCtrlProgram._Current); in st_update_tessctrl_textures() 329 if (ctx->TessEvalProgram._Current) { in st_update_tesseval_textures() 331 ctx->TessEvalProgram._Current); in st_update_tesseval_textures() 341 if (ctx->ComputeProgram._Current) { in st_update_compute_textures() [all …]
|
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() 152 struct gl_program *vp = st->ctx->VertexProgram._Current; in st_update_edgeflags() 230 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 | 148 st_program(ctx->VertexProgram._Current); in st_get_active_states() 150 st_program(ctx->TessCtrlProgram._Current); in st_get_active_states() 152 st_program(ctx->TessEvalProgram._Current); in st_get_active_states() 154 st_program(ctx->GeometryProgram._Current); in st_get_active_states() 156 st_program(ctx->FragmentProgram._Current); in st_get_active_states() 158 st_program(ctx->ComputeProgram._Current); in st_get_active_states() 199 const uint64_t inputs = ctx->VertexProgram._Current->info.inputs_read; in st_vp_uses_current_values() 248 if (ctx->GeometryProgram._Current) in st_invalidate_state() 250 else if (ctx->TessEvalProgram._Current) in st_invalidate_state() 282 if (ctx->FragmentProgram._Current) { in st_invalidate_state() [all …]
|
/third_party/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 | 133 const struct gl_program *vp = ctx->VertexProgram._Current; in _tnl_InvalidateState() 134 const struct gl_program *fp = ctx->FragmentProgram._Current; in _tnl_InvalidateState() 241 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current; in _tnl_allow_vertex_fog() 251 || !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() 521 if (ctx->VertexProgram._Current) { in validate_vp_stage()
|
/third_party/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()
|
D | s_context.c | 220 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() 473 struct gl_texture_object *tObj = ctx->Texture.Unit[u]._Current; in _swrast_update_texture_samplers() 500 attribsMask = ctx->FragmentProgram._Current->info.inputs_read; in _swrast_update_active_attribs() 929 if (ctx->Texture.Unit[i]._Current) in _swrast_print_vertex()
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_state_upload.c | 630 ctx->FragmentProgram._Current) { in brw_upload_pipeline_state() 631 brw->programs[MESA_SHADER_FRAGMENT] = ctx->FragmentProgram._Current; in brw_upload_pipeline_state() 636 ctx->TessEvalProgram._Current) { in brw_upload_pipeline_state() 637 brw->programs[MESA_SHADER_TESS_EVAL] = ctx->TessEvalProgram._Current; in brw_upload_pipeline_state() 642 ctx->TessCtrlProgram._Current) { in brw_upload_pipeline_state() 643 brw->programs[MESA_SHADER_TESS_CTRL] = ctx->TessCtrlProgram._Current; in brw_upload_pipeline_state() 648 ctx->GeometryProgram._Current) { in brw_upload_pipeline_state() 649 brw->programs[MESA_SHADER_GEOMETRY] = ctx->GeometryProgram._Current; in brw_upload_pipeline_state() 653 if (brw->programs[MESA_SHADER_VERTEX] != ctx->VertexProgram._Current) { in brw_upload_pipeline_state() 654 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() 502 mark_textures_used_for_txf(used_for_txf, ctx->VertexProgram._Current); in brw_predraw_resolve_inputs() 503 mark_textures_used_for_txf(used_for_txf, ctx->TessCtrlProgram._Current); in brw_predraw_resolve_inputs() 504 mark_textures_used_for_txf(used_for_txf, ctx->TessEvalProgram._Current); in brw_predraw_resolve_inputs() 505 mark_textures_used_for_txf(used_for_txf, ctx->GeometryProgram._Current); in brw_predraw_resolve_inputs() 506 mark_textures_used_for_txf(used_for_txf, ctx->FragmentProgram._Current); in brw_predraw_resolve_inputs() 508 mark_textures_used_for_txf(used_for_txf, ctx->ComputeProgram._Current); in brw_predraw_resolve_inputs() 522 if (!ctx->Texture.Unit[i]._Current) in brw_predraw_resolve_inputs() 524 tex_obj = brw_texture_object(ctx->Texture.Unit[i]._Current); in brw_predraw_resolve_inputs() 536 if (!ctx->Texture.Unit[i]._Current) in brw_predraw_resolve_inputs() [all …]
|
/third_party/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()
|
/third_party/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()
|
/third_party/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()
|