summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordok666 <dok666>2003-05-07 15:56:51 +0000
committerdok666 <dok666>2003-05-07 15:56:51 +0000
commit47cc88420ce151b8b11217251963f5d533291d57 (patch)
tree07a42caaec68349043a0ac93750d8ac2ac34ed7c
parent826ff39381af2596635afd9caef88374c8e31989 (diff)
Removed usleep(100) from MGAScreenInit().
Added AGP mode debug message.
-rw-r--r--src/mesa/drivers/dri/mga/server/mga_dri.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/mga/server/mga_dri.c b/src/mesa/drivers/dri/mga/server/mga_dri.c
index 1f69c2250a6..f872f6df338 100644
--- a/src/mesa/drivers/dri/mga/server/mga_dri.c
+++ b/src/mesa/drivers/dri/mga/server/mga_dri.c
@@ -145,20 +145,22 @@ static int MGADRIAgpInit(struct DRIDriverContextRec *ctx, MGAPtr pMga)
mode |= MGA_AGP_1X_MODE;
}
-#if 0
fprintf( stderr,
- "[agp] Mode 0x%08lx [AGP 0x%04x/0x%04x; Card 0x%04x/0x%04x]\n",
- mode, vendor, device,
- ctx->pciVendor,
- ctx->pciChipType );
-#endif
-
+ "[agp] Mode 0x%08lx [AGP 0x%04x/0x%04x]\n",
+ mode, vendor, device );
+
if ( drmAgpEnable( ctx->drmFD, mode ) < 0 ) {
fprintf( stderr, "[agp] AGP not enabled\n" );
drmAgpRelease( ctx->drmFD );
return 0;
}
+ mode = drmAgpGetMode( ctx->drmFD );
+
+ fprintf( stderr,
+ "[agp] Mode 0x%08lx [AGP 0x%04x/0x%04x]\n",
+ mode, vendor, device );
+
if ( pMga->Chipset == PCI_CHIP_MGAG200 ) {
switch ( pMga->agpMode ) {
case 2:
@@ -591,7 +593,6 @@ static int MGAScreenInit( struct DRIDriverContextRec *ctx, MGAPtr pMga )
int err;
MGADRIPtr pMGADRI;
- usleep(100);
//assert(!ctx->IsClient);
switch (ctx->bpp)