]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: Fix num_banks calculation for SI
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 22 Apr 2014 07:53:52 +0000 (16:53 +0900)
committerChristian König <christian.koenig@amd.com>
Tue, 6 May 2014 10:18:40 +0000 (12:18 +0200)
commit8c5ba09ae908be57f6958c474aa516f55a562597
tree4ad8ae3710194521322d2655fea7be455b8fb1e2
parenta6fc811b38a436bc7540bba0afcf2e5046b1fe9a
drm/radeon: Fix num_banks calculation for SI

The way the tile mode array index was calculated only makes sense for
the CIK specific macrotile mode array. For SI, we need to use one of the
tile mode array indices reserved for displayable surfaces.

This happened to result in correct display most if not all of the time
because most of the SI tiling modes use the same number of banks.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/atombios_crtc.c