drm: Add drm_mode_config->normalize_zpos boolean
Instead of drivers duplicating the drm_atomic_helper_check() code to be able to normalize the zpos they can use the normalize_zpos flag to let the drm core to do it. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180321102029.15248-2-peter.ujfalusi@ti.com
This commit is contained in:

committed by
Tomi Valkeinen

parent
f4392860b4
commit
49efffc7fb
@@ -795,6 +795,14 @@ struct drm_mode_config {
|
||||
*/
|
||||
bool allow_fb_modifiers;
|
||||
|
||||
/**
|
||||
* @normalize_zpos:
|
||||
*
|
||||
* If true the drm core will call drm_atomic_normalize_zpos() as part of
|
||||
* atomic mode checking from drm_atomic_helper_check()
|
||||
*/
|
||||
bool normalize_zpos;
|
||||
|
||||
/**
|
||||
* @modifiers_property: Plane property to list support modifier/format
|
||||
* combination.
|
||||
|
Reference in New Issue
Block a user