]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amd/display: disable mpo if brightness adjusted
authorYue Hin Lau <Yuehin.Lau@amd.com>
Wed, 18 Apr 2018 20:07:04 +0000 (16:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 May 2018 21:08:25 +0000 (16:08 -0500)
Signed-off-by: Yue Hin Lau <Yuehin.Lau@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c

index 08b29a7429215341c639c2cd4ad1a124808dee4a..7a9f600662ce4e5d083fac9d303792137a36c16b 100644 (file)
@@ -75,6 +75,7 @@ struct dc_caps {
        bool dynamic_audio;
        bool is_apu;
        bool dual_link_dvi;
+       bool post_blend_color_processing;
 };
 
 struct dc_dcc_surface_param {
index f69f3a54f0015d284ef30fcc393d1cb213dad8c8..ace2e03dced42037ceddfc230fed061b38af2e3b 100644 (file)
@@ -1023,6 +1023,7 @@ static bool construct(
        dc->caps.max_cursor_size = 256;
        dc->caps.max_slave_planes = 1;
        dc->caps.is_apu = true;
+       dc->caps.post_blend_color_processing = false;
 
        if (dc->ctx->dce_environment == DCE_ENV_PRODUCTION_DRV)
                dc->debug = debug_defaults_drv;