From: Brian Paul Date: Tue, 25 Nov 2003 16:45:33 +0000 (+0000) Subject: Otto Solares' patch to add radeon 9200 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7939ed0e8e36ddea89cbc4076a05dd2502499a2a;p=mesa.git Otto Solares' patch to add radeon 9200 --- diff --git a/src/mesa/drivers/dri/radeon/server/radeon.h b/src/mesa/drivers/dri/radeon/server/radeon.h index 808289b140f..27967318131 100644 --- a/src/mesa/drivers/dri/radeon/server/radeon.h +++ b/src/mesa/drivers/dri/radeon/server/radeon.h @@ -67,6 +67,10 @@ #define PCI_CHIP_RADEON_QY 0x5159 #define PCI_CHIP_RADEON_QZ 0x515A #define PCI_CHIP_R200_Ql 0x516C +#define PCI_CHIP_RV280_Y_ 0x5960 +#define PCI_CHIP_RV280_Ya 0x5961 +#define PCI_CHIP_RV280_Yb 0x5962 +#define PCI_CHIP_RV280_Yc 0x5963 /** * \brief Chip families. @@ -84,6 +88,7 @@ typedef enum { CHIP_FAMILY_R200, CHIP_FAMILY_RV250, CHIP_FAMILY_M9, + CHIP_FAMILY_RV280, CHIP_FAMILY_R300 } RADEONChipFamily; diff --git a/src/mesa/drivers/dri/radeon/server/radeon_dri.c b/src/mesa/drivers/dri/radeon/server/radeon_dri.c index a37561457bc..e7414077edf 100644 --- a/src/mesa/drivers/dri/radeon/server/radeon_dri.c +++ b/src/mesa/drivers/dri/radeon/server/radeon_dri.c @@ -454,7 +454,8 @@ static int RADEONDRIKernelInit( const DRIDriverContext *ctx, if ( (info->ChipFamily == CHIP_FAMILY_R200) || (info->ChipFamily == CHIP_FAMILY_RV250) || - (info->ChipFamily == CHIP_FAMILY_M9) ) + (info->ChipFamily == CHIP_FAMILY_M9) || + (info->ChipFamily == CHIP_FAMILY_RV280) ) drmInfo.func = DRM_RADEON_INIT_R200_CP; else drmInfo.func = DRM_RADEON_INIT_CP; @@ -1002,6 +1003,13 @@ static int get_chipfamily_from_chipset( RADEONInfoPtr info ) info->ChipFamily = CHIP_FAMILY_M9; break; + case PCI_CHIP_RV280_Y_: + case PCI_CHIP_RV280_Ya: + case PCI_CHIP_RV280_Yb: + case PCI_CHIP_RV280_Yc: + info->ChipFamily = CHIP_FAMILY_RV280; + break; + case PCI_CHIP_R300_ND: case PCI_CHIP_R300_NE: case PCI_CHIP_R300_NF: