Add infrastructure for t_vertex.c codegen. Add an example driver

for this which spits out C code for the generated functions.
This commit is contained in:
Keith Whitwell
2004-06-30 11:48:21 +00:00
parent 8e77da1cd7
commit 009aa3ef5e
7 changed files with 869 additions and 19 deletions

View File

@@ -124,5 +124,24 @@ extern void _tnl_invalidate_vertices( GLcontext *ctx, GLuint newinputs );
extern void _tnl_invalidate_vertex_state( GLcontext *ctx, GLuint new_state );
extern emit_func _tnl_codegen_emit( GLcontext *ctx );
#define REG_IN (0<<16)
#define REG_OUT (1<<16)
#define REG_VP (2<<16)
#define REG_TMP (3<<16)
#define REG_MASK (3<<16)
#define REG_OFFSET_MASK 0xffff
#define in( offset ) (REG_IN | (offset))
#define out( offset ) (REG_OUT | (offset))
#define vp( offset ) (REG_VP | (offset))
#define tmp( offset ) (REG_TMP | (offset))
extern void _tnl_init_c_codegen( struct tnl_clipspace_codegen *p );
#define GET_VERTEX_STATE(ctx) &(TNL_CONTEXT(ctx)->clipspace)
#endif