]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: update dcn2 dc_plane_cap
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Apr 2019 21:49:04 +0000 (16:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:07 +0000 (09:34 -0500)
To deal with rebasing the code.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c

index 16be22a2091dd92b7d60c29130fc7f199efb8a2c..af4e2447a5da80094eade58800a45113896f964d 100644 (file)
@@ -601,10 +601,25 @@ static const struct dc_plane_cap plane_cap = {
        .type = DC_PLANE_TYPE_DCN_UNIVERSAL,
        .blends_with_above = true,
        .blends_with_below = true,
-       .supports_argb8888 = true,
        .per_pixel_alpha = true,
-       .supports_argb8888 = true,
-       .supports_nv12 = true
+
+       .pixel_format_support = {
+                       .argb8888 = true,
+                       .nv12 = true,
+                       .fp16 = true
+       },
+
+       .max_upscale_factor = {
+                       .argb8888 = 16000,
+                       .nv12 = 16000,
+                       .fp16 = 1
+       },
+
+       .max_downscale_factor = {
+                       .argb8888 = 250,
+                       .nv12 = 250,
+                       .fp16 = 1
+       }
 };
 
 static const struct dc_debug_options debug_defaults_drv = {