Commit ed8462ac authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher

drm/amd/display: add force_trigger even to static screen control

Signed-off-by: default avatarCharlene Liu <charlene.liu@amd.com>
Reviewed-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7708b60b
...@@ -95,6 +95,7 @@ struct dc_surface_dcc_cap { ...@@ -95,6 +95,7 @@ struct dc_surface_dcc_cap {
}; };
struct dc_static_screen_events { struct dc_static_screen_events {
bool force_trigger;
bool cursor_update; bool cursor_update;
bool surface_update; bool surface_update;
bool overlay_update; bool overlay_update;
......
...@@ -1625,6 +1625,8 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx, ...@@ -1625,6 +1625,8 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx,
value |= 0x80; value |= 0x80;
if (events->cursor_update) if (events->cursor_update)
value |= 0x2; value |= 0x2;
if (events->force_trigger)
value |= 0x1;
#if defined(CONFIG_DRM_AMD_DC_FBC) #if defined(CONFIG_DRM_AMD_DC_FBC)
value |= 0x84; value |= 0x84;
......
...@@ -2144,6 +2144,8 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx, ...@@ -2144,6 +2144,8 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx,
value |= 0x80; value |= 0x80;
if (events->cursor_update) if (events->cursor_update)
value |= 0x2; value |= 0x2;
if (events->force_trigger)
value |= 0x1;
for (i = 0; i < num_pipes; i++) for (i = 0; i < num_pipes; i++)
pipe_ctx[i]->stream_res.tg->funcs-> pipe_ctx[i]->stream_res.tg->funcs->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment