• Home
  • Raw
  • Download

Lines Matching refs:tnl

51    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()
85 tnl->Driver.NotifyMaterialChange = _tnl_validate_shine_tables; in _tnl_CreateContext()
87 tnl->nr_blocks = 0; in _tnl_CreateContext()
90 tnl->_ShineTabList = MALLOC_STRUCT( tnl_shine_tab ); in _tnl_CreateContext()
91 make_empty_list( tnl->_ShineTabList ); in _tnl_CreateContext()
97 insert_at_tail( tnl->_ShineTabList, s ); in _tnl_CreateContext()
104 _tnl_init_inputs(&tnl->draw_arrays); in _tnl_CreateContext()
114 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_DestroyContext() local
116 _math_matrix_dtr(&tnl->_WindowMap); in _tnl_DestroyContext()
119 foreach_s( s, tmps, tnl->_ShineTabList ) { in _tnl_DestroyContext()
122 free( tnl->_ShineTabList ); in _tnl_DestroyContext()
126 free(tnl); in _tnl_DestroyContext()
134 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_InvalidateState() local
140 assert(tnl->AllowVertexFog || tnl->AllowPixelFog); in _tnl_InvalidateState()
141 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_InvalidateState()
142 || !tnl->AllowPixelFog) && !fp; in _tnl_InvalidateState()
145 tnl->pipeline.new_state |= new_state; in _tnl_InvalidateState()
150 tnl->render_inputs_bitset = BITFIELD64_BIT(_TNL_ATTRIB_POS); in _tnl_InvalidateState()
153 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_COLOR0); in _tnl_InvalidateState()
157 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_COLOR1); in _tnl_InvalidateState()
163 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_TEX(i)); in _tnl_InvalidateState()
171 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_FOG); in _tnl_InvalidateState()
176 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_EDGEFLAG); in _tnl_InvalidateState()
179 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_TEX0); in _tnl_InvalidateState()
182 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_POINTSIZE); in _tnl_InvalidateState()
190 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_GENERIC(i)); in _tnl_InvalidateState()
198 _math_matrix_viewport(&tnl->_WindowMap, scale, translate, in _tnl_InvalidateState()
230 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_need_projected_coords() local
231 tnl->NeedNdcCoords = mode; in _tnl_need_projected_coords()
237 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_allow_vertex_fog() local
238 tnl->AllowVertexFog = value; in _tnl_allow_vertex_fog()
239 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_allow_vertex_fog()
240 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current; in _tnl_allow_vertex_fog()
247 TNLcontext *tnl = TNL_CONTEXT(ctx); in _tnl_allow_pixel_fog() local
248 tnl->AllowPixelFog = value; in _tnl_allow_pixel_fog()
249 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_allow_pixel_fog()
250 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current; in _tnl_allow_pixel_fog()