1
From 69f080cefced8b3395cdf179c107303a1013d196 Mon Sep 17 00:00:00 2001
2
From: Alex Deucher <alexdeucher@gmail.com>
3
Date: Wed, 25 Feb 2009 22:30:56 +0000
4
Subject: R300: Add support for RS600 chips
7
diff --git a/src/mesa/drivers/dri/radeon/radeon_chipset.h b/src/mesa/drivers/dri/radeon/radeon_chipset.h
8
index 55a73ea..f6bd1eb 100644
9
--- a/src/mesa/drivers/dri/radeon/radeon_chipset.h
10
+++ b/src/mesa/drivers/dri/radeon/radeon_chipset.h
12
#define PCI_CHIP_RS350_7835 0x7835
13
#define PCI_CHIP_RS690_791E 0x791E
14
#define PCI_CHIP_RS690_791F 0x791F
15
+#define PCI_CHIP_RS600_793F 0x793F
16
+#define PCI_CHIP_RS600_7941 0x7941
17
+#define PCI_CHIP_RS600_7942 0x7942
18
#define PCI_CHIP_RS740_796C 0x796C
19
#define PCI_CHIP_RS740_796D 0x796D
20
#define PCI_CHIP_RS740_796E 0x796E
21
@@ -270,6 +273,7 @@ enum {
29
diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c
30
index 56c22fa..f7cba50 100644
31
--- a/src/mesa/drivers/dri/radeon/radeon_screen.c
32
+++ b/src/mesa/drivers/dri/radeon/radeon_screen.c
33
@@ -685,6 +685,12 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
34
screen->chip_family = CHIP_FAMILY_RS400;
37
+ case PCI_CHIP_RS600_793F:
38
+ case PCI_CHIP_RS600_7941:
39
+ case PCI_CHIP_RS600_7942:
40
+ screen->chip_family = CHIP_FAMILY_RS600;
43
case PCI_CHIP_RS690_791E:
44
case PCI_CHIP_RS690_791F:
45
screen->chip_family = CHIP_FAMILY_RS690;
46
@@ -843,7 +849,7 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
47
ret = radeonGetParam( sPriv->fd, RADEON_PARAM_FB_LOCATION,
50
- if (screen->chip_family < CHIP_FAMILY_RS690)
51
+ if (screen->chip_family < CHIP_FAMILY_RS600)
52
screen->fbLocation = ( INREG( RADEON_MC_FB_LOCATION ) & 0xffff) << 16;
55
@@ -854,7 +860,7 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
56
screen->fbLocation = (temp & 0xffff) << 16;
59
- if (screen->chip_family >= CHIP_FAMILY_RV515) {
60
+ if (screen->chip_family >= CHIP_FAMILY_R300) {
61
ret = radeonGetParam( sPriv->fd, RADEON_PARAM_NUM_GB_PIPES,