struct dd_function_table functions;
nouveauContextPtr nmesa;
nouveauScreenPtr screen;
- int i;
/* Allocate the context */
nmesa = (nouveauContextPtr) CALLOC( sizeof(*nmesa) );
switch(nmesa->screen->card_type)
{
case NV_03:
+ //nv03TriInitFunctions( ctx );
+ break;
case NV_04:
case NV_05:
- default:
- //nv03TriInitFunctions( ctx );
+ //nv04TriInitFunctions( ctx );
break;
case NV_10:
case NV_20:
case NV_30:
case NV_40:
case G_70:
+ default:
nv10TriInitFunctions( ctx );
break;
}
ret = drmCommandWriteRead(nmesa->driFd, DRM_NOUVEAU_FIFO_INIT, &fifo_init, sizeof(fifo_init));
if (ret)
FATAL("Fifo initialization ioctl failed (returned %d)\n",ret);
- MESSAGE("Fifo init ok. Channel %d\n", fifo_init.channel);
- // XXX needs more stuff
+ MESSAGE("Fifo init ok. Using context %d\n", fifo_init.channel);
+
+ // XXX needs more stuff :
+ // - map the command buffer
+ // - map the fifo control regs
+ // - create the 3D object
+
}
void nouveauIoctlInitFunctions(struct dd_function_table *functions)
__DRIdrawablePrivate *dPriv = nmesa->driDrawable;
__DRIscreenPrivate *sPriv = nmesa->driScreen;
drm_nouveau_sarea_t *sarea = nmesa->sarea;
- int i;
drmGetLock( nmesa->driFd, nmesa->hHWContext, flags );