Name

drm_atomic_helper_check — validate state object

Synopsis

int drm_atomic_helper_check (struct drm_device * dev,
 struct drm_atomic_state * state);
 

Arguments

dev

DRM device

state

the driver state object

Description

Check the state object to see if the requested state is physically possible. Only crtcs and planes have check callbacks, so for any additional (global) checking that a driver needs it can simply wrap that around this function. Drivers without such needs can directly use this as their ->atomic_check callback.

RETURNS Zero for success or -errno