diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-10-08 04:44:09 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-11 23:42:14 -0400 |
commit | f30f37def4c72e5df8d949022b806e5a4e99bbcb (patch) | |
tree | 31753243c6e90e0d7aeda291bbd0ae9532e75fde /drivers/gpu/drm/radeon/atombios_crtc.c | |
parent | e33497aaaef5ec9998cf7b007b13d74bb41be74e (diff) |
drm/radeon/kms: Update memory bandwidth requirements in mode_set_base hook.
The hook may change the number of bytes per pixel being scanned out, which
affects the CRTC memory bandwidth requirements. E.g. booting in 8bpp and then
running X in 32bpp would result in the bandwidth requirements being
underestimated for the latter and consequently in CRTC FIFO underruns causing
visible artifacts with 3D intensive workloads.
ATOM changes only compile-tested.
Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/atombios_crtc.c')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_crtc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 14fa9701aeb3..38a87cc6eb12 100644 --- a/drivers/gpu/drm/radeon/atombios_crtc.c +++ b/drivers/gpu/drm/radeon/atombios_crtc.c | |||
@@ -563,6 +563,10 @@ int atombios_crtc_set_base(struct drm_crtc *crtc, int x, int y, | |||
563 | radeon_fb = to_radeon_framebuffer(old_fb); | 563 | radeon_fb = to_radeon_framebuffer(old_fb); |
564 | radeon_gem_object_unpin(radeon_fb->obj); | 564 | radeon_gem_object_unpin(radeon_fb->obj); |
565 | } | 565 | } |
566 | |||
567 | /* Bytes per pixel may have changed */ | ||
568 | radeon_bandwidth_update(rdev); | ||
569 | |||
566 | return 0; | 570 | return 0; |
567 | } | 571 | } |
568 | 572 | ||
@@ -701,7 +705,6 @@ int atombios_crtc_mode_set(struct drm_crtc *crtc, | |||
701 | } | 705 | } |
702 | atombios_overscan_setup(crtc, mode, adjusted_mode); | 706 | atombios_overscan_setup(crtc, mode, adjusted_mode); |
703 | atombios_scaler_setup(crtc); | 707 | atombios_scaler_setup(crtc); |
704 | radeon_bandwidth_update(rdev); | ||
705 | return 0; | 708 | return 0; |
706 | } | 709 | } |
707 | 710 | ||