]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: Use provided offset for DPG generation
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Tue, 24 Nov 2020 00:04:23 +0000 (19:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2020 04:04:19 +0000 (23:04 -0500)
[Why]
Currently, the offset provided to dcn30_set_disp_pattern_generator is
not forwarded to OPP for display pattern generation, resulting in
misaligned patterns and test failures.

[How]
Use the provided offset.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Samson Tam <Samson.Tam@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c

index 7a7efe9ea961fb7a99b63631188cbe9641094bc9..283995ab9eebb0049725c1dea48232db641f392a 100644 (file)
@@ -832,5 +832,5 @@ void dcn30_set_disp_pattern_generator(const struct dc *dc,
                int width, int height, int offset)
 {
        pipe_ctx->stream_res.opp->funcs->opp_set_disp_pattern_generator(pipe_ctx->stream_res.opp, test_pattern,
-                       color_space, color_depth, solid_color, width, height, 0);
+                       color_space, color_depth, solid_color, width, height, offset);
 }