summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_simple_kms_helper.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2016-08-25 16:35:05 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-08-25 16:57:26 +0200
commita8c798186b932e048abfd0adbec295e9a0cc847a (patch)
tree65ec39c021591345ee3adc9ebded39c911f61a4a /include/drm/drm_simple_kms_helper.h
parentd10571fc4fba7d57fb8157f0be61dcbe4a7965ca (diff)
downloadlinux-a8c798186b932e048abfd0adbec295e9a0cc847a.tar.gz
linux-a8c798186b932e048abfd0adbec295e9a0cc847a.tar.bz2
linux-a8c798186b932e048abfd0adbec295e9a0cc847a.zip
drm: reduce GETCLIENT to a minimum
The *only* known user of GETCLIENT is libva, which uses it to check whether its own context is authenticated. It used to iterate all clients, look for one that matches its own pid and then check its state. The entire purpose for us to still have a GETCLIENT implementation is to serve libva. So lets not pretend we do anything else: Make this function return information on the caller's context only, fake the PID to the caller's pid so they always match, and just fill in the "authenticated" bit, nothing else. This patch reduces the complexity of GETCLIENT to a bare minimum, avoids any dependency on priv->uid or priv->pid (allows us to get rid of them), and makes libva happy by always *exactly* returning the information it wants. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20160825143505.7447-1-dh.herrmann@gmail.com
Diffstat (limited to 'include/drm/drm_simple_kms_helper.h')
0 files changed, 0 insertions, 0 deletions