drm/amd/display: Force full update on pixel_format_change
authorKrunoslav Kovac <Krunoslav.Kovac@amd.com>
Wed, 10 Jan 2018 22:40:32 +0000 (17:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:18:40 +0000 (14:18 -0500)
Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@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/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h

index 67e3d00..a78e036 100644 (file)
@@ -1105,6 +1105,7 @@ static enum surface_update_type get_plane_info_update_type(const struct dc_surfa
 
        if (update_flags->bits.rotation_change
                        || update_flags->bits.stereo_format_change
+                       || update_flags->bits.pixel_format_change
                        || update_flags->bits.gamma_change
                        || update_flags->bits.bpp_change
                        || update_flags->bits.bandwidth_change
index 92b249a..c889e7b 100644 (file)
@@ -213,6 +213,7 @@ struct dc_debug {
        bool vsr_support;
        bool performance_trace;
        bool az_endpoint_mute_only;
+       bool always_use_regamma;
 };
 struct dc_state;
 struct resource_pool;
@@ -495,7 +496,6 @@ struct dc_surface_update {
        /* following updates require alloc/sleep/spin that is not isr safe,
         * null means no updates
         */
-       /* gamma TO BE REMOVED */
        struct dc_gamma *gamma;
        enum color_transfer_func color_input_tf;
        struct dc_transfer_func *in_transfer_func;