Skip to content

Commit fcc3ed4

Browse files
Alex Hunggregkh
authored andcommitted
drm/amd/display: Fix mpv playback corruption on weston
commit 8724a53 upstream. [WHAT] Severe video playback corruption is observed in the following setup: weston 14.0.90 (built from source) + mpv v0.40.0 with command: mpv bbb_sunflower_1080p_60fps_normal.mp4 --vo=gpu [HOW] ABGR16161616 needs to be included in dml2/2.1 translation. Cc: Mario Limonciello <mario.limonciello@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Austin Zheng <austin.zheng@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit d023de8) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ffc12bd commit fcc3ed4

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,7 @@ static void populate_dml21_plane_config_from_plane_state(struct dml2_context *dm
785785
plane->pixel_format = dml2_420_10;
786786
break;
787787
case SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616:
788+
case SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616:
788789
case SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616F:
789790
case SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616F:
790791
plane->pixel_format = dml2_444_64;

drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ static void populate_dml_surface_cfg_from_plane_state(enum dml_project_id dml2_p
953953
out->SourcePixelFormat[location] = dml_420_10;
954954
break;
955955
case SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616:
956+
case SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616:
956957
case SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616F:
957958
case SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616F:
958959
out->SourcePixelFormat[location] = dml_444_64;

0 commit comments

Comments
 (0)