Add RV740 support
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 11 Jun 2009 22:24:41 +0000 (18:24 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 11 Jun 2009 22:24:41 +0000 (18:24 -0400)
src/mesa/drivers/dri/r600/r700_state.c
src/mesa/drivers/dri/radeon/radeon_chipset.h
src/mesa/drivers/dri/radeon/radeon_screen.c

index cf1383d5ebefed0ddefa208179b6dd7160287177..404e946f7caf056905b3058999a1fd9776cfa1c2 100644 (file)
@@ -909,7 +909,7 @@ static void r700InitSQConfig(GLcontext * ctx)
            num_es_stack_entries = 0;
            break;
     case CHIP_FAMILY_RV730:
-           //case CHIP_FAMILY_RV740:
+    case CHIP_FAMILY_RV740:
            num_ps_gprs = 84;
            num_vs_gprs = 36;
            num_temp_gprs = 4;
index f7fa3d3e09dbe6b158f09adbd0e6b4586ca4995b..0a6a2df35b811e95ada41a75242a7a494255a7f8 100644 (file)
 #define PCI_CHIP_RV710_9553             0x9553
 #define PCI_CHIP_RV710_9555             0x9555
 
+#define PCI_CHIP_RV740_94A0             0x94A0
+#define PCI_CHIP_RV740_94A1             0x94A1
+#define PCI_CHIP_RV740_94B1             0x94B1
+#define PCI_CHIP_RV740_94B3             0x94B3
+#define PCI_CHIP_RV740_94B5             0x94B5
+
 enum {
    CHIP_FAMILY_R100,
    CHIP_FAMILY_RV100,
@@ -411,6 +417,7 @@ enum {
    CHIP_FAMILY_RV770,
    CHIP_FAMILY_RV730,
    CHIP_FAMILY_RV710,
+   CHIP_FAMILY_RV740,
    CHIP_FAMILY_LAST
 };
 
index da18996c0f59abfb82d77e648c62c0cb562a9ec4..a0e1b131781ebf27a1299b0dee5321bc62f7455f 100644 (file)
@@ -904,6 +904,15 @@ static int radeon_set_screen_flags(radeonScreenPtr screen, int device_id)
       screen->chip_flags = RADEON_CHIPSET_TCL;
       break;
 
+   case PCI_CHIP_RV740_94A0:
+   case PCI_CHIP_RV740_94A1:
+   case PCI_CHIP_RV740_94B1:
+   case PCI_CHIP_RV740_94B3:
+   case PCI_CHIP_RV740_94B5:
+      screen->chip_family = CHIP_FAMILY_RV740;
+      screen->chip_flags = RADEON_CHIPSET_TCL;
+      break;
+
    default:
       fprintf(stderr, "unknown chip id 0x%x, can't guess.\n",
              device_id);