summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radeon_kms.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index aa4b1e33..e163e994 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -522,7 +522,19 @@ static Bool r600_get_tile_config(ScrnInfoPtr pScrn)
return FALSE;
}
- info->num_banks = (info->tile_config & 0xf0) >> 4;
+ switch((info->tile_config & 0xf0) >> 4) {
+ case 0:
+ info->num_banks = 4;
+ break;
+ case 1:
+ info->num_banks = 8;
+ break;
+ case 2:
+ info->num_banks = 16;
+ break;
+ default:
+ return FALSE;
+ }
switch ((info->tile_config & 0xf00) >> 8) {
case 0: