mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 14:30:22 +01:00
Merged glxmisc-1-0-0
This commit is contained in:
parent
da74fc3f29
commit
01836824d5
1 changed files with 14 additions and 0 deletions
|
|
@ -217,6 +217,20 @@ static int drmOpenByName(const char *name)
|
|||
group = xf86ConfigDRI.group ? xf86ConfigDRI.group : DRM_DEV_GID;
|
||||
#endif
|
||||
|
||||
#if defined(XFree86Server)
|
||||
if (!drmAvailable()) {
|
||||
/* try to load the kernel module now */
|
||||
if (!xf86LoadKernelModule(name)) {
|
||||
ErrorF("[drm] failed to load kernel module \"%s\"\n",
|
||||
name);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (!drmAvailable())
|
||||
return -1;
|
||||
#endif
|
||||
|
||||
if (!geteuid()) {
|
||||
dirmode = mode;
|
||||
if (dirmode & S_IRUSR) dirmode |= S_IXUSR;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue