drm/amd/display: add additional flag consideration for surface update
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Thu, 22 Aug 2019 18:12:57 +0000 (14:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Sep 2019 13:06:54 +0000 (08:06 -0500)
Surface dchub/dpp update would not trigger if a stream update was the
only cause. This change now allows stream flags to trigger this update.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c

index 81740e0c4c4e197b7146b22c0367b4fd8ab48812..faaf8841c61ea8d1b0dadf23bc3b951e093c3630 100644 (file)
@@ -1375,7 +1375,7 @@ static void dcn20_program_pipe(
        if (pipe_ctx->update_flags.bits.enable)
                dcn20_enable_plane(dc, pipe_ctx, context);
 
-       if (pipe_ctx->update_flags.raw || pipe_ctx->plane_state->update_flags.raw)
+       if (pipe_ctx->update_flags.raw || pipe_ctx->plane_state->update_flags.raw || pipe_ctx->stream->update_flags.raw)
                dcn20_update_dchubp_dpp(dc, pipe_ctx, context);
 
        if (pipe_ctx->update_flags.bits.enable