Home
last modified time | relevance | path

Searched refs:tnl (Results 1 – 25 of 62) sorted by relevance

123

/external/mesa3d/src/mesa/tnl/
Dt_pipeline.c41 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_install_pipeline() local
44 tnl->pipeline.new_state = ~0; in _tnl_install_pipeline()
49 struct tnl_pipeline_stage *s = &tnl->pipeline.stages[i]; in _tnl_install_pipeline()
55 tnl->pipeline.nr_stages = i; in _tnl_install_pipeline()
60 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_destroy_pipeline() local
63 for (i = 0 ; i < tnl->pipeline.nr_stages ; i++) { in _tnl_destroy_pipeline()
64 struct tnl_pipeline_stage *s = &tnl->pipeline.stages[i]; in _tnl_destroy_pipeline()
69 tnl->pipeline.nr_stages = 0; in _tnl_destroy_pipeline()
76 TNLcontext *tnl = TNL_CONTEXT(ctx); in check_input_changes() local
80 if (tnl->vb.AttribPtr[i]->size != tnl->pipeline.last_attrib_size[i] || in check_input_changes()
[all …]
Dt_context.c48 TNLcontext *tnl; in _tnl_CreateContext() local
53 ctx->swtnl_context = tnl = (TNLcontext *) CALLOC( sizeof(TNLcontext) ); in _tnl_CreateContext()
55 if (!tnl) { in _tnl_CreateContext()
61 tnl->vb.Size = ctx->Const.MaxArrayLockSize + MAX_CLIPPED_VERTICES; in _tnl_CreateContext()
72 tnl->NeedNdcCoords = GL_TRUE; in _tnl_CreateContext()
73 tnl->AllowVertexFog = GL_TRUE; in _tnl_CreateContext()
74 tnl->AllowPixelFog = GL_TRUE; in _tnl_CreateContext()
78 tnl->Driver.Render.PrimTabElts = _tnl_render_tab_elts; in _tnl_CreateContext()
79 tnl->Driver.Render.PrimTabVerts = _tnl_render_tab_verts; in _tnl_CreateContext()
80 tnl->Driver.NotifyMaterialChange = _tnl_validate_shine_tables; in _tnl_CreateContext()
[all …]
Dt_vb_render.c84 tnl->Driver.Render.Points( ctx, start, count )
119 TNLcontext *tnl = TNL_CONTEXT(ctx); \
120 struct vertex_buffer *VB = &tnl->vb; \
124 const tnl_line_func LineFunc = tnl->Driver.Render.Line; \
125 const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \
126 const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad; \
132 #define INIT(x) tnl->Driver.Render.PrimitiveNotify( ctx, x )
133 #define RESET_STIPPLE if (stipple) tnl->Driver.Render.ResetLineStipple( ctx )
154 TNLcontext *tnl = TNL_CONTEXT(ctx); in clip_elt_triangles() local
155 tnl_render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES]; in clip_elt_triangles()
[all …]
Dt_vb_light.c122 TNLcontext *tnl = TNL_CONTEXT(ctx); in validate_shine_table() local
123 struct tnl_shine_tab *list = tnl->_ShineTabList; in validate_shine_table()
163 if (tnl->_ShineTable[side]) in validate_shine_table()
164 tnl->_ShineTable[side]->refcount--; in validate_shine_table()
166 tnl->_ShineTable[side] = s; in validate_shine_table()
175 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_validate_shine_tables() local
179 if (!tnl->_ShineTable[0] || tnl->_ShineTable[0]->shininess != shininess) in _tnl_validate_shine_tables()
183 if (!tnl->_ShineTable[1] || tnl->_ShineTable[1]->shininess != shininess) in _tnl_validate_shine_tables()
276 TNLcontext *tnl = TNL_CONTEXT(ctx); in lookup_shininess() local
277 const struct tnl_shine_tab *tab = tnl->_ShineTable[face]; in lookup_shininess()
[all …]
Dt_draw.c44 TNLcontext *tnl = TNL_CONTEXT(ctx); in get_space() local
47 tnl->block[tnl->nr_blocks++] = space; in get_space()
54 TNLcontext *tnl = TNL_CONTEXT(ctx); in free_space() local
56 for (i = 0; i < tnl->nr_blocks; i++) in free_space()
57 free(tnl->block[i]); in free_space()
58 tnl->nr_blocks = 0; in free_space()
175 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_import_array() local
176 struct vertex_buffer *VB = &tnl->vb; in _tnl_import_array()
227 VB->AttribPtr[attrib] = &tnl->tmp_inputs[attrib]; in _tnl_import_array()
271 TNLcontext *tnl = TNL_CONTEXT(ctx); in bind_inputs() local
[all …]
Dt_vb_cliptmp.h120 TNLcontext *tnl = TNL_CONTEXT(ctx); in TAG() local
121 struct vertex_buffer *VB = &tnl->vb; in TAG()
122 tnl_interp_func interp = tnl->Driver.Render.Interp; in TAG()
170 tnl->Driver.Render.CopyPV( ctx, newvert, v1 ); in TAG()
180 tnl->Driver.Render.ClippedLine( ctx, v0, v1 ); in TAG()
189 TNLcontext *tnl = TNL_CONTEXT(ctx); in TAG() local
190 struct vertex_buffer *VB = &tnl->vb; in TAG()
191 tnl_interp_func interp = tnl->Driver.Render.Interp; in TAG()
243 tnl->Driver.Render.CopyPV( ctx, inlist[0], pv ); in TAG()
259 tnl->Driver.Render.ClippedPolygon( ctx, inlist, n ); in TAG()
[all …]
DNOTES7 'vtxfmt' mechanism of core mesa for tnl functionality in all
10 Most current drivers use the tnl module exclusively to provide this
22 _tnl_Wakeup(). This function installs internal tnl functions into all
37 There is no explicit call to put the tnl module to sleep. Simply
67 - Direct the display list component of the tnl module to
69 passing the display list data directly into the tnl pipeline
72 This allows display lists to be replayed by the tnl module
95 stage is housed in the tnl context struct (this could be cleaner).
Dt_vb_fog.c145 TNLcontext *tnl = TNL_CONTEXT(ctx); in run_fog_stage() local
146 struct vertex_buffer *VB = &tnl->vb; in run_fog_stage()
221 if (tnl->_DoVertexFog) { in run_fog_stage()
240 TNLcontext *tnl = TNL_CONTEXT(ctx); in alloc_fog_data() local
247 _mesa_vector4f_alloc( &store->fogcoord, 0, tnl->vb.Size, 32 ); in alloc_fog_data()
Dt_vb_program.c130 TNLcontext *tnl = TNL_CONTEXT(ctx); in do_ndc_cliptest() local
131 struct vertex_buffer *VB = &tnl->vb; in do_ndc_cliptest()
140 if (tnl->NeedNdcCoords) { in do_ndc_cliptest()
313 TNLcontext *tnl = TNL_CONTEXT(ctx); in run_vp() local
315 struct vertex_buffer *VB = &tnl->vb; in run_vp()
356 init_machine(ctx, machine, tnl->CurInstance); in run_vp()
512 TNLcontext *tnl = TNL_CONTEXT(ctx); in init_vp() local
513 struct vertex_buffer *VB = &(tnl->vb); in init_vp()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_swtnl_t.c107 TNLcontext *tnl = TNL_CONTEXT(ctx); in swtnl_choose_attrs() local
108 struct tnl_clipspace *vtx = &tnl->clipspace; in swtnl_choose_attrs()
116 tnl->vb.AttribPtr[VERT_ATTRIB_POS] = tnl->vb.ClipPtr; in swtnl_choose_attrs()
126 if (tnl->render_inputs_bitset & BITFIELD64_BIT(i)) { in swtnl_choose_attrs()
130 fields = tnl->vb.AttribPtr[i]->size; in swtnl_choose_attrs()
318 TNLcontext *tnl = TNL_CONTEXT(ctx); in TAG() local
320 tnl->Driver.RunPipeline = _tnl_run_pipeline; in TAG()
321 tnl->Driver.Render.Interp = _tnl_interp; in TAG()
322 tnl->Driver.Render.CopyPV = _tnl_copy_pv; in TAG()
323 tnl->Driver.Render.ClippedPolygon = _tnl_RenderClippedPolygon; in TAG()
[all …]
Dnv04_render.c56 TNLcontext *tnl = TNL_CONTEXT(ctx); in swtnl_emit_attr() local
58 if (tnl->render_inputs_bitset & BITFIELD64_BIT(attr)) in swtnl_emit_attr()
73 TNLcontext *tnl = TNL_CONTEXT(ctx); in swtnl_choose_attrs() local
79 tnl->vb.AttribPtr[VERT_ATTRIB_POS] = tnl->vb.NdcPtr; in swtnl_choose_attrs()
265 TNLcontext *tnl = TNL_CONTEXT(ctx); in nv04_render_init() local
267 tnl->Driver.RunPipeline = _tnl_run_pipeline; in nv04_render_init()
268 tnl->Driver.Render.Interp = _tnl_interp; in nv04_render_init()
269 tnl->Driver.Render.CopyPV = _tnl_copy_pv; in nv04_render_init()
270 tnl->Driver.Render.ClippedPolygon = _tnl_RenderClippedPolygon; in nv04_render_init()
271 tnl->Driver.Render.ClippedLine = _tnl_RenderClippedLine; in nv04_render_init()
[all …]
/external/mesa3d/src/mesa/swrast_setup/
Dss_context.c113 TNLcontext *tnl = TNL_CONTEXT(ctx); in setup_vertex_format() local
121 tnl->render_inputs_bitset != swsetup->last_index_bitset) { in setup_vertex_format()
122 GLbitfield64 index_bitset = tnl->render_inputs_bitset; in setup_vertex_format()
186 TNLcontext *tnl = TNL_CONTEXT(ctx); in _swsetup_RenderStart() local
187 struct vertex_buffer *VB = &tnl->vb; in _swsetup_RenderStart()
233 TNLcontext *tnl = TNL_CONTEXT(ctx); in _swsetup_Wakeup() local
236 tnl->Driver.Render.Start = _swsetup_RenderStart; in _swsetup_Wakeup()
237 tnl->Driver.Render.Finish = _swsetup_RenderFinish; in _swsetup_Wakeup()
238 tnl->Driver.Render.PrimitiveNotify = _swsetup_RenderPrimitive; in _swsetup_Wakeup()
239 tnl->Driver.Render.Interp = _tnl_interp; in _swsetup_Wakeup()
[all …]
Dss_triangle.c241 TNLcontext *tnl = TNL_CONTEXT(ctx); in _swsetup_choose_trifuncs() local
261 tnl->Driver.Render.Triangle = tri_tab[ind]; in _swsetup_choose_trifuncs()
262 tnl->Driver.Render.Quad = quad_tab[ind]; in _swsetup_choose_trifuncs()
263 tnl->Driver.Render.Line = swsetup_line; in _swsetup_choose_trifuncs()
264 tnl->Driver.Render.Points = swsetup_points; in _swsetup_choose_trifuncs()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_swtcl.c93 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeonSetVertexFormat() local
94 struct vertex_buffer *VB = &tnl->vb; in radeonSetVertexFormat()
95 GLbitfield64 index_bitset = tnl->render_inputs_bitset; in radeonSetVertexFormat()
273 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeonChooseVertexState() local
292 if ((0 == (tnl->render_inputs_bitset & in radeonChooseVertexState()
413 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeon_run_render() local
414 struct vertex_buffer *VB = &tnl->vb; in radeon_run_render()
426 tnl->Driver.Render.Start( ctx ); in radeon_run_render()
446 tnl->Driver.Render.Finish( ctx ); in radeon_run_render()
693 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeonChooseRenderState() local
[all …]
Dradeon_tcl.c286 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeonEnsureEmitSize() local
287 struct vertex_buffer *VB = &tnl->vb; in radeonEnsureEmitSize()
358 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeon_run_tcl_render() local
359 struct vertex_buffer *VB = &tnl->vb; in radeon_run_tcl_render()
455 TNLcontext *tnl = TNL_CONTEXT(ctx); in transition_to_swtnl() local
466 tnl->Driver.NotifyMaterialChange = in transition_to_swtnl()
484 TNLcontext *tnl = TNL_CONTEXT(ctx); in transition_to_hwtnl() local
500 tnl->Driver.NotifyMaterialChange = radeonUpdateMaterial; in transition_to_hwtnl()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_swtcl.c81 TNLcontext *tnl = TNL_CONTEXT(ctx); in r200SetVertexFormat() local
82 struct vertex_buffer *VB = &tnl->vb; in r200SetVertexFormat()
83 GLbitfield64 index_bitset = tnl->render_inputs_bitset; in r200SetVertexFormat()
239 TNLcontext *tnl = TNL_CONTEXT(ctx); in r200ChooseVertexState() local
256 if ((0 == (tnl->render_inputs_bitset & BITFIELD64_RANGE(_TNL_ATTRIB_TEX0, _TNL_NUM_TEX))) in r200ChooseVertexState()
261 if (tnl->render_inputs_bitset & BITFIELD64_RANGE(_TNL_ATTRIB_TEX0, _TNL_NUM_TEX)) { in r200ChooseVertexState()
570 TNLcontext *tnl = TNL_CONTEXT(ctx); in r200ChooseRenderState() local
582 tnl->Driver.Render.Points = rast_tab[index].points; in r200ChooseRenderState()
583 tnl->Driver.Render.Line = rast_tab[index].line; in r200ChooseRenderState()
584 tnl->Driver.Render.ClippedLine = rast_tab[index].line; in r200ChooseRenderState()
[all …]
Dr200_tcl.c294 TNLcontext *tnl = TNL_CONTEXT(ctx); in r200EnsureEmitSize() local
295 struct vertex_buffer *VB = &tnl->vb; in r200EnsureEmitSize()
360 TNLcontext *tnl = TNL_CONTEXT(ctx); in r200_run_tcl_render() local
361 struct vertex_buffer *VB = &tnl->vb; in r200_run_tcl_render()
516 TNLcontext *tnl = TNL_CONTEXT(ctx); in transition_to_swtnl() local
525 tnl->Driver.NotifyMaterialChange = in transition_to_swtnl()
540 TNLcontext *tnl = TNL_CONTEXT(ctx); in transition_to_hwtnl() local
546 tnl->Driver.NotifyMaterialChange = r200UpdateMaterial; in transition_to_hwtnl()
/external/mesa3d/doxygen/
Dtnl.doxy8 PROJECT_NAME = "Mesa Transform and Lighting (tnl)"
12 INPUT = ../src/mesa/tnl/
27 HTML_OUTPUT = tnl
43 TAGFILES = tnl_dd.tag=../tnl \
50 GENERATE_TAGFILE = tnl.tag
Ddoxy.bat6 doxygen tnl.doxy
17 doxygen tnl.doxy
Dmath.doxy47 tnl.tag=../tnl \
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tris.c896 TNLcontext *tnl = TNL_CONTEXT(ctx); in intelRenderClippedPoly() local
905 tnl->Driver.Render.PrimTabElts[GL_POLYGON] (ctx, 0, n, in intelRenderClippedPoly()
913 tnl->Driver.Render.PrimitiveNotify(ctx, prim); in intelRenderClippedPoly()
919 TNLcontext *tnl = TNL_CONTEXT(ctx); in intelRenderClippedLine() local
921 tnl->Driver.Render.Line(ctx, ii, jj); in intelRenderClippedLine()
954 TNLcontext *tnl = TNL_CONTEXT(ctx); in intelChooseRenderState() local
1013 tnl->Driver.Render.Points = rast_tab[index].points; in intelChooseRenderState()
1014 tnl->Driver.Render.Line = rast_tab[index].line; in intelChooseRenderState()
1015 tnl->Driver.Render.Triangle = rast_tab[index].triangle; in intelChooseRenderState()
1016 tnl->Driver.Render.Quad = rast_tab[index].quad; in intelChooseRenderState()
[all …]
Dintel_render.c228 TNLcontext *tnl = TNL_CONTEXT(ctx); in intel_run_render() local
229 struct vertex_buffer *VB = &tnl->vb; in intel_run_render()
241 tnl->clipspace.new_inputs |= VERT_BIT_POS; in intel_run_render()
243 tnl->Driver.Render.Start(ctx); in intel_run_render()
257 tnl->Driver.Render.Finish(ctx); in intel_run_render()
/external/mesa3d/src/mesa/
Dsources.mak164 $(SRCDIR)tnl/t_context.c \
165 $(SRCDIR)tnl/t_pipeline.c \
166 $(SRCDIR)tnl/t_draw.c \
167 $(SRCDIR)tnl/t_rasterpos.c \
168 $(SRCDIR)tnl/t_vb_program.c \
169 $(SRCDIR)tnl/t_vb_render.c \
170 $(SRCDIR)tnl/t_vb_texgen.c \
171 $(SRCDIR)tnl/t_vb_texmat.c \
172 $(SRCDIR)tnl/t_vb_vertex.c \
173 $(SRCDIR)tnl/t_vb_fog.c \
[all …]
DSConscript193 'tnl/t_context.c',
194 'tnl/t_pipeline.c',
195 'tnl/t_draw.c',
196 'tnl/t_rasterpos.c',
197 'tnl/t_vb_program.c',
198 'tnl/t_vb_render.c',
199 'tnl/t_vb_texgen.c',
200 'tnl/t_vb_texmat.c',
201 'tnl/t_vb_vertex.c',
202 'tnl/t_vb_fog.c',
[all …]
/external/mesa3d/docs/
DRELNOTES-5.1187 tnl/t_eval_api.c - old per-vertex code
188 tnl/t_imm_alloc.c - old per-vertex code
189 tnl/t_imm_api.c - old per-vertex code
190 tnl/t_imm_debug.c - old per-vertex code
191 tnl/t_imm_dlist.c - old per-vertex code
192 tnl/t_imm_elt.c - old per-vertex code
193 tnl/t_imm_eval.c - old per-vertex code
194 tnl/t_imm_exec.c - old per-vertex code
195 tnl/t_imm_fixup.c - old per-vertex code
196 tnl/t_vtx_sse.c - old per-vertex code
[all …]

123