]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add a STEREO_3D capability to the SET_CLIENT_CAP ioctl
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 25 Sep 2013 15:45:22 +0000 (16:45 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Oct 2013 05:45:27 +0000 (07:45 +0200)
commit5e3af27819f9a4455731bc77c6b3174816f931d7
treeff765d5d44879ddc36f6430632fdb5211553e296
parent56cbdc1289c83f9d151906616bf956b1f1f671e2
drm: Add a STEREO_3D capability to the SET_CLIENT_CAP ioctl

This capability allows user space to control the delivery of modes with
the 3D flags set. This is to not play games with current user space
users not knowing anything about stereo 3D flags and that could try
to set a mode with one or several of those bits set.

So, the plan is to remove the stereo modes from the list of modes we
give to DRM clients by default, and let them through if we are being
told otherwise.

stereo_allowed is bound to the drm_file structure to make it a
per-client setting, not a global one.

v2: Replace clearing 3D flags by discarding the stereo modes now that
    they are regular modes.
v3: SET_CAP -> SET_CLIENT_CAP rename (Chris Wilson)

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
drivers/gpu/drm/drm_ioctl.c
include/drm/drmP.h
include/uapi/drm/drm.h