drm_mode_validate_size(9) make sure modes adhere to size constraints

SYNOPSIS

enum drm_mode_status drm_mode_validate_size(const struct drm_display_mode * mode, int maxX, int maxY);

ARGUMENTS

mode

mode to check

maxX

maximum width

maxY

maximum height

DESCRIPTION

This function is a helper which can be used to validate modes against size limitations of the DRM device/connector. If a mode is too big its status member is updated with the appropriate validation failure code. The list itself is not changed.

RETURNS

The mode status

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,         
        

Contributions all over the place

Lukas Wunner <[email protected]>

vga_switcheroo documentation

COPYRIGHT