drm/amd/display: Fix gfx9 parameters reading for DC.
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Wed, 8 Feb 2017 20:58:50 +0000 (15:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:20:26 +0000 (17:20 -0400)
Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c

index 7f2d17784a8ed95d868337a3565866666c0ae6f9..8ae78c0653b6108933526aaf2440dca383f0e9d8 100644 (file)
@@ -535,6 +535,8 @@ static void fill_plane_attributes_from_fb(
                        adev->gfx.config.gb_addr_config_fields.num_se;
                surface->tiling_info.gfx9.max_compressed_frags =
                        adev->gfx.config.gb_addr_config_fields.max_compress_frags;
+               surface->tiling_info.gfx9.num_rb_per_se =
+                       adev->gfx.config.gb_addr_config_fields.num_rb_per_se;
                surface->tiling_info.gfx9.swizzle =
                        AMDGPU_TILING_GET(tiling_flags, SWIZZLE_MODE);
                surface->tiling_info.gfx9.shaderEnable = 1;