]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Oct 2018 23:59:05 +0000 (16:59 -0700)
commitdd5ac3dcb22eb0f30cfa3137542fdec260bca0ef
treeb855f1e5151a916aa0f733a090ceb2277a30c05e
parente21238f1be65530a0d747e9f91202820fe73ce32
drm/amd/display: fix use of uninitialized memory

[ Upstream commit f3e077d95ca0a016fdf3d6b1e97a9910dfdaff17 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c