summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
authorAlex Deucher <alex@samba.(none)>2008-03-19 12:31:51 -0400
committerAlex Deucher <alex@samba.(none)>2008-03-19 12:31:51 -0400
commit4a445a3e8c4c5ecd9d4ef8daa26906c3ceaa94a1 (patch)
treedae96a1075c7595951f89d23bb27cd6dd915a26e /src/radeon.h
parent85d0c9e8d22ccc72bec87b3fd44da5d7609293e0 (diff)
RADEON: add new macros to distinguish between R3xx and R5xx 3D
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/radeon.h b/src/radeon.h
index a67f375c..8ebb3b3d 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -271,7 +271,7 @@ typedef enum {
CHIP_FAMILY_RV570, /* rv570 */
CHIP_FAMILY_RS690,
CHIP_FAMILY_RS740,
- CHIP_FAMILY_R600, /* r60 */
+ CHIP_FAMILY_R600, /* r600 */
CHIP_FAMILY_R630,
CHIP_FAMILY_RV610,
CHIP_FAMILY_RV630,
@@ -303,6 +303,23 @@ typedef enum {
#define IS_DCE3_VARIANT ((info->ChipFamily >= CHIP_FAMILY_RV620))
+#define IS_R500_3D ((info->ChipFamily == CHIP_FAMILY_RV515) || \
+ (info->ChipFamily == CHIP_FAMILY_R520) || \
+ (info->ChipFamily == CHIP_FAMILY_RV530) || \
+ (info->ChipFamily == CHIP_FAMILY_R580) || \
+ (info->ChipFamily == CHIP_FAMILY_RV560) || \
+ (info->ChipFamily == CHIP_FAMILY_RV570))
+
+#define IS_R300_3D ((info->ChipFamily == CHIP_FAMILY_R300) || \
+ (info->ChipFamily == CHIP_FAMILY_RV350) || \
+ (info->ChipFamily == CHIP_FAMILY_R350) || \
+ (info->ChipFamily == CHIP_FAMILY_RV380) || \
+ (info->ChipFamily == CHIP_FAMILY_R420) || \
+ (info->ChipFamily == CHIP_FAMILY_RV410) || \
+ (info->ChipFamily == CHIP_FAMILY_RS690) || \
+ (info->ChipFamily == CHIP_FAMILY_RS740) || \
+ (info->ChipFamily == CHIP_FAMILY_RS400))
+
/*
* Errata workarounds
*/