drm/rect: Add drm_rect_translate_to()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Sep 2019 13:42:11 +0000 (16:42 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Oct 2019 14:45:20 +0000 (17:45 +0300)
commit763ba2eca0f1a0b04529b4d118592c4dd387d53a
treec1d22b61f05aca1d661584eee755995402390280
parentf59769c52cd7d158df53487ec2936f5592073340
drm/rect: Add drm_rect_translate_to()

Add a helper to translate a rectangle to an absolute position.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190930134214.24702-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
include/drm/drm_rect.h