OSDN Git Service

drm: add support for render nodes.
authorAndrey Larionov <andrey.larionov@intel.com>
Tue, 23 Sep 2014 15:42:39 +0000 (17:42 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 25 Sep 2014 13:11:26 +0000 (15:11 +0200)
commit936f548d999afc44918f869f8c54fc82c5400ad9
treedc73d64974f38f70e6c968afb745c5c5ad338e13
parente0d25ece01e7aba819c910e98c4fb4706cdab055
drm: add support for render nodes.

Allow vaGetDisplayDRM() to accept DRM Render-Nodes file descriptors,
thus skipping authentication burdens in that case. This also allows
remote users, connected through ssh for instance, to enjoy hardware
acceleration even if there is a local display opened (user logged in).

Signed-off-by: Andrey Larionov <andrey.larionov@intel.com>
[checked if fd is a render-node, fixed VA_DISPLAY_DRM_RENDERNODES]
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
Tested-by: Rafal A Sapala <rafal.a.sapala@intel.com>
va/drm/va_drm.c
va/drm/va_drm_utils.c
va/drm/va_drm_utils.h
va/va_backend.h