diff options
author | Alex Deucher <[email protected]> | 2010-11-22 17:39:54 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2010-11-22 17:39:54 -0500 |
commit | 271b7b5914d4ec0ddb93b469f618c4b69c1e5e69 (patch) | |
tree | 298ee35121252d5697724243336670d0bf29e161 /src/gallium/winsys/r600 | |
parent | bf9c80976fdd6bcbd29c959f6313115b2b07f5df (diff) |
r600g: fix some winsys functions to deal properly with evergreen
Are these functions actually used anywhere?
Diffstat (limited to 'src/gallium/winsys/r600')
-rw-r--r-- | src/gallium/winsys/r600/drm/r600.c | 10 | ||||
-rw-r--r-- | src/gallium/winsys/r600/drm/radeon_pciid.c | 15 |
2 files changed, 15 insertions, 10 deletions
diff --git a/src/gallium/winsys/r600/drm/r600.c b/src/gallium/winsys/r600/drm/r600.c index 0a4d2e791db..b22f9721738 100644 --- a/src/gallium/winsys/r600/drm/r600.c +++ b/src/gallium/winsys/r600/drm/r600.c @@ -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; diff --git a/src/gallium/winsys/r600/drm/radeon_pciid.c b/src/gallium/winsys/r600/drm/radeon_pciid.c index 08cc1c41e37..bd82158b325 100644 --- a/src/gallium/winsys/r600/drm/radeon_pciid.c +++ b/src/gallium/winsys/r600/drm/radeon_pciid.c @@ -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; } |