ydrm/vc4: fkms: Fix margin calculations for the right/bottom edges
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 12 Jul 2021 12:06:07 +0000 (13:06 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Mon, 12 Jul 2021 13:27:27 +0000 (14:27 +0100)
commit0088c16a03a20231a28910a5a589637177427a56
treeb0e7b93f538315d47a3eebd4121a03c4d6e82c46
parentb325ac845bc48b5503710a49eeb1424f9d22abb3
ydrm/vc4: fkms: Fix margin calculations for the right/bottom edges

The calculations clipped the right/bottom edge of the clipped
range based on the left/top margins.

https://github.com/raspberrypi/linux/issues/4447

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_firmware_kms.c