Lines Matching full:ctx
109 static void choose_emit_func( struct gl_context *ctx, GLuint count, GLubyte *dest)
111 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb;
112 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
136 vtx->codegen_emit(ctx);
140 _tnl_generate_hardwired_emit(ctx);
148 vtx->emit( ctx, count, dest );
153 static void choose_interp_func( struct gl_context *ctx,
158 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
161 (ctx->_TriangleCaps & (DD_TRI_LIGHT_TWOSIDE|DD_TRI_UNFILLED))) {
167 vtx->interp( ctx, t, edst, eout, ein, force_boundary );
171 static void choose_copy_pv_func( struct gl_context *ctx, GLuint edst, GLuint esrc )
173 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
176 (ctx->_TriangleCaps & (DD_TRI_LIGHT_TWOSIDE|DD_TRI_UNFILLED))) {
182 vtx->copy_pv( ctx, edst, esrc );
193 void _tnl_interp( struct gl_context *ctx,
198 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
199 vtx->interp( ctx, t, edst, eout, ein, force_boundary );
204 void _tnl_copy_pv( struct gl_context *ctx, GLuint edst, GLuint esrc )
206 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
207 vtx->copy_pv( ctx, edst, esrc );
215 void _tnl_get_attr( struct gl_context *ctx, const void *vin,
218 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
230 /* Else return the value from ctx->Current.
236 dest[0] = ctx->Point.Size;
239 memcpy( dest, ctx->Current.Attrib[attr], 4*sizeof(GLfloat));
246 void _tnl_set_attr( struct gl_context *ctx, void *vout,
249 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
263 void *_tnl_get_vertex( struct gl_context *ctx, GLuint nr )
265 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
270 void _tnl_invalidate_vertex_state( struct gl_context *ctx, GLuint new_state )
274 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
289 GLuint _tnl_install_attrs( struct gl_context *ctx, const struct tnl_attr_map *map,
293 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
364 void _tnl_invalidate_vertices( struct gl_context *ctx, GLuint newinputs )
366 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
374 void _tnl_notify_pipeline_output_change( struct gl_context *ctx )
376 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
381 static void adjust_input_ptrs( struct gl_context *ctx, GLint diff)
383 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb;
384 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
396 static void update_input_ptrs( struct gl_context *ctx, GLuint start )
398 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb;
399 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
428 void _tnl_build_vertices( struct gl_context *ctx,
433 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
434 update_input_ptrs( ctx, start );
435 vtx->emit( ctx, end - start,
443 void *_tnl_emit_vertices_to_buffer( struct gl_context *ctx,
448 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
450 update_input_ptrs(ctx, start);
453 vtx->emit( ctx, end - start, (GLubyte*) dest );
461 void *_tnl_emit_indexed_vertices_to_buffer( struct gl_context *ctx,
467 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
471 update_input_ptrs(ctx, oldIndex = elts[start++]);
472 vtx->emit( ctx, 1, cdest );
476 adjust_input_ptrs(ctx, elts[start] - oldIndex);
478 vtx->emit( ctx, 1, cdest);
486 void _tnl_init_vertices( struct gl_context *ctx,
490 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
492 _tnl_install_attrs( ctx, NULL, 0, NULL, 0 );
496 _tnl_free_vertices( ctx );
537 void _tnl_free_vertices( struct gl_context *ctx )
539 TNLcontext *tnl = TNL_CONTEXT(ctx);
541 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);