drm/amd/display: fix dml immediate flip input

Set the correct value to immediate flip required field.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Samson Tam <Samson.Tam@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Dmytro Laktyushkin 2020-05-06 15:08:59 -04:00 committed by Alex Deucher
parent 1649bbe01b
commit 4d6939535d
2 changed files with 6 additions and 2 deletions

View File

@ -177,8 +177,8 @@ enum odm_combine_policy {
};
enum immediate_flip_requirement {
dm_immediate_flip_required,
dm_immediate_flip_not_required,
dm_immediate_flip_required,
};
enum unbounded_requesting_policy {

View File

@ -385,6 +385,8 @@ static void fetch_pipe_params(struct display_mode_lib *mode_lib)
visited[k] = false;
mode_lib->vba.NumberOfActivePlanes = 0;
mode_lib->vba.ImmediateFlipSupport = false;
mode_lib->vba.ImmediateFlipRequirement = dm_immediate_flip_not_required;
for (j = 0; j < mode_lib->vba.cache_num_pipes; ++j) {
display_pipe_source_params_st *src = &pipes[j].pipe.src;
display_pipe_dest_params_st *dst = &pipes[j].pipe.dest;
@ -635,8 +637,10 @@ static void fetch_pipe_params(struct display_mode_lib *mode_lib)
}
}
if (pipes[k].pipe.src.immediate_flip)
if (pipes[k].pipe.src.immediate_flip) {
mode_lib->vba.ImmediateFlipSupport = true;
mode_lib->vba.ImmediateFlipRequirement = dm_immediate_flip_required;
}
mode_lib->vba.NumberOfActivePlanes++;
}