egl/x11: authenticate before doing chipset id ioctls
authorJonathan Gray <jsg@jsg.id.au>
Tue, 19 Apr 2016 02:29:36 +0000 (12:29 +1000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 21 Apr 2016 13:40:44 +0000 (14:40 +0100)
commit9bbf3737f9c96377bee65b947da3e63adaa58d58
tree83dd6859df7716bf0afd1073fd8bcadba7092ce5
parent4abe051a3f848af074193140930dab7fdca297bc
egl/x11: authenticate before doing chipset id ioctls

For systems without udev or sysfs that use drm ioctls in the loader
drm authentication must take place earlier or the loader will fail
"MESA-LOADER: failed to get param for i915".

Patch from Mark Kettenis.

Cc: "11.2 11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
[Emil Velikov: remove gratuitous white-space]
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_x11.c