initial r400 support: r400 cards are treated as RV350 for now.
authorRune Petersen <rune@megahurts.dk>
Sat, 12 Feb 2005 21:29:51 +0000 (21:29 +0000)
committerRune Petersen <rune@megahurts.dk>
Sat, 12 Feb 2005 21:29:51 +0000 (21:29 +0000)
src/mesa/drivers/dri/r300/radeon_screen.c
src/mesa/drivers/dri/r300/radeon_screen.h

index c6c52c11df168e5e9b52df0933d5e74c3d707f47..aab5ac425fd73603903f0f2325a21981e3ccab6b 100644 (file)
@@ -203,6 +203,7 @@ static const struct dri_debug_control debug_control[] = {
 #define PCI_CHIP_R300_NF               0x4E46
 #define PCI_CHIP_R300_NG               0x4E47
 #define PCI_CHIP_R350_NH                0x4E48
+#define PCI_CHIP_R420_JK                0x4a4b
 #endif
 
 #ifdef USE_NEW_INTERFACE
@@ -382,6 +383,10 @@ static radeonScreenPtr radeonCreateScreen(__DRIscreenPrivate * sPriv)
                screen->chipset = RADEON_CHIP_R300;
                break;
 
+       case PCI_CHIP_R420_JK:
+               screen->chipset = RADEON_CHIP_R420;
+               break;
+
        default:
                fprintf(stderr,
                        "Unknown device ID %04X, please report. Assuming plain R300.\n",
index a1a019162ab60bc83a4cf2b83df6c440e7818949..ac8471feaa36f3387c89e85f4b3f87658d94a30c 100644 (file)
@@ -54,6 +54,7 @@ typedef struct {
 #define RADEON_CHIP_REAL_R200          1
 #define RADEON_CHIP_R300               2
 #define RADEON_CHIP_RV350              3
+#define RADEON_CHIP_R420               4
 #define RADEON_CHIP_MASK               0x0f
 
 #define RADEON_CHIPSET_TCL             (1 << 8)