]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/amd/display: Add optimized_required flag
authorHarry Wentland <harry.wentland@amd.com>
Wed, 22 Nov 2017 20:59:39 +0000 (15:59 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 15:52:38 +0000 (10:52 -0500)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h

index 98eff80acffa2d26843a71286ecdfcd51d9979fa..19d96aeaa113dd4ca3f0f6cb96e2beb5fa5c1cf7 100644 (file)
@@ -788,6 +788,8 @@ bool dc_post_update_surfaces_to_stream(struct dc *dc)
                        dc->hwss.disable_plane(dc, &context->res_ctx.pipe_ctx[i]);
                }
 
+       dc->optimized_required = false;
+
        /* 3rd param should be true, temp w/a for RV*/
 #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
        dc->hwss.set_bandwidth(dc, context, dc->ctx->dce_version < DCN_VERSION_1_0);
index 71f1802a25d7cc17eb1b051b62e04cd5dee0f844..9fbcfd7b5f8d3c88a17fe67fc87f0b9858ee49ad 100644 (file)
@@ -250,6 +250,8 @@ struct dc {
         */
        struct dm_pp_display_configuration prev_display_config;
 
+       bool optimized_required;
+
        /* FBC compressor */
 #if defined(CONFIG_DRM_AMD_DC_FBC)
        struct compressor *fbc_compressor;