From 0032c80bf30bab189204e3e6929e18a19d753138 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Thu, 10 Apr 2008 14:35:00 -0400 Subject: RADEON: store tcl status in driver rec --- src/radeon.h | 1 + src/radeon_driver.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) (limited to 'src') diff --git a/src/radeon.h b/src/radeon.h index 122a9dd3..feff48fc 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -762,6 +762,7 @@ typedef struct { void *fb_shadow; int num_gb_pipes; + Bool has_tcl; } RADEONInfoRec, *RADEONInfoPtr; #define RADEONWaitForFifo(pScrn, entries) \ diff --git a/src/radeon_driver.c b/src/radeon_driver.c index d5595eaa..3d4f05f2 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -1785,6 +1785,23 @@ static Bool RADEONPreInitChipType(ScrnInfoPtr pScrn) if (!xf86LoadSubModule(pScrn, "shadow")) return FALSE; } + + + if ((info->ChipFamily == CHIP_FAMILY_RS100) || + (info->ChipFamily == CHIP_FAMILY_RS200) || + (info->ChipFamily == CHIP_FAMILY_RS300) || + (info->ChipFamily == CHIP_FAMILY_RS400) || + (info->ChipFamily == CHIP_FAMILY_RS690) || + (info->ChipFamily == CHIP_FAMILY_RS740)) + info->has_tcl = FALSE; + else { + /* need to sort out why PVS has issues on RV515 */ + if (info->ChipFamily == CHIP_FAMILY_RV515) + info->has_tcl = FALSE; + else + info->has_tcl = TRUE; + } + return TRUE; } -- cgit v1.2.3