void fxAllocVB( GLcontext *ctx ) { fxMesaContext fxMesa = FX_CONTEXT(ctx); GLuint size = TNL_CONTEXT(ctx)->vb.Size; static int firsttime = 1; if (firsttime) { init_setup_tab(); firsttime = 0; } fxMesa->verts = (GrVertex *)ALIGN_MALLOC(size * sizeof(GrVertex), 32); fxMesa->SetupIndex = SETUP_XYZW|SETUP_RGBA; }
void tdfxInitVB( GLcontext *ctx ) { tdfxContextPtr fxMesa = TDFX_CONTEXT(ctx); GLuint size = TNL_CONTEXT(ctx)->vb.Size; static int firsttime = 1; if (firsttime) { init_setup_tab(); firsttime = 0; } fxMesa->verts = ALIGN_MALLOC(size * sizeof(tdfxVertex), 32); fxMesa->vertexFormat = TDFX_LAYOUT_TINY; fxMesa->SetupIndex = TDFX_XYZ_BIT|TDFX_RGBA_BIT; }
void i830InitVB( GLcontext *ctx ) { i830ContextPtr imesa = I830_CONTEXT(ctx); GLuint size = TNL_CONTEXT(ctx)->vb.Size; imesa->verts = (char *)ALIGN_MALLOC(size * 4 * 16, 32); { static int firsttime = 1; if (firsttime) { init_setup_tab(); firsttime = 0; } } }
void ffbInitVB( GLcontext *ctx ) { ffbContextPtr fmesa = FFB_CONTEXT(ctx); GLuint size = TNL_CONTEXT(ctx)->vb.Size; fmesa->verts = (ffb_vertex *)ALIGN_MALLOC(size * sizeof(ffb_vertex), 32); { static int firsttime = 1; if (firsttime) { init_setup_tab(); firsttime = 0; } } }
void mach64InitVB( GLcontext *ctx ) { mach64ContextPtr mmesa = MACH64_CONTEXT(ctx); GLuint size = TNL_CONTEXT(ctx)->vb.Size; mmesa->verts = (GLubyte *)ALIGN_MALLOC(size * 4 * 16, 32); { static int firsttime = 1; if (firsttime) { init_setup_tab(); firsttime = 0; } } }
void gammaInitVB( GLcontext *ctx ) { gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); GLuint size = TNL_CONTEXT(ctx)->vb.Size; gmesa->verts = (GLubyte *)ALIGN_MALLOC(size * 4 * 16, 32); { static int firsttime = 1; if (firsttime) { init_setup_tab(); firsttime = 0; gmesa->vertex_size = 16; /* FIXME - only one vertex setup */ } } }
void s3vInitVB( GLcontext *ctx ) { s3vContextPtr vmesa = S3V_CONTEXT(ctx); GLuint size = TNL_CONTEXT(ctx)->vb.Size; vmesa->verts = (char *)ALIGN_MALLOC(size * 4 * 16, 32); { static int firsttime = 1; if (firsttime) { init_setup_tab(); firsttime = 0; vmesa->vertex_stride_shift = 6 /* 4 */; /* FIXME - only one vertex setup */ } } }
void mgaInitVB( GLcontext *ctx ) { mgaContextPtr mmesa = MGA_CONTEXT(ctx); GLuint size = TNL_CONTEXT(ctx)->vb.Size; mmesa->verts = (char *)ALIGN_MALLOC(size * sizeof(mgaVertex), 32); { static int firsttime = 1; if (firsttime) { init_setup_tab(); firsttime = 0; } } mmesa->new_state |= MGA_NEW_WARP; mmesa->dirty |= MGA_UPLOAD_PIPE; mmesa->vertex_format = setup_tab[0].vertex_format; mmesa->vertex_size = setup_tab[0].vertex_size; mmesa->vertex_stride_shift = setup_tab[0].vertex_stride_shift; }