drm/amd/display: fix issues with incorrectly detecting UPDATE_TYPE_FULL
authorAnthony Koo <Anthony.Koo@amd.com>
Wed, 14 Jun 2017 14:19:57 +0000 (10:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:08:05 +0000 (18:08 -0400)
commitebf055f95b4782e681c0040461a33c0210e65a5d
tree45a47bca9192e31f300e03daf81fd0b6dd809add
parent80b4c5a8c1e1856848a440a63accbe029ea3b51b
drm/amd/display: fix issues with incorrectly detecting UPDATE_TYPE_FULL

This is due to how structures are being packed with padding added.
Structure field initialization doesn't clear the padding bytes, which cause
our memcmp to give incorrect result.

Move smaller structure parameters to end of structure.

Signed-off-by: Anthony Koo <anthony.koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@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/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h