diff options
author | Alex Deucher <[email protected]> | 2009-06-11 18:24:41 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2009-06-11 18:24:41 -0400 |
commit | 917f8bc1a85e61311cef6478127b387df70fba14 (patch) | |
tree | 67014fb6f8b317755df58a7aa2e52bc8bf6524f5 /src/mesa/drivers/dri | |
parent | 1d8d4cad6a30b994f5bea6873525966a965c5997 (diff) |
Add RV740 support
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_state.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_chipset.h | 7 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_screen.c | 9 |
3 files changed, 17 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c index cf1383d5ebe..404e946f7ca 100644 --- a/src/mesa/drivers/dri/r600/r700_state.c +++ b/src/mesa/drivers/dri/r600/r700_state.c @@ -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; diff --git a/src/mesa/drivers/dri/radeon/radeon_chipset.h b/src/mesa/drivers/dri/radeon/radeon_chipset.h index f7fa3d3e09d..0a6a2df35b8 100644 --- a/src/mesa/drivers/dri/radeon/radeon_chipset.h +++ b/src/mesa/drivers/dri/radeon/radeon_chipset.h @@ -375,6 +375,12 @@ #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 }; diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index da18996c0f5..a0e1b131781 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c @@ -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); |