drm/amd/display: Set one 4:2:0-related PPS field as recommended by DSC spec
authorNikola Cornij <nikola.cornij@amd.com>
Wed, 5 Jun 2019 18:29:47 +0000 (14:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:08 +0000 (14:18 -0500)
commit771b286379282ee9676c4233093e4e3c33c78346
tree826a861970cbd3f7c66cf8ce44afd805cad2614a
parenta6f30079b8562b659e1d06f7cb1bc30951869bbc
drm/amd/display: Set one 4:2:0-related PPS field as recommended by DSC spec

[why]
'second_line_offset_adj' was mistakenly left at zero, even though DSC spec
v1.2a recommends setting this field to 512 for 4:2:0.

[how]
Set 'second_line_offset_adj' to 512 for 4:2:0 and leave at zero otherwise

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dsc/drm_dsc_dc.c