drm/amdgpu: bump the afmt limit for CZ, ST, Polaris
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Apr 2016 22:25:34 +0000 (18:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Apr 2016 00:03:46 +0000 (20:03 -0400)
Fixes array overflow on these chips.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h

index e4da6da..81bd964 100644 (file)
@@ -53,7 +53,7 @@ struct amdgpu_hpd;
 
 #define AMDGPU_MAX_HPD_PINS 6
 #define AMDGPU_MAX_CRTCS 6
-#define AMDGPU_MAX_AFMT_BLOCKS 7
+#define AMDGPU_MAX_AFMT_BLOCKS 9
 
 enum amdgpu_rmx_type {
        RMX_OFF,