mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
drm/amd/display: update fullscreen status to SPL
[Why] Current fullscreen check in SPL using dm_helpers is out-of-sync with dc state. This causes an issue during minimal transition where we pick an invalid intermediate state because the pre and post fullscreen status are different. [How] Add sharpening_required flag to dc_stream_state. Use this flag to indicate if we are in fullscreen or not. Propagate flag to SPL for fullscreen status. Remove workaround in DML Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Samson Tam <Samson.Tam@amd.com> Signed-off-by: Wayne Lin <wayne.lin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
6c5bb04858
commit
30194b716b
|
|
@ -2756,6 +2756,9 @@ static enum surface_update_type check_update_surfaces_for_stream(
|
|||
if (stream_update->scaler_sharpener_update)
|
||||
su_flags->bits.scaler_sharpener = 1;
|
||||
|
||||
if (stream_update->sharpening_required)
|
||||
su_flags->bits.sharpening_required = 1;
|
||||
|
||||
if (su_flags->raw != 0)
|
||||
overall_type = UPDATE_TYPE_FULL;
|
||||
|
||||
|
|
@ -3107,6 +3110,8 @@ static void copy_stream_update_to_stream(struct dc *dc,
|
|||
}
|
||||
if (update->scaler_sharpener_update)
|
||||
stream->scaler_sharpener_update = *update->scaler_sharpener_update;
|
||||
if (update->sharpening_required)
|
||||
stream->sharpening_required = *update->sharpening_required;
|
||||
}
|
||||
|
||||
static void backup_planes_and_stream_state(
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ void translate_SPL_in_params_from_pipe_ctx(struct pipe_ctx *pipe_ctx, struct spl
|
|||
/* Check if it is stream is in fullscreen and if its HDR.
|
||||
* Use this to determine sharpness levels
|
||||
*/
|
||||
spl_in->is_fullscreen = dm_helpers_is_fullscreen(pipe_ctx->stream->ctx, pipe_ctx->stream);
|
||||
spl_in->is_fullscreen = pipe_ctx->stream->sharpening_required;
|
||||
spl_in->is_hdr_on = dm_helpers_is_hdr_on(pipe_ctx->stream->ctx, pipe_ctx->stream);
|
||||
spl_in->sdr_white_level_nits = plane_state->sdr_white_level_nits;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,6 +143,7 @@ union stream_update_flags {
|
|||
uint32_t crtc_timing_adjust : 1;
|
||||
uint32_t fams_changed : 1;
|
||||
uint32_t scaler_sharpener : 1;
|
||||
uint32_t sharpening_required : 1;
|
||||
} bits;
|
||||
|
||||
uint32_t raw;
|
||||
|
|
@ -310,6 +311,7 @@ struct dc_stream_state {
|
|||
|
||||
struct luminance_data lumin_data;
|
||||
bool scaler_sharpener_update;
|
||||
bool sharpening_required;
|
||||
};
|
||||
|
||||
#define ABM_LEVEL_IMMEDIATE_DISABLE 255
|
||||
|
|
@ -356,6 +358,7 @@ struct dc_stream_update {
|
|||
struct dc_cursor_position *cursor_position;
|
||||
bool *hw_cursor_req;
|
||||
bool *scaler_sharpener_update;
|
||||
bool *sharpening_required;
|
||||
};
|
||||
|
||||
bool dc_is_stream_unchanged(
|
||||
|
|
|
|||
|
|
@ -514,7 +514,6 @@ static void populate_dml21_stream_overrides_from_stream_state(
|
|||
break;
|
||||
}
|
||||
if (!stream->ctx->dc->debug.enable_single_display_2to1_odm_policy ||
|
||||
((stream->ctx->dc->debug.force_sharpness > 1) && stream->ctx->dc->config.use_spl) ||
|
||||
stream->debug.force_odm_combine_segments > 0)
|
||||
stream_desc->overrides.disable_dynamic_odm = true;
|
||||
stream_desc->overrides.disable_subvp = stream->ctx->dc->debug.force_disable_subvp || stream->hw_cursor_req;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user