summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c
diff options
context:
space:
mode:
authorAtufa Khan <Atufa.Khan@amd.com>2021-02-26 00:18:35 +0300
committerAlex Deucher <alexander.deucher@amd.com>2021-03-24 06:33:06 +0300
commitae0305708e932981e738abaa13fc4a9470627237 (patch)
tree4d549bc383b47b4e8ec6869884a5399e783a0c6a /drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c
parente69231c4451ae07f3cf9c62ae7a5bd6a0ba12bd0 (diff)
downloadlinux-ae0305708e932981e738abaa13fc4a9470627237.tar.xz
drm/amd/display: Separate caps for maximum RGB and YUV plane counts
Not all ASICs have same plane capabilities so need to split them out for proper support handling. Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Atufa Khan <Atufa.Khan@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Solomon Chiu <solomon.chiu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c b/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c
index 98b464e8b25e..daa16a41e6b7 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c
@@ -1483,6 +1483,8 @@ static bool dcn302_resource_construct(
dc->caps.mall_size_total = dc->caps.mall_size_per_mem_channel * dc->ctx->dc_bios->vram_info.num_chans * 1048576;
dc->caps.cursor_cache_size = dc->caps.max_cursor_size * dc->caps.max_cursor_size * 8;
dc->caps.max_slave_planes = 1;
+ dc->caps.max_slave_yuv_planes = 1;
+ dc->caps.max_slave_rgb_planes = 1;
dc->caps.post_blend_color_processing = true;
dc->caps.force_dp_tps4_for_cp2520 = true;
dc->caps.extended_aux_timeout_support = true;