From: Oleh Kuzhylnyi <[email protected]> [WHY&HOW] Add use_max_lsw parameter to make prefetch for linear surfaces similar to tiled.
Reviewed-by: Dillon Varone <[email protected]> Signed-off-by: Oleh Kuzhylnyi <[email protected]> Signed-off-by: Chenyu Chen <[email protected]> --- .../amd/display/dc/dml2_0/dml21/inc/dml_top_display_cfg_types.h | 1 + .../dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/dml_top_display_cfg_types.h b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/dml_top_display_cfg_types.h index 35aa954248cd..b44762e21550 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/dml_top_display_cfg_types.h +++ b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/dml_top_display_cfg_types.h @@ -407,6 +407,7 @@ struct dml2_plane_parameters { unsigned int hostvm_min_page_size_kbytes; enum dml2_svp_mode_override legacy_svp_config; //TODO remove in favor of svp_config + bool use_max_lsw; struct { // HW specific overrides, there's almost no reason to mess with these diff --git a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h index 1087a8c926ff..953f40fde1e1 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h +++ b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h @@ -1950,6 +1950,7 @@ struct dml2_core_calcs_CalculatePrefetchSchedule_params { double Ttrip; double Turg; bool setup_for_tdlut; + bool use_max_lsw; unsigned int tdlut_pte_bytes_per_frame; unsigned int tdlut_bytes_per_frame; double tdlut_opt_time; -- 2.43.0
