diff options
author | 2023-08-17 12:21:55 -0400 | |
---|---|---|
committer | 2023-10-09 16:50:59 -0400 | |
commit | 969fe903ee2ea8e6a7781608ca2ee72d9b748c00 (patch) | |
tree | b55bebfedc81b2175004f29e3366f6b932c31457 /drivers/gpu/drm/amd/display/dc/dml2 | |
parent | drm/amd/display: Move stereo timing check to helper (diff) | |
download | linux-969fe903ee2ea8e6a7781608ca2ee72d9b748c00.tar.gz linux-969fe903ee2ea8e6a7781608ca2ee72d9b748c00.tar.bz2 linux-969fe903ee2ea8e6a7781608ca2ee72d9b748c00.zip |
drm/amd/display: Fix Chroma Surface height/width initialization
[why]
Surface height/width for Chroma has another variable that it should be
intialized to, chroma_size. Fixing this will help pass DML2.0 validation
for YCbCr420 tests, DCHB006.109,129, DCHB014.011,012.
[how]
Assign SurfaceHeight/WidthC to chroma_size.height/width
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Sung Joon Kim <sungkim@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml2')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c b/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c index 2dd8eedfc17d..e5ccd2887c94 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c +++ b/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c @@ -721,8 +721,8 @@ static void populate_dml_surface_cfg_from_plane_state(enum dml_project_id dml2_p out->PitchY[location] = in->plane_size.surface_pitch; out->SurfaceHeightY[location] = in->plane_size.surface_size.height; out->SurfaceWidthY[location] = in->plane_size.surface_size.width; - out->SurfaceHeightC[location] = in->plane_size.surface_size.height; - out->SurfaceWidthC[location] = in->plane_size.surface_size.width; + out->SurfaceHeightC[location] = in->plane_size.chroma_size.height; + out->SurfaceWidthC[location] = in->plane_size.chroma_size.width; out->PitchC[location] = in->plane_size.chroma_pitch; out->DCCEnable[location] = in->dcc.enable; out->DCCMetaPitchY[location] = in->dcc.meta_pitch; |