aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-01-06 21:19:13 -0500
committerDave Airlie <airlied@redhat.com>2011-01-06 23:11:19 -0500
commit936b27cce8fdb8ca50a593714963862586285094 (patch)
tree8e68e7979580735c6509f09526e3c60378819923 /drivers/gpu/drm
parent1fe183050f71ba183fe2d693bbef5fa605723043 (diff)
drm/radeon/kms: update display watermark calculations for DCE5
Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/radeon/evergreen.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
index b5bc7d038fd9..9c990c3f877f 100644
--- a/drivers/gpu/drm/radeon/evergreen.c
+++ b/drivers/gpu/drm/radeon/evergreen.c
@@ -401,16 +401,28 @@ static u32 evergreen_line_buffer_adjust(struct radeon_device *rdev,
401 case 0: 401 case 0:
402 case 4: 402 case 4:
403 default: 403 default:
404 return 3840 * 2; 404 if (ASIC_IS_DCE5(rdev))
405 return 4096 * 2;
406 else
407 return 3840 * 2;
405 case 1: 408 case 1:
406 case 5: 409 case 5:
407 return 5760 * 2; 410 if (ASIC_IS_DCE5(rdev))
411 return 6144 * 2;
412 else
413 return 5760 * 2;
408 case 2: 414 case 2:
409 case 6: 415 case 6:
410 return 7680 * 2; 416 if (ASIC_IS_DCE5(rdev))
417 return 8192 * 2;
418 else
419 return 7680 * 2;
411 case 3: 420 case 3:
412 case 7: 421 case 7:
413 return 1920 * 2; 422 if (ASIC_IS_DCE5(rdev))
423 return 2048 * 2;
424 else
425 return 1920 * 2;
414 } 426 }
415} 427}
416 428