drm: Reject modes with more than 1 stereo flags set
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 25 Sep 2013 15:45:25 +0000 (16:45 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Oct 2013 05:45:29 +0000 (07:45 +0200)
commita3ff6d5609145b06f602a5bc8e8bdbf66b96370b
tree41ac32841301c8dad56ac426714982eb2abad380
parent1deee8d76724b478240f1bba5affe017e4f9bfa3
drm: Reject modes with more than 1 stereo flags set

When setting a stereo 3D mode, there can be only one bit set describing
the layout of the frambuffer(s). So reject invalid modes early.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c