Skip to content
Snippets Groups Projects
Commit c15dcb1a authored by Jonathan Gray's avatar Jonathan Gray Committed by Emil Velikov
Browse files

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: default avatarMark Kettenis <kettenis@openbsd.org>
Signed-off-by: default avatarJonathan Gray <jsg@jsg.id.au>
[Emil Velikov: remove gratuitous white-space]
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>

(cherry picked from commit 9bbf3737)

Squashed with commit

egl/x11: resolve "initialization from incompatible pointer type" warning

With earlier commit we've moved a few functions and changing the
argument type from _EGLDisplay * to struct dri2_egl_display *.

The latter is effectively a wrapper around the former, thus
functionality was preserved, although GCC rightfully warned us about the
misuse.

Add a simple wrapper that casts and propagates the correct type.

Fixes: 9bbf3737 ("egl/x11: authenticate before doing chipset id
ioctls")
Cc: "11.2 11.1" <mesa-stable@lists.freedesktop.org>
Reported-by: default avatarMatt Turner <mattst88@gmail.com>
Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>

(cherry picked from commit b8e59292)
parent d4192521
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment