summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-04-08 13:10:01 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-05-08 12:03:35 -0400
commit031cacafb6b7de4226d13b444c195761bc934f43 (patch)
tree3342deafdaeb42692e418a80b711b2c23d2952b0 /src
parent1b02b93895c31a0c9d641e47b46dce43b40edd97 (diff)
R6xx/R7xx: set proper 3D client driver name for r600
Diffstat (limited to 'src')
-rw-r--r--src/radeon_dri.c9
-rw-r--r--src/radeon_version.h1
2 files changed, 6 insertions, 4 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index f6c62616..19f7abec 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -1556,12 +1556,13 @@ Bool RADEONDRIScreenInit(ScreenPtr pScreen)
info->dri->pDRIInfo = pDRIInfo;
pDRIInfo->drmDriverName = RADEON_DRIVER_NAME;
- if ( (info->ChipFamily >= CHIP_FAMILY_R300) ) {
+ if ( (info->ChipFamily >= CHIP_FAMILY_R600) )
+ pDRIInfo->clientDriverName = R600_DRIVER_NAME;
+ else if ( (info->ChipFamily >= CHIP_FAMILY_R300) )
pDRIInfo->clientDriverName = R300_DRIVER_NAME;
- } else
- if ( info->ChipFamily >= CHIP_FAMILY_R200 )
+ else if ( info->ChipFamily >= CHIP_FAMILY_R200 )
pDRIInfo->clientDriverName = R200_DRIVER_NAME;
- else
+ else
pDRIInfo->clientDriverName = RADEON_DRIVER_NAME;
if (xf86LoaderCheckSymbol("DRICreatePCIBusID")) {
diff --git a/src/radeon_version.h b/src/radeon_version.h
index 5717eade..129046d7 100644
--- a/src/radeon_version.h
+++ b/src/radeon_version.h
@@ -38,6 +38,7 @@
#define RADEON_DRIVER_NAME "radeon"
#define R200_DRIVER_NAME "r200"
#define R300_DRIVER_NAME "r300"
+#define R600_DRIVER_NAME "r600"
#define RADEON_VERSION_MAJOR PACKAGE_VERSION_MAJOR
#define RADEON_VERSION_MINOR PACKAGE_VERSION_MINOR