Home
last modified time | relevance | path

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

1234

/external/mesa3d/src/mesa/tnl/
Dt_context.c51 TNLcontext *tnl; in _tnl_CreateContext() local
56 ctx->swtnl_context = tnl = calloc(1, sizeof(TNLcontext)); in _tnl_CreateContext()
58 if (!tnl) { in _tnl_CreateContext()
64 tnl->vb.Size = ctx->Const.MaxArrayLockSize + MAX_CLIPPED_VERTICES; in _tnl_CreateContext()
75 _math_matrix_ctr(&tnl->_WindowMap); in _tnl_CreateContext()
77 tnl->NeedNdcCoords = GL_TRUE; in _tnl_CreateContext()
78 tnl->AllowVertexFog = GL_TRUE; in _tnl_CreateContext()
79 tnl->AllowPixelFog = GL_TRUE; in _tnl_CreateContext()
83 tnl->Driver.Render.PrimTabElts = _tnl_render_tab_elts; in _tnl_CreateContext()
84 tnl->Driver.Render.PrimTabVerts = _tnl_render_tab_verts; in _tnl_CreateContext()
[all …]
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_vb_render.c86 tnl->Driver.Render.Points( ctx, start, count )
121 TNLcontext *tnl = TNL_CONTEXT(ctx); \
122 struct vertex_buffer *VB = &tnl->vb; \
126 const tnl_line_func LineFunc = tnl->Driver.Render.Line; \
127 const tnl_triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \
128 const tnl_quad_func QuadFunc = tnl->Driver.Render.Quad; \
134 #define INIT(x) tnl->Driver.Render.PrimitiveNotify( ctx, x )
135 #define RESET_STIPPLE if (stipple) tnl->Driver.Render.ResetLineStipple( ctx )
156 TNLcontext *tnl = TNL_CONTEXT(ctx); in clip_elt_triangles() local
157 tnl_render_func render_tris = tnl->Driver.Render.PrimTabElts[GL_TRIANGLES]; in clip_elt_triangles()
[all …]
Dt_vb_light.c123 TNLcontext *tnl = TNL_CONTEXT(ctx); in validate_shine_table() local
124 struct tnl_shine_tab *list = tnl->_ShineTabList; in validate_shine_table()
164 if (tnl->_ShineTable[side]) in validate_shine_table()
165 tnl->_ShineTable[side]->refcount--; in validate_shine_table()
167 tnl->_ShineTable[side] = s; in validate_shine_table()
176 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_validate_shine_tables() local
180 if (!tnl->_ShineTable[0] || tnl->_ShineTable[0]->shininess != shininess) in _tnl_validate_shine_tables()
184 if (!tnl->_ShineTable[1] || tnl->_ShineTable[1]->shininess != shininess) in _tnl_validate_shine_tables()
279 TNLcontext *tnl = TNL_CONTEXT(ctx); in lookup_shininess() local
280 const struct tnl_shine_tab *tab = tnl->_ShineTable[face]; in lookup_shininess()
[all …]
Dt_draw.c49 TNLcontext *tnl = TNL_CONTEXT(ctx); in get_space() local
52 tnl->block[tnl->nr_blocks++] = space; in get_space()
59 TNLcontext *tnl = TNL_CONTEXT(ctx); in free_space() local
61 for (GLuint i = 0; i < tnl->nr_blocks; i++) in free_space()
62 free(tnl->block[i]); in free_space()
64 tnl->nr_blocks = 0; in free_space()
185 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_import_array() local
186 struct vertex_buffer *VB = &tnl->vb; in _tnl_import_array()
236 VB->AttribPtr[attr] = &tnl->tmp_inputs[attr]; in _tnl_import_array()
279 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()
169 tnl->Driver.Render.CopyPV( ctx, newvert, v1 ); in TAG()
179 tnl->Driver.Render.ClippedLine( ctx, v0, v1 ); in TAG()
188 TNLcontext *tnl = TNL_CONTEXT(ctx); in TAG() local
189 struct vertex_buffer *VB = &tnl->vb; in TAG()
190 tnl_interp_func interp = tnl->Driver.Render.Interp; in TAG()
241 tnl->Driver.Render.CopyPV( ctx, inlist[0], pv ); in TAG()
257 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.c146 TNLcontext *tnl = TNL_CONTEXT(ctx); in run_fog_stage() local
147 struct vertex_buffer *VB = &tnl->vb; in run_fog_stage()
222 if (tnl->_DoVertexFog) { in run_fog_stage()
241 TNLcontext *tnl = TNL_CONTEXT(ctx); in alloc_fog_data() local
248 _mesa_vector4f_alloc( &store->fogcoord, 0, tnl->vb.Size, 32 ); in alloc_fog_data()
Dt_vb_program.c129 TNLcontext *tnl = TNL_CONTEXT(ctx); in do_ndc_cliptest() local
130 struct vertex_buffer *VB = &tnl->vb; in do_ndc_cliptest()
139 if (tnl->NeedNdcCoords) { in do_ndc_cliptest()
294 TNLcontext *tnl = TNL_CONTEXT(ctx); in run_vp() local
296 struct vertex_buffer *VB = &tnl->vb; in run_vp()
332 init_machine(ctx, machine, tnl->CurInstance); in run_vp()
472 TNLcontext *tnl = TNL_CONTEXT(ctx); in init_vp() local
473 struct vertex_buffer *VB = &(tnl->vb); in init_vp()
/external/mesa3d/src/mesa/swrast_setup/
Dss_context.c114 TNLcontext *tnl = TNL_CONTEXT(ctx); in setup_vertex_format() local
122 tnl->render_inputs_bitset != swsetup->last_index_bitset) { in setup_vertex_format()
123 GLbitfield64 index_bitset = tnl->render_inputs_bitset; in setup_vertex_format()
171 tnl->_WindowMap.m, in setup_vertex_format()
187 TNLcontext *tnl = TNL_CONTEXT(ctx); in _swsetup_RenderStart() local
188 struct vertex_buffer *VB = &tnl->vb; in _swsetup_RenderStart()
234 TNLcontext *tnl = TNL_CONTEXT(ctx); in _swsetup_Wakeup() local
237 tnl->Driver.Render.Start = _swsetup_RenderStart; in _swsetup_Wakeup()
238 tnl->Driver.Render.Finish = _swsetup_RenderFinish; in _swsetup_Wakeup()
239 tnl->Driver.Render.PrimitiveNotify = _swsetup_RenderPrimitive; in _swsetup_Wakeup()
[all …]
Dss_triangle.c243 TNLcontext *tnl = TNL_CONTEXT(ctx); in _swsetup_choose_trifuncs() local
263 tnl->Driver.Render.Triangle = tri_tab[ind]; in _swsetup_choose_trifuncs()
264 tnl->Driver.Render.Quad = quad_tab[ind]; in _swsetup_choose_trifuncs()
265 tnl->Driver.Render.Line = swsetup_line; in _swsetup_choose_trifuncs()
266 tnl->Driver.Render.Points = swsetup_points; in _swsetup_choose_trifuncs()
/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/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_xdp_loop.c68 const struct iptnl_info *tnl, in set_ethhdr() argument
72 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
80 struct iptnl_info *tnl; in handle_ipv4() local
104 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
106 if (!tnl || tnl->family != AF_INET) in handle_ipv4()
124 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
133 iph->daddr = tnl->daddr.v4; in handle_ipv4()
134 iph->saddr = tnl->saddr.v4; in handle_ipv4()
153 struct iptnl_info *tnl; in handle_ipv6() local
174 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv6()
[all …]
Dtest_xdp.c72 const struct iptnl_info *tnl, in set_ethhdr() argument
76 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
84 struct iptnl_info *tnl; in handle_ipv4() local
108 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
110 if (!tnl || tnl->family != AF_INET) in handle_ipv4()
128 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
137 iph->daddr = tnl->daddr.v4; in handle_ipv4()
138 iph->saddr = tnl->saddr.v4; in handle_ipv4()
157 struct iptnl_info *tnl; in handle_ipv6() local
178 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv6()
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_swtcl.c91 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeonSetVertexFormat() local
92 struct vertex_buffer *VB = &tnl->vb; in radeonSetVertexFormat()
93 GLbitfield64 index_bitset = tnl->render_inputs_bitset; in radeonSetVertexFormat()
273 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeonChooseVertexState() local
295 if ((0 == (tnl->render_inputs_bitset & in radeonChooseVertexState()
414 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeon_run_render() local
415 struct vertex_buffer *VB = &tnl->vb; in radeon_run_render()
427 tnl->Driver.Render.Start( ctx ); in radeon_run_render()
447 tnl->Driver.Render.Finish( ctx ); in radeon_run_render()
694 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeonChooseRenderState() local
[all …]
Dradeon_tcl.c287 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeonEnsureEmitSize() local
288 struct vertex_buffer *VB = &tnl->vb; in radeonEnsureEmitSize()
359 TNLcontext *tnl = TNL_CONTEXT(ctx); in radeon_run_tcl_render() local
360 struct vertex_buffer *VB = &tnl->vb; in radeon_run_tcl_render()
456 TNLcontext *tnl = TNL_CONTEXT(ctx); in transition_to_swtnl() local
467 tnl->Driver.NotifyMaterialChange = in transition_to_swtnl()
485 TNLcontext *tnl = TNL_CONTEXT(ctx); in transition_to_hwtnl() local
501 tnl->Driver.NotifyMaterialChange = radeonUpdateMaterial; in transition_to_hwtnl()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_swtcl.c80 TNLcontext *tnl = TNL_CONTEXT(ctx); in r200SetVertexFormat() local
81 struct vertex_buffer *VB = &tnl->vb; in r200SetVertexFormat()
82 GLbitfield64 index_bitset = tnl->render_inputs_bitset; in r200SetVertexFormat()
238 TNLcontext *tnl = TNL_CONTEXT(ctx); in r200ChooseVertexState() local
258 if ((0 == (tnl->render_inputs_bitset & BITFIELD64_RANGE(_TNL_ATTRIB_TEX0, _TNL_NUM_TEX))) in r200ChooseVertexState()
264 if (tnl->render_inputs_bitset & BITFIELD64_RANGE(_TNL_ATTRIB_TEX0, _TNL_NUM_TEX)) { in r200ChooseVertexState()
572 TNLcontext *tnl = TNL_CONTEXT(ctx); in r200ChooseRenderState() local
588 tnl->Driver.Render.Points = rast_tab[index].points; in r200ChooseRenderState()
589 tnl->Driver.Render.Line = rast_tab[index].line; in r200ChooseRenderState()
590 tnl->Driver.Render.ClippedLine = rast_tab[index].line; in r200ChooseRenderState()
[all …]
Dr200_tcl.c293 TNLcontext *tnl = TNL_CONTEXT(ctx); in r200EnsureEmitSize() local
294 struct vertex_buffer *VB = &tnl->vb; in r200EnsureEmitSize()
359 TNLcontext *tnl = TNL_CONTEXT(ctx); in r200_run_tcl_render() local
360 struct vertex_buffer *VB = &tnl->vb; in r200_run_tcl_render()
515 TNLcontext *tnl = TNL_CONTEXT(ctx); in transition_to_swtnl() local
524 tnl->Driver.NotifyMaterialChange = in transition_to_swtnl()
539 TNLcontext *tnl = TNL_CONTEXT(ctx); in transition_to_hwtnl() local
545 tnl->Driver.NotifyMaterialChange = r200UpdateMaterial; in transition_to_hwtnl()
/external/mesa3d/src/mesa/
DMakefile.sources380 tnl/t_context.c \
381 tnl/t_context.h \
382 tnl/t_draw.c \
383 tnl/tnl.h \
384 tnl/t_pipeline.c \
385 tnl/t_pipeline.h \
386 tnl/t_rebase.c \
387 tnl/t_rebase.h \
388 tnl/t_split.c \
389 tnl/t_split_copy.c \
[all …]
Dmeson.build362 'tnl/t_context.c',
363 'tnl/t_context.h',
364 'tnl/t_draw.c',
365 'tnl/tnl.h',
366 'tnl/t_pipeline.c',
367 'tnl/t_pipeline.h',
368 'tnl/t_rebase.c',
369 'tnl/t_split.c',
370 'tnl/t_split_copy.c',
371 'tnl/t_split.h',
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tris.c890 TNLcontext *tnl = TNL_CONTEXT(ctx); in intelRenderClippedPoly() local
900 tnl->Driver.Render.PrimitiveNotify(ctx, prim); in intelRenderClippedPoly()
946 TNLcontext *tnl = TNL_CONTEXT(ctx); in intelChooseRenderState() local
1015 tnl->Driver.Render.Points = rast_tab[index].points; in intelChooseRenderState()
1016 tnl->Driver.Render.Line = rast_tab[index].line; in intelChooseRenderState()
1017 tnl->Driver.Render.Triangle = rast_tab[index].triangle; in intelChooseRenderState()
1018 tnl->Driver.Render.Quad = rast_tab[index].quad; in intelChooseRenderState()
1021 tnl->Driver.Render.PrimTabVerts = intel_render_tab_verts; in intelChooseRenderState()
1022 tnl->Driver.Render.PrimTabElts = intel_render_tab_elts; in intelChooseRenderState()
1023 tnl->Driver.Render.ClippedLine = line; /* from tritmp.h */ in intelChooseRenderState()
[all …]
Dintel_render.c224 TNLcontext *tnl = TNL_CONTEXT(ctx); in intel_run_render() local
225 struct vertex_buffer *VB = &tnl->vb; in intel_run_render()
237 tnl->clipspace.new_inputs |= VERT_BIT_POS; in intel_run_render()
239 tnl->Driver.Render.Start(ctx); in intel_run_render()
253 tnl->Driver.Render.Finish(ctx); in intel_run_render()
/external/mesa3d/doxygen/
Dtnl.doxy8 PROJECT_NAME = "Mesa Transform and Lighting (tnl)"
12 INPUT = ../src/mesa/tnl/
27 HTML_OUTPUT = tnl
49 GENERATE_TAGFILE = tnl.tag
/external/mesa3d/docs/relnotes/
D5.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 …]

1234