]> 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)
commit249d6cbc4f9bd02c0f0f649a2a9164accd2848c4
tree4ad8ae3710194521322d2655fea7be455b8fb1e2
parent8f9bb3a78ebab65de31ce9626e8ff5459ca8e67e
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