summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/radeon/drm/radeon_drm_winsys.c')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_winsys.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
index 3ac57d25b5..ba327b9b48 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
@@ -270,8 +270,13 @@ struct radeon_winsys *radeon_drm_winsys_create(int fd)
ws->fd = fd;
do_ioctls(ws);
- if (!is_r3xx(ws->pci_id)) {
- goto fail;
+ switch (ws->pci_id) {
+#define CHIPSET(pci_id, name, family) case pci_id:
+#include "radeon/r300_pci_ids.h"
+#undef CHIPSET
+ break;
+ default:
+ goto fail;
}
/* Create managers. */