]> git.kernelconcepts.de Git - karo-tx-linux.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)
commite9d14aeb3005fc09a937ca419c08b3c612a76a90
tree4ad8ae3710194521322d2655fea7be455b8fb1e2
parentaa019b791a3e138ca0eaa38e72b4ea97d482a7bc
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