r500: remove warnings and only start on newer drms.
authorDave Airlie <airlied@redhat.com>
Wed, 28 May 2008 00:07:30 +0000 (10:07 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 28 May 2008 00:11:41 +0000 (10:11 +1000)
This removes lots of warnings to the user, and only allows the driver
to run on > .29 drms for r500 cards.

src/mesa/drivers/dri/radeon/radeon_screen.c

index c962d23..9ad95c3 100644 (file)
@@ -673,20 +673,17 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
    case PCI_CHIP_RC410_5A61:
    case PCI_CHIP_RC410_5A62:
       screen->chip_family = CHIP_FAMILY_RS400;
-      fprintf(stderr, "Warning, xpress200 detected.\n");
       break;
 
    case PCI_CHIP_RS690_791E:
    case PCI_CHIP_RS690_791F:
       screen->chip_family = CHIP_FAMILY_RS690;
-      fprintf(stderr, "Warning, RS690 detected, 3D support is incomplete.\n");
       break;
    case PCI_CHIP_RS740_796C:
    case PCI_CHIP_RS740_796D:
    case PCI_CHIP_RS740_796E:
    case PCI_CHIP_RS740_796F:
       screen->chip_family = CHIP_FAMILY_RS740;
-      fprintf(stderr, "Warning, RS740 detected, 3D support is incomplete.\n");
       break;
 
    case PCI_CHIP_R520_7100:
@@ -705,7 +702,6 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
    case PCI_CHIP_R520_710F:
       screen->chip_family = CHIP_FAMILY_R520;
       screen->chip_flags = RADEON_CHIPSET_TCL;
-      fprintf(stderr, "Warning, R520 detected, 3D HAHAHAHAHA!!.\n");
       break;
 
    case PCI_CHIP_RV515_7140:
@@ -748,7 +744,6 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
    case PCI_CHIP_RV515_7211:
       screen->chip_family = CHIP_FAMILY_RV515;
       screen->chip_flags = RADEON_CHIPSET_TCL;
-      fprintf(stderr, "Warning, RV515 detected, 3D HAHAHAHAHA!!.\n");
       break;
 
    case PCI_CHIP_RV530_71C0:
@@ -769,7 +764,6 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
    case PCI_CHIP_RV530_71DE:
       screen->chip_family = CHIP_FAMILY_RV530;
       screen->chip_flags = RADEON_CHIPSET_TCL;
-      fprintf(stderr, "Warning, RV530 detected, 3D HAHAHAHAHA!!.\n");
       break;
 
    case PCI_CHIP_R580_7240:
@@ -789,7 +783,6 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
    case PCI_CHIP_R580_7284:
       screen->chip_family = CHIP_FAMILY_R580;
       screen->chip_flags = RADEON_CHIPSET_TCL;
-      fprintf(stderr, "Warning, R580 detected, 3D HAHAHAHAHA!!.\n");
       break;
 
    case PCI_CHIP_RV570_7280:
@@ -806,7 +799,6 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
    case PCI_CHIP_RV560_7297:
       screen->chip_family = CHIP_FAMILY_RV560;
       screen->chip_flags = RADEON_CHIPSET_TCL;
-      fprintf(stderr, "Warning, RV560 detected, 3D HAHAHAHAHA!!.\n");
       break;
 
    default:
@@ -820,6 +812,11 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
       return NULL;
    }
 
+   if ((sPriv->drm_version.minor < 29) && (screen->chip_family >= CHIP_FAMILY_RV515)) {
+      fprintf(stderr, "R500 support requires a newer drm.\n");
+      return NULL;
+   }
+
    if (getenv("R300_NO_TCL"))
      screen->chip_flags &= ~RADEON_CHIPSET_TCL;