Skip to content
Commit 666e7358 authored by Boris Brezillon's avatar Boris Brezillon
Browse files

drm/vc4: Take margin setup into account when updating planes



Applyin margins is just a matter of scaling all planes appropriately
and adjusting the CRTC X/Y offset to account for the
left/right/top/bottom borders.

Create a vc4_plane_margins_adj() function doing that and call it from
vc4_plane_setup_clipping_and_scaling() so that we are ready to attach
margins properties to the HDMI connector.

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: default avatarEric Anholt <eric@anholt.net>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181206142439.10441-5-boris.brezillon@bootlin.com
parent 6c4f52dc
  • mirror @mirror

    mentioned in commit b325ac84

    ·

    mentioned in commit b325ac84

    Toggle commit list
  • mirror @mirror

    mentioned in commit 9029969f

    ·

    mentioned in commit 9029969f

    Toggle commit list
  • mirror @mirror

    mentioned in commit eff5cd95b2f6ac17a8ef6628f8469cf1e6b501ca

    ·

    mentioned in commit eff5cd95b2f6ac17a8ef6628f8469cf1e6b501ca

    Toggle commit list
  • mirror @mirror

    mentioned in commit ed201777547c8a6cf23dcaf5014f9aff83538817

    ·

    mentioned in commit ed201777547c8a6cf23dcaf5014f9aff83538817

    Toggle commit list
  • mirror @mirror

    mentioned in commit 1f521940c19be4808b7abd9a9b6b86b22c925e73

    ·

    mentioned in commit 1f521940c19be4808b7abd9a9b6b86b22c925e73

    Toggle commit list
  • mirror @mirror

    mentioned in commit c706b9511b2f605cbb60910e2c03bf050c010b76

    ·

    mentioned in commit c706b9511b2f605cbb60910e2c03bf050c010b76

    Toggle commit list
  • mirror @mirror

    mentioned in commit 5e95c09a777059ce7248324a73a0239fbeb617f9

    ·

    mentioned in commit 5e95c09a777059ce7248324a73a0239fbeb617f9

    Toggle commit list
  • mirror @mirror

    mentioned in commit 94b1d8f96e6e2acd18638e68e9248d083cb49f7a

    ·

    mentioned in commit 94b1d8f96e6e2acd18638e68e9248d083cb49f7a

    Toggle commit list
  • mirror @mirror

    mentioned in commit 2f9ebebb5977cecd039746200c364e8094ea387b

    ·

    mentioned in commit 2f9ebebb5977cecd039746200c364e8094ea387b

    Toggle commit list
  • mirror @mirror

    mentioned in commit 8a52d803

    ·

    mentioned in commit 8a52d803

    Toggle commit list
  • mirror @mirror

    mentioned in commit 5772ed6cf988cb67f3daaa4f02d2ae9a28f8caf2

    ·

    mentioned in commit 5772ed6cf988cb67f3daaa4f02d2ae9a28f8caf2

    Toggle commit list
  • mirror @mirror

    mentioned in commit 266afc33817bd08b4dc6cd56d433f6b8129c7846

    ·

    mentioned in commit 266afc33817bd08b4dc6cd56d433f6b8129c7846

    Toggle commit list
  • mirror @mirror

    mentioned in commit 4f4f00d4e897965d452b5adb5d861421541fbc0a

    ·

    mentioned in commit 4f4f00d4e897965d452b5adb5d861421541fbc0a

    Toggle commit list
  • mirror @mirror

    mentioned in commit af1c9956cdab0fddf91851b29b0da8e96e2d23cf

    ·

    mentioned in commit af1c9956cdab0fddf91851b29b0da8e96e2d23cf

    Toggle commit list
  • mirror @mirror

    mentioned in commit 6c4d612057b428b02046ff38b19e28275a5172f1

    ·

    mentioned in commit 6c4d612057b428b02046ff38b19e28275a5172f1

    Toggle commit list
  • mirror @mirror

    mentioned in commit 06acd2273565eef84e40288824b5edd0b59b23e6

    ·

    mentioned in commit 06acd2273565eef84e40288824b5edd0b59b23e6

    Toggle commit list
  • mirror @mirror

    mentioned in commit 37f3ac55834d17fb6da7738690a7880138a5ee94

    ·

    mentioned in commit 37f3ac55834d17fb6da7738690a7880138a5ee94

    Toggle commit list
  • mirror @mirror

    mentioned in commit b433b92dfdc143773d594a26e3017aa2449fe954

    ·

    mentioned in commit b433b92dfdc143773d594a26e3017aa2449fe954

    Toggle commit list
  • mirror @mirror

    mentioned in commit e5ded10aa12564d2e9128655b216aab44c6e4e20

    ·

    mentioned in commit e5ded10aa12564d2e9128655b216aab44c6e4e20

    Toggle commit list
  • mirror @mirror

    mentioned in commit 37fdfa7f04c542035edde89657c14639af743afc

    ·

    mentioned in commit 37fdfa7f04c542035edde89657c14639af743afc

    Toggle commit list
  • mirror @mirror

    mentioned in commit 5397ae2fc3a5e79449cec199caf347aa353fb201

    ·

    mentioned in commit 5397ae2fc3a5e79449cec199caf347aa353fb201

    Toggle commit list
  • mirror @mirror

    mentioned in commit 5e6c875ccefe2dcea583db52ecdc0a79e7c9e62a

    ·

    mentioned in commit 5e6c875ccefe2dcea583db52ecdc0a79e7c9e62a

    Toggle commit list
  • mirror @mirror

    mentioned in commit 5268e4cf53a6f81189131a0191edfd8e08437c3c

    ·

    mentioned in commit 5268e4cf53a6f81189131a0191edfd8e08437c3c

    Toggle commit list
  • mirror @mirror

    mentioned in commit 4ad8ad3013d5642166f6846fd75e77fedb1c094c

    ·

    mentioned in commit 4ad8ad3013d5642166f6846fd75e77fedb1c094c

    Toggle commit list
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment