r600g: fix some winsys functions to deal properly with evergreen
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 22 Nov 2010 22:39:54 +0000 (17:39 -0500)
committerAlex Deucher <alexdeucher@gmail.com>
Mon, 22 Nov 2010 22:39:54 +0000 (17:39 -0500)
Are these functions actually used anywhere?

src/gallium/winsys/r600/drm/r600.c
src/gallium/winsys/r600/drm/radeon_pciid.c

index 0a4d2e7..b22f972 100644 (file)
@@ -93,6 +93,11 @@ struct radeon *r600_new(int fd, unsigned device)
        case CHIP_RV730:
        case CHIP_RV710:
        case CHIP_RV740:
+       case CHIP_CEDAR:
+       case CHIP_REDWOOD:
+       case CHIP_JUNIPER:
+       case CHIP_CYPRESS:
+       case CHIP_HEMLOCK:
                break;
        case CHIP_R100:
        case CHIP_RV100:
@@ -121,11 +126,6 @@ struct radeon *r600_new(int fd, unsigned device)
        case CHIP_RV560:
        case CHIP_RV570:
        case CHIP_R580:
-       case CHIP_CEDAR:
-       case CHIP_REDWOOD:
-       case CHIP_JUNIPER:
-       case CHIP_CYPRESS:
-       case CHIP_HEMLOCK:
        default:
                R600_ERR("unknown or unsupported chipset 0x%04X\n", r600->device);
                break;
index 08cc1c4..bd82158 100644 (file)
@@ -472,6 +472,11 @@ int radeon_is_family_compatible(unsigned family1, unsigned family2)
        case CHIP_RV730:
        case CHIP_RV710:
        case CHIP_RV740:
+       case CHIP_CEDAR:
+       case CHIP_REDWOOD:
+       case CHIP_JUNIPER:
+       case CHIP_CYPRESS:
+       case CHIP_HEMLOCK:
                switch (family2) {
                case CHIP_R600:
                case CHIP_RV610:
@@ -485,6 +490,11 @@ int radeon_is_family_compatible(unsigned family1, unsigned family2)
                case CHIP_RV730:
                case CHIP_RV710:
                case CHIP_RV740:
+               case CHIP_CEDAR:
+               case CHIP_REDWOOD:
+               case CHIP_JUNIPER:
+               case CHIP_CYPRESS:
+               case CHIP_HEMLOCK:
                        return 1;
                default:
                        return 0;
@@ -517,11 +527,6 @@ int radeon_is_family_compatible(unsigned family1, unsigned family2)
        case CHIP_RV560:
        case CHIP_RV570:
        case CHIP_R580:
-       case CHIP_CEDAR:
-       case CHIP_REDWOOD:
-       case CHIP_JUNIPER:
-       case CHIP_CYPRESS:
-       case CHIP_HEMLOCK:
        default:
                return 0;
        }