build fixes and enable agp dma
This commit is contained in:
@@ -126,18 +126,11 @@ static void VIADRIIrqExit( DRIDriverContext *ctx ) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 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,
|
||||
@@ -156,7 +149,7 @@ static int VIADRIRingBufferInit(DRIDriverContext *ctx)
|
||||
{
|
||||
VIAPtr pVia = VIAPTR(ctx);
|
||||
VIADRIPtr pVIADRI = pVia->devPrivate;
|
||||
drmVIADMAInit ringBufInit;
|
||||
drm_via_dma_init_t ringBufInit;
|
||||
drmVersionPtr drmVer;
|
||||
|
||||
pVIADRI->ringBufActive = 0;
|
||||
@@ -199,9 +192,6 @@ static int VIADRIRingBufferInit(DRIDriverContext *ctx)
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
static int VIADRIAgpInit(const DRIDriverContext *ctx, VIAPtr pVia)
|
||||
{
|
||||
unsigned long agp_phys;
|
||||
@@ -456,9 +446,7 @@ VIADRICloseScreen(DRIDriverContext * ctx)
|
||||
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");
|
||||
@@ -527,10 +515,8 @@ VIADRIFinishScreenInit(DRIDriverContext * ctx)
|
||||
#endif
|
||||
VIADRIIrqInit(ctx);
|
||||
|
||||
#ifdef ENABLE_AGP_RINGBUF
|
||||
pVIADRI->ringBufActive = 0;
|
||||
VIADRIRingBufferInit(ctx);
|
||||
#endif
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
@@ -36,21 +36,6 @@
|
||||
|
||||
/*#define VIA_SERIES(chip) (chip == VIA_CLE266)*/
|
||||
|
||||
|
||||
/* Chip tags. These are used to group the adapters into
|
||||
* related families.
|
||||
*/
|
||||
|
||||
enum VIACHIPTAGS {
|
||||
VIA_UNKNOWN = 0,
|
||||
VIA_CLE266,
|
||||
VIA_KM400,
|
||||
VIA_K8M800,
|
||||
VIA_PM800,
|
||||
VIA_LAST
|
||||
};
|
||||
|
||||
|
||||
#define PCI_VIA_VENDOR_ID 0x1106
|
||||
|
||||
#define PCI_CHIP_CLE3122 0x3122
|
||||
|
||||
Reference in New Issue
Block a user