}
}
-
-/* Locks up engine - FIXME
-#define ENABLE_AGP_RINGBUF
-*/
-
-#ifdef ENABLE_AGP_RINGBUF
-
static void VIADRIRingBufferCleanup(DRIDriverContext *ctx)
{
VIAPtr pVia = VIAPTR(ctx);
VIADRIPtr pVIADRI = pVia->devPrivate;
- drmVIADMAInit ringBufInit;
+ drm_via_dma_init_t ringBufInit;
if (pVIADRI->ringBufActive) {
xf86DrvMsg(pScreen->myNum, X_INFO,
{
VIAPtr pVia = VIAPTR(ctx);
VIADRIPtr pVIADRI = pVia->devPrivate;
- drmVIADMAInit ringBufInit;
+ drm_via_dma_init_t ringBufInit;
drmVersionPtr drmVer;
pVIADRI->ringBufActive = 0;
return GL_TRUE;
}
-#endif
-
-
static int VIADRIAgpInit(const DRIDriverContext *ctx, VIAPtr pVia)
{
unsigned long agp_phys;
VIAPtr pVia = VIAPTR(ctx);
VIADRIPtr pVIADRI=(VIADRIPtr)pVia->devPrivate;
-#ifdef ENABLE_AGP_RINGBUF
VIADRIRingBufferCleanup(ctx);
-#endif
if (pVia->MapBase) {
xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] Unmapping MMIO registers\n");
#endif
VIADRIIrqInit(ctx);
-#ifdef ENABLE_AGP_RINGBUF
pVIADRI->ringBufActive = 0;
VIADRIRingBufferInit(ctx);
-#endif
return GL_TRUE;
}