Skip to content

Commit 0270600

Browse files
Dillon Varonealexdeucher
authored andcommitted
drm/amd/display: Recalculate SubVP Phantom VBlank End in dml21
[WHY] The phantom stream timing is copied from the main stream as most parameters are identical, however some need to be recalculated. Currently VBlank End is not recalculated and copied from the main incorrectly. [HOW] Recalculate VBlank End for phantom stream timing. Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Dillon Varone <dillon.varone@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>
1 parent 8a79f7c commit 0270600

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ static void create_phantom_stream_from_main_stream(struct dml2_stream_parameters
159159
phantom->timing.v_total = meta->v_total;
160160
phantom->timing.v_active = meta->v_active;
161161
phantom->timing.v_front_porch = meta->v_front_porch;
162+
phantom->timing.v_blank_end = phantom->timing.v_total - phantom->timing.v_front_porch - phantom->timing.v_active;
162163
phantom->timing.vblank_nom = phantom->timing.v_total - phantom->timing.v_active;
163164
phantom->timing.drr_config.enabled = false;
164165
}

drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ static void create_phantom_stream_from_main_stream(struct dml2_stream_parameters
425425
phantom->timing.v_total = meta->v_total;
426426
phantom->timing.v_active = meta->v_active;
427427
phantom->timing.v_front_porch = meta->v_front_porch;
428+
phantom->timing.v_blank_end = phantom->timing.v_total - phantom->timing.v_front_porch - phantom->timing.v_active;
428429
phantom->timing.vblank_nom = phantom->timing.v_total - phantom->timing.v_active;
429430
phantom->timing.drr_config.enabled = false;
430431
}

0 commit comments

Comments
 (0)