]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix use of uninitialized memory
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Tue, 29 May 2018 21:45:05 +0000 (17:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:38:37 +0000 (16:38 -0500)
commiteeba6ad94d2162fffde5283373463528fc829487
tree1bb913ca012c28da7f6a8695c4a8e31988d66c16
parent430186969efb178ec7d59c163875e456018f9c92
drm/amd/display: fix use of uninitialized memory

DML does not calculate chroma values for RQ when surface is not YUV, but DC
will unconditionally use the uninitialized values for HW programming.
This does not cause visual corruption since HW will ignore garbage chroma
values when surface is not YUV, but causes presubmission tests to fail
golden value comparison.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Signed-off-by: Eryk Brol <eryk.brol@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c