]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Code stereo layouts as an enum rather than a bit field
authorDamien Lespiau <damien.lespiau@intel.com>
Fri, 27 Sep 2013 11:11:48 +0000 (12:11 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Oct 2013 05:45:44 +0000 (07:45 +0200)
commit37490cbc9a305406cdb5efbc5356c172319ef799
tree295475386ab301b48c0010d1f3d3eb84baeffb7b
parentb0f07a56783e848b36ff3f00355d3b144a5bf4c1
drm: Code stereo layouts as an enum rather than a bit field

This allows us to use fewer bits in the mode structure, leaving room for
future work while allowing more stereo layouts types than we could have
ever dreamt of.

I also exposed the previously private DRM_MODE_FLAG_3D_MASK to set in
stone that we are using 5 bits for the stereo layout enum, reserving 32
values.

Even with that reservation, we gain 3 bits from the previous encoding.

The code adding the mandatory stereo modes needeed to be adapted as it was
relying or being able to or stereo layouts together.

Suggested-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_edid.c
include/drm/drm_crtc.h
include/uapi/drm/drm_mode.h