drm/sun4i: framebuffer: Add a custom atomic_check
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 17 Dec 2017 17:06:05 +0000 (18:06 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 29 Jan 2018 13:02:36 +0000 (14:02 +0100)
commitb8f1230dd3bf99a77b74ea87a57d45422a5981cf
treefa548d49ff5e993d1b5d8c125db67d947cbdefa2
parent1184e09e019c3ebc657c2a9cfe51edcb19d9de10
drm/sun4i: framebuffer: Add a custom atomic_check

In order to support normalized zpos, we need to call
drm_atomic_normalize_zpos in our driver's drm_mode_config_funcs'
atomic_check.

Let's duplicate the definition of drm_atomic_helper_check for now.

Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/67cb4ca9889e6bf29314db37127ff15eed279c53.1516617243.git-series.maxime.ripard@free-electrons.com
drivers/gpu/drm/sun4i/sun4i_framebuffer.c