/external/mesa3d/src/mesa/main/ |
D | state.c | 110 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 …]
|
D | state.h | 62 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()
|
D | texstate.c | 370 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()
|
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/tnl/ |
D | t_vp_build.c | 43 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()
|
D | t_context.c | 134 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()
|
D | t_vb_program.c | 200 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/ |
D | st_atom_shader.c | 73 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 …]
|
D | st_atom_texture.c | 68 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 …]
|
D | st_atom_sampler.c | 139 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 …]
|
D | st_atom.c | 72 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()
|
D | st_atom_rasterizer.c | 65 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()
|
D | st_cb_drawtex.c | 126 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()
|
D | st_context.c | 131 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/ |
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 | 794 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 …]
|
D | brw_draw.c | 305 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()
|
D | intel_tex_validate.c | 71 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/ |
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 | 231 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/ |
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 | nv20_state_tex.c | 172 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()
|
D | nv04_context.c | 37 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/ |
D | vbo_context.h | 101 if (!ctx->VertexProgram._Current) in get_program_mode() 103 else if (ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) in get_program_mode()
|