mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 12:19:05 -04:00
drm/amd/display: add force_trigger even to static screen control
Signed-off-by: Charlene Liu <charlene.liu@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
7708b60b3e
commit
ed8462acaf
@@ -95,6 +95,7 @@ struct dc_surface_dcc_cap {
|
||||
};
|
||||
|
||||
struct dc_static_screen_events {
|
||||
bool force_trigger;
|
||||
bool cursor_update;
|
||||
bool surface_update;
|
||||
bool overlay_update;
|
||||
|
||||
@@ -1625,6 +1625,8 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx,
|
||||
value |= 0x80;
|
||||
if (events->cursor_update)
|
||||
value |= 0x2;
|
||||
if (events->force_trigger)
|
||||
value |= 0x1;
|
||||
|
||||
#if defined(CONFIG_DRM_AMD_DC_FBC)
|
||||
value |= 0x84;
|
||||
|
||||
@@ -2144,6 +2144,8 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx,
|
||||
value |= 0x80;
|
||||
if (events->cursor_update)
|
||||
value |= 0x2;
|
||||
if (events->force_trigger)
|
||||
value |= 0x1;
|
||||
|
||||
for (i = 0; i < num_pipes; i++)
|
||||
pipe_ctx[i]->stream_res.tg->funcs->
|
||||
|
||||
Reference in New Issue
Block a user