drm/radeon/kms: Update memory bandwidth requirements in mode_set_base hook.
authorMichel Dänzer <daenzer@vmware.com>
Thu, 8 Oct 2009 08:44:09 +0000 (10:44 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 12 Oct 2009 03:42:14 +0000 (13:42 +1000)
commitf30f37def4c72e5df8d949022b806e5a4e99bbcb
tree31753243c6e90e0d7aeda291bbd0ae9532e75fde
parente33497aaaef5ec9998cf7b007b13d74bb41be74e
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>
drivers/gpu/drm/radeon/atombios_crtc.c
drivers/gpu/drm/radeon/radeon_legacy_crtc.c