/* Vertex state */
GLuint vertex_size;
+ char *verts;
struct tnl_attr_map vertex_attrs[VERT_ATTRIB_MAX];
GLuint vertex_attr_count;
}
_swsetup_Wakeup(ctx);
- nmesa->renderIndex = ~0;
+ nmesa->render_index = ~0;
}
}
else {
if (oldfallback == bit) {
_swrast_flush( ctx );
- nouveauInitTriFunctions(ctx);
+ if (nmesa->screen->card_type<NV_10) {
+ //nv03TriInitFunctions(ctx);
+ } else {
+ nv10TriInitFunctions(ctx);
+ }
_tnl_invalidate_vertex_state( ctx, ~0 );
_tnl_invalidate_vertices( ctx, ~0 );
_tnl_install_attrs( ctx,
nmesa->vertex_attrs,
nmesa->vertex_attr_count,
- nmesa->ViewportMatrix.m, 0 );
+ nmesa->viewport.m, 0 );
}
}
}
{
struct nouveau_context *nmesa = NOUVEAU_CONTEXT(ctx);
- if (nmesa->newState) {
- nmesa->newRenderState |= nmesa->newState;
+ if (nmesa->new_state) {
+ nmesa->new_render_state |= nmesa->new_state;
}
_tnl_run_pipeline( ctx );
index = NOUVEAU_MAX_TRIFUNC; /* flat specular */
}
- if (nmesa->renderIndex != index) {
- nmesa->renderIndex = index;
+ if (nmesa->render_index != index) {
+ nmesa->render_index = index;
tnl->Driver.Render.Points = rast_tab[index].points;
tnl->Driver.Render.Line = rast_tab[index].line;
/* Initialization. */
/**********************************************************************/
-void nouveauTriInitFunctions(GLcontext *ctx)
+void nv10TriInitFunctions(GLcontext *ctx)
{
struct nouveau_context *nmesa = NOUVEAU_CONTEXT(ctx);
TNLcontext *tnl = TNL_CONTEXT(ctx);
extern void nv10Fallback( GLcontext *ctx, GLuint bit, GLboolean mode );
extern void nv10FinishPrimitive(struct nouveau_context *nmesa);
extern void nv10RenderStart(GLcontext *ctx);
+extern void nv10TriInitFunctions(GLcontext *ctx);
#define FALLBACK( nmesa, bit, mode ) nouveauFallback( nmesa->glCtx, bit, mode )
#endif /* __NV10_SWTCL_H__ */