xorg-x11-server update
Signed-off-by: guibuilder_pel7x64builder0 <guibuilder@powerel.org>master
parent
819e344a44
commit
b448c939e9
|
@ -28,7 +28,7 @@ index b876b79..a170b58 100644
|
|||
+SUBDIRS = common ddc x86emu int10 os-support parser \
|
||||
ramdac $(VGAHW_SUBDIR) loader modes $(DRI_SUBDIR) \
|
||||
- $(DRI2_SUBDIR) . $(VBE_SUBDIR) i2c dixmods xkb \
|
||||
+ $(DRI2_SUBDIR) . vbe i2c dixmods \
|
||||
+ $(DRI2_SUBDIR) . vbe i2c dixmods xkb \
|
||||
fbdevhw shadowfb exa $(XF86UTILS_SUBDIR) doc man \
|
||||
$(GLAMOR_EGL_SUBDIR) drivers
|
||||
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
From 38ae53c94a88c7bd5877c72a12582b60865e07ff Mon Sep 17 00:00:00 2001
|
||||
From: Hans de Goede <hdegoede@redhat.com>
|
||||
Date: Thu, 17 Apr 2014 15:50:44 +0200
|
||||
Subject: [PATCH] Fedora hack: Make the suid-root wrapper start the server with
|
||||
root rights
|
||||
|
||||
Do NOT upstream.
|
||||
|
||||
Since most display managers are not ready yet to start Xorg in way which will
|
||||
keep it working without root-rights, see:
|
||||
https://fedoraproject.org/wiki/Changes/XorgWithoutRootRights
|
||||
|
||||
Just keep starting X as root for now, but do it through the wrapper, by
|
||||
overriding the needs_root_rights = -1 (auto) default and setting it to 1.
|
||||
|
||||
We set a special environment variable when starting X in a way where root
|
||||
rights are not needed (from gdm and startx) and keep the upstream
|
||||
needs_root_rights = -1 (auto) default in that case.
|
||||
|
||||
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
||||
---
|
||||
hw/xfree86/xorg-wrapper.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/hw/xfree86/xorg-wrapper.c b/hw/xfree86/xorg-wrapper.c
|
||||
index 4c37cfc..ae5d27f 100644
|
||||
--- a/hw/xfree86/xorg-wrapper.c
|
||||
+++ b/hw/xfree86/xorg-wrapper.c
|
||||
@@ -198,6 +198,9 @@ int main(int argc, char *argv[])
|
||||
int needs_root_rights = -1;
|
||||
char *const empty_envp[1] = { NULL, };
|
||||
|
||||
+ if (getenv("XORG_RUN_AS_USER_OK") == NULL)
|
||||
+ needs_root_rights = 1;
|
||||
+
|
||||
progname = argv[0];
|
||||
|
||||
parse_config(&allowed, &needs_root_rights);
|
||||
--
|
||||
2.4.3
|
||||
|
|
@ -14,7 +14,7 @@ Signed-off-by: Eric Anholt <eric@anholt.net>
|
|||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
|
||||
index cef47da03d..dadbac6c8f 100644
|
||||
index cef47da03..dadbac6c8 100644
|
||||
--- a/hw/xfree86/common/xf86platformBus.c
|
||||
+++ b/hw/xfree86/common/xf86platformBus.c
|
||||
@@ -289,7 +289,7 @@ xf86platformProbe(void)
|
||||
|
@ -27,5 +27,5 @@ index cef47da03d..dadbac6c8f 100644
|
|||
}
|
||||
|
||||
--
|
||||
2.21.0
|
||||
2.14.4
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ xorg.conf snippet.
|
|||
Signed-off-by: Dave Airlie <airlied@gmail.com>
|
||||
[hdegoede@redhat.com: Make configurable, fix with nvidia, submit upstream]
|
||||
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
||||
[paper over crash in RRProviderAutoConfigGpuScreen - ajax]
|
||||
---
|
||||
hw/xfree86/common/xf86Config.c | 19 +++++++++++++++++++
|
||||
hw/xfree86/common/xf86Globals.c | 2 ++
|
||||
|
@ -274,7 +273,7 @@ index e4bc2bf..e04c18f 100644
|
|||
+ rrScrPrivPtr pScrPriv = rrGetScrPriv(pScreen);
|
||||
+ rrScrPrivPtr masterPriv = rrGetScrPriv(masterScreen);
|
||||
+ RRProviderPtr provider = pScrPriv->provider;
|
||||
+ RRProviderPtr master_provider = masterPriv ? masterPriv->provider : 0;
|
||||
+ RRProviderPtr master_provider = masterPriv->provider;
|
||||
+
|
||||
+ if (!provider || !master_provider)
|
||||
+ return;
|
||||
|
|
|
@ -1,17 +1,70 @@
|
|||
From 15a6d58414b85867f39237518f2b3bac7bba6a20 Mon Sep 17 00:00:00 2001
|
||||
From e84d6f25015d36202fd524b8b8d85d2324348ddb Mon Sep 17 00:00:00 2001
|
||||
From: Adam Jackson <ajax@redhat.com>
|
||||
Date: Tue, 29 May 2018 15:11:54 -0400
|
||||
Date: Mon, 19 Nov 2018 11:27:09 -0500
|
||||
Subject: [PATCH] link with -z now
|
||||
|
||||
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
||||
---
|
||||
hw/xfree86/Makefile.am | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
hw/dmx/Makefile.am | 2 +-
|
||||
hw/kdrive/ephyr/Makefile.am | 2 +-
|
||||
hw/vfb/Makefile.am | 2 +-
|
||||
hw/xfree86/Makefile.am | 3 ++-
|
||||
hw/xfree86/dixmods/Makefile.am | 6 +++---
|
||||
hw/xfree86/exa/Makefile.am | 2 +-
|
||||
hw/xfree86/fbdevhw/Makefile.am | 2 +-
|
||||
hw/xfree86/int10/Makefile.am | 2 +-
|
||||
hw/xfree86/shadowfb/Makefile.am | 2 +-
|
||||
hw/xfree86/utils/cvt/Makefile.am | 1 +
|
||||
hw/xfree86/utils/gtf/Makefile.am | 1 +
|
||||
hw/xfree86/vgahw/Makefile.am | 2 +-
|
||||
hw/xnest/Makefile.am | 2 +-
|
||||
hw/xwayland/Makefile.am | 2 +-
|
||||
14 files changed, 17 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/hw/dmx/Makefile.am b/hw/dmx/Makefile.am
|
||||
index eef84cb..9ab20cc 100644
|
||||
--- a/hw/dmx/Makefile.am
|
||||
+++ b/hw/dmx/Makefile.am
|
||||
@@ -78,7 +78,7 @@ XDMX_LIBS = \
|
||||
input/libdmxinput.a \
|
||||
config/libdmxconfig.a
|
||||
|
||||
-Xdmx_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
|
||||
+Xdmx_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) -Wl,-z,now -pie
|
||||
Xdmx_DEPENDENCIES= $(XDMX_LIBS)
|
||||
Xdmx_LDADD = $(XDMX_LIBS) $(XDMX_SYS_LIBS) $(XSERVER_SYS_LIBS)
|
||||
|
||||
diff --git a/hw/kdrive/ephyr/Makefile.am b/hw/kdrive/ephyr/Makefile.am
|
||||
index d12559b..cc37add 100644
|
||||
--- a/hw/kdrive/ephyr/Makefile.am
|
||||
+++ b/hw/kdrive/ephyr/Makefile.am
|
||||
@@ -78,7 +78,7 @@ Xephyr_LDADD = \
|
||||
|
||||
Xephyr_DEPENDENCIES = @KDRIVE_LOCAL_LIBS@ $(XEPHYR_GLAMOR_LIB)
|
||||
|
||||
-Xephyr_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
|
||||
+Xephyr_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) -W,-z,now -pie
|
||||
|
||||
relink:
|
||||
$(AM_V_at)rm -f $(bin_PROGRAMS) && $(MAKE) $(bin_PROGRAMS)
|
||||
diff --git a/hw/vfb/Makefile.am b/hw/vfb/Makefile.am
|
||||
index 7033397..c09a9c9 100644
|
||||
--- a/hw/vfb/Makefile.am
|
||||
+++ b/hw/vfb/Makefile.am
|
||||
@@ -20,7 +20,7 @@ XVFB_LIBS = \
|
||||
|
||||
Xvfb_LDADD = $(XVFB_LIBS) $(XVFB_SYS_LIBS) $(XSERVER_SYS_LIBS)
|
||||
Xvfb_DEPENDENCIES = $(XVFB_LIBS)
|
||||
-Xvfb_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
|
||||
+Xvfb_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) -Wl,-z,now -pie
|
||||
|
||||
relink:
|
||||
$(AM_V_at)rm -f Xvfb$(EXEEXT) && $(MAKE) Xvfb$(EXEEXT)
|
||||
diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
|
||||
index a7a1be2..197701d 100644
|
||||
index 32f98b5..5955148 100644
|
||||
--- a/hw/xfree86/Makefile.am
|
||||
+++ b/hw/xfree86/Makefile.am
|
||||
@@ -78,7 +78,7 @@ Xorg_LDADD = \
|
||||
@@ -78,12 +78,13 @@ Xorg_LDADD = \
|
||||
$(XSERVER_SYS_LIBS)
|
||||
Xorg_DEPENDENCIES = $(LOCAL_LIBS)
|
||||
|
||||
|
@ -20,6 +73,142 @@ index a7a1be2..197701d 100644
|
|||
|
||||
if SUID_WRAPPER
|
||||
wrapexecdir = $(SUID_WRAPPER_DIR)
|
||||
wrapexec_PROGRAMS = Xorg.wrap
|
||||
Xorg_wrap_SOURCES = xorg-wrapper.c
|
||||
+Xorg_wrap_LDFLAGS = -Wl,-z,now -pie
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = xorg.conf.example
|
||||
diff --git a/hw/xfree86/dixmods/Makefile.am b/hw/xfree86/dixmods/Makefile.am
|
||||
index 856659f..6ab101b 100644
|
||||
--- a/hw/xfree86/dixmods/Makefile.am
|
||||
+++ b/hw/xfree86/dixmods/Makefile.am
|
||||
@@ -17,17 +17,17 @@ AM_CPPFLAGS = @XORG_INCS@ \
|
||||
-I$(top_srcdir)/miext/shadow \
|
||||
-I$(top_srcdir)/glx
|
||||
|
||||
-libfb_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
||||
+libfb_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG) -Wl,-z,now
|
||||
libfb_la_LIBADD = $(top_builddir)/fb/libfb.la
|
||||
libfb_la_SOURCES = fbmodule.c
|
||||
libfb_la_CFLAGS = $(AM_CFLAGS)
|
||||
|
||||
-libwfb_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
||||
+libwfb_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG) -Wl,-z,now
|
||||
libwfb_la_LIBADD = $(top_builddir)/fb/libwfb.la
|
||||
libwfb_la_SOURCES = fbmodule.c
|
||||
libwfb_la_CFLAGS = $(AM_CFLAGS) -DFB_ACCESS_WRAPPER
|
||||
|
||||
-libglx_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
||||
+libglx_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG) -Wl,-z,now
|
||||
libglx_la_LIBADD = $(top_builddir)/glx/libglx.la $(GLX_SYS_LIBS)
|
||||
if DRI2
|
||||
libglx_la_LIBADD += $(top_builddir)/glx/libglxdri.la
|
||||
diff --git a/hw/xfree86/exa/Makefile.am b/hw/xfree86/exa/Makefile.am
|
||||
index ccbb305..7bf7137 100644
|
||||
--- a/hw/xfree86/exa/Makefile.am
|
||||
+++ b/hw/xfree86/exa/Makefile.am
|
||||
@@ -2,7 +2,7 @@ SUBDIRS = man
|
||||
|
||||
module_LTLIBRARIES = libexa.la
|
||||
|
||||
-libexa_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
||||
+libexa_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG) -Wl,-z,now
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
$(XORG_INCS) \
|
||||
diff --git a/hw/xfree86/fbdevhw/Makefile.am b/hw/xfree86/fbdevhw/Makefile.am
|
||||
index 37cd88c..895cfab 100644
|
||||
--- a/hw/xfree86/fbdevhw/Makefile.am
|
||||
+++ b/hw/xfree86/fbdevhw/Makefile.am
|
||||
@@ -2,7 +2,7 @@ SUBDIRS = man
|
||||
|
||||
module_LTLIBRARIES = libfbdevhw.la
|
||||
|
||||
-libfbdevhw_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
||||
+libfbdevhw_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG) -Wl,-z,now
|
||||
|
||||
if FBDEVHW
|
||||
libfbdevhw_la_SOURCES = fbdevhw.c
|
||||
diff --git a/hw/xfree86/int10/Makefile.am b/hw/xfree86/int10/Makefile.am
|
||||
index 66cb14d..aad47a1 100644
|
||||
--- a/hw/xfree86/int10/Makefile.am
|
||||
+++ b/hw/xfree86/int10/Makefile.am
|
||||
@@ -4,7 +4,7 @@ sdk_HEADERS = xf86int10.h
|
||||
|
||||
EXTRA_CFLAGS =
|
||||
|
||||
-libint10_la_LDFLAGS = -avoid-version
|
||||
+libint10_la_LDFLAGS = -avoid-version -Wl,-z,now
|
||||
libint10_la_LIBADD = $(PCIACCESS_LIBS)
|
||||
|
||||
COMMON_SOURCES = \
|
||||
diff --git a/hw/xfree86/shadowfb/Makefile.am b/hw/xfree86/shadowfb/Makefile.am
|
||||
index 67fb2e4..a8c2d59 100644
|
||||
--- a/hw/xfree86/shadowfb/Makefile.am
|
||||
+++ b/hw/xfree86/shadowfb/Makefile.am
|
||||
@@ -1,5 +1,5 @@
|
||||
module_LTLIBRARIES = libshadowfb.la
|
||||
-libshadowfb_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
||||
+libshadowfb_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG) -Wl,-z,now
|
||||
libshadowfb_la_SOURCES = sfbmodule.c shadowfb.c
|
||||
libshadowfb_la_LIBADD = $(PIXMAN_LIBS)
|
||||
|
||||
diff --git a/hw/xfree86/utils/cvt/Makefile.am b/hw/xfree86/utils/cvt/Makefile.am
|
||||
index 26abeb4..19b0eba 100644
|
||||
--- a/hw/xfree86/utils/cvt/Makefile.am
|
||||
+++ b/hw/xfree86/utils/cvt/Makefile.am
|
||||
@@ -33,3 +33,4 @@ cvt_SOURCES = cvt.c \
|
||||
$(top_srcdir)/os/xprintf.c
|
||||
|
||||
cvt_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS)
|
||||
+cvt_LDFLAGS = -Wl,-z,now -pie
|
||||
diff --git a/hw/xfree86/utils/gtf/Makefile.am b/hw/xfree86/utils/gtf/Makefile.am
|
||||
index f77bf60..f520fb9 100644
|
||||
--- a/hw/xfree86/utils/gtf/Makefile.am
|
||||
+++ b/hw/xfree86/utils/gtf/Makefile.am
|
||||
@@ -25,3 +25,4 @@ bin_PROGRAMS = gtf
|
||||
gtf_SOURCES = gtf.c
|
||||
gtf_CFLAGS = $(XORG_CFLAGS)
|
||||
gtf_LDADD = -lm
|
||||
+gtf_LDFLAGS = -Wl,-z,now -pie
|
||||
diff --git a/hw/xfree86/vgahw/Makefile.am b/hw/xfree86/vgahw/Makefile.am
|
||||
index b8196a6..37ac499 100644
|
||||
--- a/hw/xfree86/vgahw/Makefile.am
|
||||
+++ b/hw/xfree86/vgahw/Makefile.am
|
||||
@@ -1,5 +1,5 @@
|
||||
module_LTLIBRARIES = libvgahw.la
|
||||
-libvgahw_la_LDFLAGS = -avoid-version
|
||||
+libvgahw_la_LDFLAGS = -avoid-version -Wl,-z,now
|
||||
libvgahw_la_LIBADD = $(PCIACCESS_LIBS)
|
||||
libvgahw_la_SOURCES = vgaHW.c vgaHWmodule.c
|
||||
AM_CPPFLAGS = $(XORG_INCS) -I$(srcdir)/../ddc -I$(srcdir)/../i2c
|
||||
diff --git a/hw/xnest/Makefile.am b/hw/xnest/Makefile.am
|
||||
index c77da64..185803c 100644
|
||||
--- a/hw/xnest/Makefile.am
|
||||
+++ b/hw/xnest/Makefile.am
|
||||
@@ -51,7 +51,7 @@ Xnest_SOURCES = $(SRCS)
|
||||
|
||||
Xnest_DEPENDENCIES = $(XNEST_LIBS)
|
||||
Xnest_LDADD = $(XNEST_LIBS) $(XNEST_SYS_LIBS) $(XSERVER_SYS_LIBS)
|
||||
-Xnest_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
|
||||
+Xnest_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) -Wl,-z,now -pie
|
||||
|
||||
EXTRA_DIST = icon \
|
||||
screensaver
|
||||
diff --git a/hw/xwayland/Makefile.am b/hw/xwayland/Makefile.am
|
||||
index bc1cb85..2f70cd1 100644
|
||||
--- a/hw/xwayland/Makefile.am
|
||||
+++ b/hw/xwayland/Makefile.am
|
||||
@@ -28,7 +28,7 @@ Xwayland_LDADD = \
|
||||
$(XWAYLAND_SYS_LIBS) \
|
||||
$(top_builddir)/Xext/libXvidmode.la \
|
||||
$(XSERVER_SYS_LIBS)
|
||||
-Xwayland_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
|
||||
+Xwayland_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) -Wl,-z,now -pie
|
||||
|
||||
Xwayland_built_sources =
|
||||
|
||||
--
|
||||
2.17.0
|
||||
2.19.1
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From 0816e8fca6194dfb4cc94c3a7fcb2c7f2a921386 Mon Sep 17 00:00:00 2001
|
||||
From 28320833d61af76dc3b77b985c69706f3e021836 Mon Sep 17 00:00:00 2001
|
||||
From: Adam Jackson <ajax@redhat.com>
|
||||
Date: Tue, 18 Sep 2018 14:37:51 -0400
|
||||
Subject: [PATCH xserver] linux: Make platform device probe less fragile
|
||||
|
@ -14,12 +14,11 @@ Fortunately we know the format of the busid string, and it happens to
|
|||
almost be the same as the ID_PATH variable from udev. Use that instead
|
||||
and stop calling drmSetInterfaceVersion.
|
||||
|
||||
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
||||
---
|
||||
config/udev.c | 17 ++++++++++++-----
|
||||
hw/xfree86/os-support/linux/lnx_platform.c | 20 ++------------------
|
||||
2 files changed, 14 insertions(+), 23 deletions(-)
|
||||
hw/xfree86/os-support/linux/lnx_platform.c | 13 ++-----------
|
||||
2 files changed, 14 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/config/udev.c b/config/udev.c
|
||||
index 3a73189e25..8c6c4b6665 100644
|
||||
|
@ -88,17 +87,10 @@ index 3a73189e25..8c6c4b6665 100644
|
|||
no_probe:
|
||||
udev_device_unref(udev_device);
|
||||
diff --git a/hw/xfree86/os-support/linux/lnx_platform.c b/hw/xfree86/os-support/linux/lnx_platform.c
|
||||
index 70374ace88..e623062192 100644
|
||||
index 70374ace88..0eb6d22875 100644
|
||||
--- a/hw/xfree86/os-support/linux/lnx_platform.c
|
||||
+++ b/hw/xfree86/os-support/linux/lnx_platform.c
|
||||
@@ -23,13 +23,13 @@
|
||||
static Bool
|
||||
get_drm_info(struct OdevAttributes *attribs, char *path, int delayed_index)
|
||||
{
|
||||
- drmSetVersion sv;
|
||||
drmVersionPtr v;
|
||||
- char *buf;
|
||||
int fd;
|
||||
@@ -30,6 +30,8 @@ get_drm_info(struct OdevAttributes *attribs, char *path, int delayed_index)
|
||||
int err = 0;
|
||||
Bool paused, server_fd = FALSE;
|
||||
|
||||
|
@ -107,15 +99,10 @@ index 70374ace88..e623062192 100644
|
|||
fd = systemd_logind_take_fd(attribs->major, attribs->minor, path, &paused);
|
||||
if (fd != -1) {
|
||||
if (paused) {
|
||||
@@ -48,18 +48,6 @@ get_drm_info(struct OdevAttributes *attribs, char *path, int delayed_index)
|
||||
if (fd == -1)
|
||||
return FALSE;
|
||||
@@ -53,13 +55,6 @@ get_drm_info(struct OdevAttributes *attribs, char *path, int delayed_index)
|
||||
sv.drm_dd_major = -1; /* Don't care */
|
||||
sv.drm_dd_minor = -1; /* Don't care */
|
||||
|
||||
- sv.drm_di_major = 1;
|
||||
- sv.drm_di_minor = 4;
|
||||
- sv.drm_dd_major = -1; /* Don't care */
|
||||
- sv.drm_dd_minor = -1; /* Don't care */
|
||||
-
|
||||
- err = drmSetInterfaceVersion(fd, &sv);
|
||||
- if (err) {
|
||||
- xf86Msg(X_ERROR, "%s: failed to set DRM interface version 1.4: %s\n",
|
||||
|
@ -126,7 +113,7 @@ index 70374ace88..e623062192 100644
|
|||
/* for a delayed probe we've already added the device */
|
||||
if (delayed_index == -1) {
|
||||
xf86_add_platform_device(attribs, FALSE);
|
||||
@@ -69,10 +57,6 @@ get_drm_info(struct OdevAttributes *attribs, char *path, int delayed_index)
|
||||
@@ -69,10 +64,6 @@ get_drm_info(struct OdevAttributes *attribs, char *path, int delayed_index)
|
||||
if (server_fd)
|
||||
xf86_platform_devices[delayed_index].flags |= XF86_PDEV_SERVER_FD;
|
||||
|
||||
|
@ -138,5 +125,5 @@ index 70374ace88..e623062192 100644
|
|||
if (!v) {
|
||||
xf86Msg(X_ERROR, "%s: failed to query DRM version\n", path);
|
||||
--
|
||||
2.21.0
|
||||
2.19.0
|
||||
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
From 41e265988a0b6ec456ddd562253e0f82a7c2ede2 Mon Sep 17 00:00:00 2001
|
||||
From: Adam Jackson <ajax@redhat.com>
|
||||
Date: Fri, 27 Sep 2019 11:43:52 -0400
|
||||
Subject: [PATCH xserver] modesetting: Reduce "glamor initialization failed"
|
||||
message to X_INFO
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This might be an error or not, for example refusing to work on llvmpipe
|
||||
is normal and expected. glamor_egl_init() will print X_ERROR messages if
|
||||
appropriate, so we don't need to here.
|
||||
|
||||
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
|
||||
|
||||
(cherry picked from commit cbdde938cbaf604741cd057fac743859ada342ec)
|
||||
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
|
||||
---
|
||||
hw/xfree86/drivers/modesetting/driver.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c
|
||||
index 2aaea5f7d..783d53eaa 100644
|
||||
--- a/hw/xfree86/drivers/modesetting/driver.c
|
||||
+++ b/hw/xfree86/drivers/modesetting/driver.c
|
||||
@@ -772,7 +772,7 @@ try_enable_glamor(ScrnInfoPtr pScrn)
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "glamor initialized\n");
|
||||
ms->drmmode.glamor = TRUE;
|
||||
} else {
|
||||
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
|
||||
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
|
||||
"glamor initialization failed\n");
|
||||
}
|
||||
} else {
|
||||
--
|
||||
2.26.2
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
From efb4bc5b3da511d128144840d7eb3cf3c7cfa0ae Mon Sep 17 00:00:00 2001
|
||||
From: Adam Jackson <ajax@redhat.com>
|
||||
Date: Tue, 3 Sep 2019 12:10:37 -0400
|
||||
Subject: [PATCH] mustard: Add DRI2 fallback driver mappings for i965 and
|
||||
radeonsi
|
||||
|
||||
---
|
||||
hw/xfree86/dri2/pci_ids/pci_id_driver_map.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h b/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
|
||||
index 689a570..3825f52 100644
|
||||
--- a/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
|
||||
+++ b/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
|
||||
@@ -45,8 +45,10 @@ static const struct {
|
||||
int num_chips_ids;
|
||||
} driver_map[] = {
|
||||
{ 0x8086, "i965", "va_gl", i965_chip_ids, ARRAY_SIZE(i965_chip_ids) },
|
||||
+ { 0x8086, "i965", "va_gl", NULL, -1 },
|
||||
{ 0x1002, "r600","r600", r600_chip_ids, ARRAY_SIZE(r600_chip_ids) },
|
||||
{ 0x1002, "radeonsi", "radeonsi", radeonsi_chip_ids, ARRAY_SIZE(radeonsi_chip_ids) },
|
||||
+ { 0x1002, "radeonsi", "radeonsi", NULL, -1 },
|
||||
{ 0x10de, "nouveau", "nouveau", NULL, -1 },
|
||||
{ 0x1af4, "virtio_gpu", "virtio_gpu", virtio_gpu_chip_ids, ARRAY_SIZE(virtio_gpu_chip_ids) },
|
||||
{ 0x15ad, "vmwgfx", "vmwgfx", vmwgfx_chip_ids, ARRAY_SIZE(vmwgfx_chip_ids) },
|
||||
--
|
||||
2.23.0
|
||||
|
|
@ -0,0 +1,278 @@
|
|||
From b6e50ece375b6b1fbe053b30b52fc40dde5c682b Mon Sep 17 00:00:00 2001
|
||||
From: Adam Jackson <ajax@redhat.com>
|
||||
Date: Tue, 13 Nov 2018 10:11:36 -0500
|
||||
Subject: [PATCH] mustard: Don't probe for drivers not shipped in RHEL8
|
||||
|
||||
As with RHEL7, this is mostly to keep spurious probe messages out of the
|
||||
X log and prevent questions like "why isn't it loading mga on my
|
||||
G200SE" or "why isn't it loading radeon_dri.so on my RN50".
|
||||
---
|
||||
hw/xfree86/common/xf86pciBus.c | 162 --------------------
|
||||
hw/xfree86/dri2/pci_ids/pci_id_driver_map.h | 32 ----
|
||||
2 files changed, 194 deletions(-)
|
||||
|
||||
diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
|
||||
index b7f9999..398ed45 100644
|
||||
--- a/hw/xfree86/common/xf86pciBus.c
|
||||
+++ b/hw/xfree86/common/xf86pciBus.c
|
||||
@@ -1074,107 +1074,12 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md)
|
||||
const char *driverList[5] = { NULL, NULL, NULL, NULL, NULL };
|
||||
|
||||
switch (dev->vendor_id) {
|
||||
- /* AMD Geode LX */
|
||||
- case 0x1022:
|
||||
- if (dev->device_id == 0x2081)
|
||||
- driverList[0] = "geode";
|
||||
- break;
|
||||
- /* older Geode products acquired by AMD still carry an NSC vendor_id */
|
||||
- case 0x100b:
|
||||
- if (dev->device_id == 0x0030) {
|
||||
- /* NSC Geode GX2 specifically */
|
||||
- driverList[0] = "geode";
|
||||
- /* GX2 support started its life in the NSC tree and was later
|
||||
- forked by AMD for GEODE so we keep it as a backup */
|
||||
- driverList[1] = "nsc";
|
||||
- }
|
||||
- else
|
||||
- /* other NSC variant e.g. 0x0104 (SC1400), 0x0504 (SCx200) */
|
||||
- driverList[0] = "nsc";
|
||||
- break;
|
||||
- /* Cyrix Geode GX1 */
|
||||
- case 0x1078:
|
||||
- if (dev->device_id == 0x0104)
|
||||
- driverList[0] = "cyrix";
|
||||
- break;
|
||||
- case 0x1142:
|
||||
- driverList[0] = "apm";
|
||||
- break;
|
||||
- case 0xedd8:
|
||||
- driverList[0] = "ark";
|
||||
- break;
|
||||
- case 0x1a03:
|
||||
- driverList[0] = "ast";
|
||||
- break;
|
||||
case 0x1002:
|
||||
driverList[0] = "ati";
|
||||
break;
|
||||
- case 0x102c:
|
||||
- driverList[0] = "chips";
|
||||
- break;
|
||||
- case 0x1013:
|
||||
- driverList[0] = "cirrus";
|
||||
- break;
|
||||
- case 0x3d3d:
|
||||
- driverList[0] = "glint";
|
||||
- break;
|
||||
- case 0x105d:
|
||||
- driverList[0] = "i128";
|
||||
- break;
|
||||
case 0x8086:
|
||||
switch (dev->device_id)
|
||||
{
|
||||
- /* Intel i740 */
|
||||
- case 0x00d1:
|
||||
- case 0x7800:
|
||||
- driverList[0] = "i740";
|
||||
- break;
|
||||
- /* GMA500/Poulsbo */
|
||||
- case 0x8108:
|
||||
- case 0x8109:
|
||||
- /* Try psb driver on Poulsbo - if available */
|
||||
- driverList[0] = "psb";
|
||||
- driverList[1] = "psb_drv";
|
||||
- break;
|
||||
- /* GMA600/Oaktrail */
|
||||
- case 0x4100:
|
||||
- case 0x4101:
|
||||
- case 0x4102:
|
||||
- case 0x4103:
|
||||
- case 0x4104:
|
||||
- case 0x4105:
|
||||
- case 0x4106:
|
||||
- case 0x4107:
|
||||
- /* Atom E620/Oaktrail */
|
||||
- case 0x4108:
|
||||
- /* Medfield */
|
||||
- case 0x0130:
|
||||
- case 0x0131:
|
||||
- case 0x0132:
|
||||
- case 0x0133:
|
||||
- case 0x0134:
|
||||
- case 0x0135:
|
||||
- case 0x0136:
|
||||
- case 0x0137:
|
||||
- /* GMA 3600/CDV */
|
||||
- case 0x0be0:
|
||||
- case 0x0be1:
|
||||
- case 0x0be2:
|
||||
- case 0x0be3:
|
||||
- case 0x0be4:
|
||||
- case 0x0be5:
|
||||
- case 0x0be6:
|
||||
- case 0x0be7:
|
||||
- case 0x0be8:
|
||||
- case 0x0be9:
|
||||
- case 0x0bea:
|
||||
- case 0x0beb:
|
||||
- case 0x0bec:
|
||||
- case 0x0bed:
|
||||
- case 0x0bee:
|
||||
- case 0x0bef:
|
||||
- /* Use fbdev/vesa driver on Oaktrail, Medfield, CDV */
|
||||
- break;
|
||||
/* Default to intel only on pre-gen4 chips */
|
||||
case 0x3577:
|
||||
case 0x2562:
|
||||
@@ -1196,14 +1101,7 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md)
|
||||
break;
|
||||
}
|
||||
break;
|
||||
- case 0x102b:
|
||||
- driverList[0] = "mga";
|
||||
- break;
|
||||
- case 0x10c8:
|
||||
- driverList[0] = "neomagic";
|
||||
- break;
|
||||
case 0x10de:
|
||||
- case 0x12d2:
|
||||
{
|
||||
int idx = 0;
|
||||
|
||||
@@ -1229,77 +1127,17 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md)
|
||||
|
||||
driverList[idx++] = "nouveau";
|
||||
#endif
|
||||
- driverList[idx++] = "nv";
|
||||
break;
|
||||
}
|
||||
- case 0x1106:
|
||||
- driverList[0] = "openchrome";
|
||||
- break;
|
||||
case 0x1b36:
|
||||
driverList[0] = "qxl";
|
||||
break;
|
||||
- case 0x1163:
|
||||
- driverList[0] = "rendition";
|
||||
- break;
|
||||
- case 0x5333:
|
||||
- switch (dev->device_id) {
|
||||
- case 0x88d0:
|
||||
- case 0x88d1:
|
||||
- case 0x88f0:
|
||||
- case 0x8811:
|
||||
- case 0x8812:
|
||||
- case 0x8814:
|
||||
- case 0x8901:
|
||||
- driverList[0] = "s3";
|
||||
- break;
|
||||
- case 0x5631:
|
||||
- case 0x883d:
|
||||
- case 0x8a01:
|
||||
- case 0x8a10:
|
||||
- case 0x8c01:
|
||||
- case 0x8c03:
|
||||
- case 0x8904:
|
||||
- case 0x8a13:
|
||||
- driverList[0] = "s3virge";
|
||||
- break;
|
||||
- default:
|
||||
- driverList[0] = "savage";
|
||||
- break;
|
||||
- }
|
||||
- break;
|
||||
- case 0x1039:
|
||||
- driverList[0] = "sis";
|
||||
- break;
|
||||
- case 0x126f:
|
||||
- driverList[0] = "siliconmotion";
|
||||
- break;
|
||||
- case 0x121a:
|
||||
- if (dev->device_id < 0x0003)
|
||||
- driverList[0] = "voodoo";
|
||||
- else
|
||||
- driverList[0] = "tdfx";
|
||||
- break;
|
||||
- case 0x1011:
|
||||
- driverList[0] = "tga";
|
||||
- break;
|
||||
- case 0x1023:
|
||||
- driverList[0] = "trident";
|
||||
- break;
|
||||
- case 0x100c:
|
||||
- driverList[0] = "tseng";
|
||||
- break;
|
||||
case 0x80ee:
|
||||
driverList[0] = "vboxvideo";
|
||||
break;
|
||||
case 0x15ad:
|
||||
driverList[0] = "vmware";
|
||||
break;
|
||||
- case 0x18ca:
|
||||
- if (dev->device_id == 0x47)
|
||||
- driverList[0] = "xgixp";
|
||||
- else
|
||||
- driverList[0] = "xgi";
|
||||
- break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
diff --git a/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h b/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
|
||||
index 7036d10..689a570 100644
|
||||
--- a/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
|
||||
+++ b/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
|
||||
@@ -7,38 +7,12 @@
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
#endif
|
||||
|
||||
-static const int i915_chip_ids[] = {
|
||||
-#define CHIPSET(chip, desc, name) chip,
|
||||
-#include "pci_ids/i915_pci_ids.h"
|
||||
-#undef CHIPSET
|
||||
-};
|
||||
-
|
||||
static const int i965_chip_ids[] = {
|
||||
#define CHIPSET(chip, family, name) chip,
|
||||
#include "pci_ids/i965_pci_ids.h"
|
||||
#undef CHIPSET
|
||||
};
|
||||
|
||||
-#ifndef DRIVER_MAP_GALLIUM_ONLY
|
||||
-static const int r100_chip_ids[] = {
|
||||
-#define CHIPSET(chip, name, family) chip,
|
||||
-#include "pci_ids/radeon_pci_ids.h"
|
||||
-#undef CHIPSET
|
||||
-};
|
||||
-
|
||||
-static const int r200_chip_ids[] = {
|
||||
-#define CHIPSET(chip, name, family) chip,
|
||||
-#include "pci_ids/r200_pci_ids.h"
|
||||
-#undef CHIPSET
|
||||
-};
|
||||
-#endif
|
||||
-
|
||||
-static const int r300_chip_ids[] = {
|
||||
-#define CHIPSET(chip, name, family) chip,
|
||||
-#include "pci_ids/r300_pci_ids.h"
|
||||
-#undef CHIPSET
|
||||
-};
|
||||
-
|
||||
static const int r600_chip_ids[] = {
|
||||
#define CHIPSET(chip, name, family) chip,
|
||||
#include "pci_ids/r600_pci_ids.h"
|
||||
@@ -70,13 +44,7 @@ static const struct {
|
||||
const int *chip_ids;
|
||||
int num_chips_ids;
|
||||
} driver_map[] = {
|
||||
- { 0x8086, "i915", "i915", i915_chip_ids, ARRAY_SIZE(i915_chip_ids) },
|
||||
{ 0x8086, "i965", "va_gl", i965_chip_ids, ARRAY_SIZE(i965_chip_ids) },
|
||||
-#ifndef DRIVER_MAP_GALLIUM_ONLY
|
||||
- { 0x1002, "radeon", "radeon", r100_chip_ids, ARRAY_SIZE(r100_chip_ids) },
|
||||
- { 0x1002, "r200", "r200", r200_chip_ids, ARRAY_SIZE(r200_chip_ids) },
|
||||
-#endif
|
||||
- { 0x1002, "r300", "r300", r300_chip_ids, ARRAY_SIZE(r300_chip_ids) },
|
||||
{ 0x1002, "r600","r600", r600_chip_ids, ARRAY_SIZE(r600_chip_ids) },
|
||||
{ 0x1002, "radeonsi", "radeonsi", radeonsi_chip_ids, ARRAY_SIZE(radeonsi_chip_ids) },
|
||||
{ 0x10de, "nouveau", "nouveau", NULL, -1 },
|
||||
--
|
||||
2.19.1
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
From a4fc2f3a55776018eda20e09c11b3710f8f0e542 Mon Sep 17 00:00:00 2001
|
||||
From: Adam Jackson <ajax@redhat.com>
|
||||
Date: Fri, 26 Oct 2018 14:16:17 -0400
|
||||
Subject: [PATCH xserver] mustard: Work around broken fbdev headers
|
||||
|
||||
This configure check is somewhat pointless as we have our own copy of
|
||||
the fbdev ioctl declarations. There's also a bug in the version of the
|
||||
kernel headers I happen to want to build against, where an IS_ENABLED()
|
||||
escaped into uapi like it oughtn't.
|
||||
|
||||
Nerf the test so we build the right fbdevhw code.
|
||||
|
||||
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
||||
---
|
||||
configure.ac | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 57a2331024..2b8477ed61 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -197,8 +197,7 @@ AC_CHECK_HEADERS([linux/agpgart.h sys/agpio.h sys/agpgart.h], AGP=yes)
|
||||
AM_CONDITIONAL(AGP, [test "x$AGP" = xyes])
|
||||
|
||||
dnl fbdev header
|
||||
-AC_CHECK_HEADERS([linux/fb.h], FBDEV=yes)
|
||||
-AM_CONDITIONAL(FBDEVHW, [test "x$FBDEV" = xyes])
|
||||
+AM_CONDITIONAL(FBDEVHW, true)
|
||||
|
||||
dnl FreeBSD kldload support (sys/linker.h)
|
||||
AC_CHECK_HEADERS([sys/linker.h],
|
||||
--
|
||||
2.19.1
|
||||
|
|
@ -0,0 +1,152 @@
|
|||
From acf5a0100c98a040e5e07a79ecf4a83627da770e Mon Sep 17 00:00:00 2001
|
||||
From: Hans de Goede <hdegoede@redhat.com>
|
||||
Date: Thu, 23 Mar 2017 12:54:07 +0100
|
||||
Subject: [PATCH xserver] xf86: dri2: Use va_gl as vdpau_driver for Intel i965
|
||||
GPUs
|
||||
|
||||
The modesetting driver (which now often is used with Intel GPUs),
|
||||
relies on dri2_probe_driver_name() to get the dri and vdpau driver
|
||||
names, before this commit it would always assign the same name to
|
||||
the 2 names. But the vdpau driver for i965 GPUs should be va_gl
|
||||
(i915 does not support vdpau at all).
|
||||
|
||||
This commit modifies the used lookup table and dri2_probe_driver_name()
|
||||
to set the vdpau_driver to va_gl for i965 GPUs, it leaves the 2
|
||||
names the same for all other GPUs.
|
||||
|
||||
Note this commit adds a FIXME comment for a memory leak in
|
||||
dri2_probe_driver_name(), that leak was already present and fixing
|
||||
it falls outside of the scope of this commit.
|
||||
|
||||
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1413733
|
||||
Cc: kwizart@gmail.com
|
||||
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
||||
---
|
||||
hw/xfree86/dri2/dri2.c | 31 +++++++++++++--------
|
||||
hw/xfree86/dri2/pci_ids/pci_id_driver_map.h | 21 +++++++-------
|
||||
2 files changed, 31 insertions(+), 21 deletions(-)
|
||||
|
||||
diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c
|
||||
index 6619e3aa7..1f8ad14bc 100644
|
||||
--- a/hw/xfree86/dri2/dri2.c
|
||||
+++ b/hw/xfree86/dri2/dri2.c
|
||||
@@ -1437,14 +1437,18 @@ get_prime_id(void)
|
||||
|
||||
#include "pci_ids/pci_id_driver_map.h"
|
||||
|
||||
-static char *
|
||||
-dri2_probe_driver_name(ScreenPtr pScreen, DRI2InfoPtr info)
|
||||
+static void
|
||||
+dri2_probe_driver_name(ScreenPtr pScreen, DRI2InfoPtr info,
|
||||
+ const char **dri_driver_ret,
|
||||
+ const char **vdpau_driver_ret)
|
||||
{
|
||||
#ifdef WITH_LIBDRM
|
||||
int i, j;
|
||||
- char *driver = NULL;
|
||||
drmDevicePtr dev;
|
||||
|
||||
+ *dri_driver_ret = NULL;
|
||||
+ *vdpau_driver_ret = NULL;
|
||||
+
|
||||
/* For non-PCI devices and drmGetDevice fail, just assume that
|
||||
* the 3D driver is named the same as the kernel driver. This is
|
||||
* currently true for vc4 and msm (freedreno).
|
||||
@@ -1456,12 +1460,14 @@ dri2_probe_driver_name(ScreenPtr pScreen, DRI2InfoPtr info)
|
||||
xf86DrvMsg(pScreen->myNum, X_ERROR,
|
||||
"[DRI2] Couldn't drmGetVersion() on non-PCI device, "
|
||||
"no driver name found.\n");
|
||||
- return NULL;
|
||||
+ return;
|
||||
}
|
||||
|
||||
- driver = strndup(version->name, version->name_len);
|
||||
+ /* FIXME this gets leaked */
|
||||
+ *dri_driver_ret = strndup(version->name, version->name_len);
|
||||
+ *vdpau_driver_ret = *dri_driver_ret;
|
||||
drmFreeVersion(version);
|
||||
- return driver;
|
||||
+ return;
|
||||
}
|
||||
|
||||
for (i = 0; driver_map[i].driver; i++) {
|
||||
@@ -1469,13 +1475,15 @@ dri2_probe_driver_name(ScreenPtr pScreen, DRI2InfoPtr info)
|
||||
continue;
|
||||
|
||||
if (driver_map[i].num_chips_ids == -1) {
|
||||
- driver = strdup(driver_map[i].driver);
|
||||
+ *dri_driver_ret = driver_map[i].driver;
|
||||
+ *vdpau_driver_ret = driver_map[i].vdpau_driver;
|
||||
goto out;
|
||||
}
|
||||
|
||||
for (j = 0; j < driver_map[i].num_chips_ids; j++) {
|
||||
if (driver_map[i].chip_ids[j] == dev->deviceinfo.pci->device_id) {
|
||||
- driver = strdup(driver_map[i].driver);
|
||||
+ *dri_driver_ret = driver_map[i].driver;
|
||||
+ *vdpau_driver_ret = driver_map[i].vdpau_driver;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
@@ -1487,9 +1495,9 @@ dri2_probe_driver_name(ScreenPtr pScreen, DRI2InfoPtr info)
|
||||
dev->deviceinfo.pci->vendor_id, dev->deviceinfo.pci->device_id);
|
||||
out:
|
||||
drmFreeDevice(&dev);
|
||||
- return driver;
|
||||
#else
|
||||
- return NULL;
|
||||
+ *dri_driver_ret = NULL;
|
||||
+ *vdpau_driver_ret = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1610,7 +1618,8 @@ DRI2ScreenInit(ScreenPtr pScreen, DRI2InfoPtr info)
|
||||
if (info->driverName) {
|
||||
ds->driverNames[0] = info->driverName;
|
||||
} else {
|
||||
- ds->driverNames[0] = ds->driverNames[1] = dri2_probe_driver_name(pScreen, info);
|
||||
+ dri2_probe_driver_name(pScreen, info,
|
||||
+ &ds->driverNames[0], &ds->driverNames[1]);
|
||||
if (!ds->driverNames[0])
|
||||
return FALSE;
|
||||
}
|
||||
diff --git a/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h b/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
|
||||
index da7ea1c1e..7036d1003 100644
|
||||
--- a/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
|
||||
+++ b/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
|
||||
@@ -66,21 +66,22 @@ static const int vmwgfx_chip_ids[] = {
|
||||
static const struct {
|
||||
int vendor_id;
|
||||
const char *driver;
|
||||
+ const char *vdpau_driver;
|
||||
const int *chip_ids;
|
||||
int num_chips_ids;
|
||||
} driver_map[] = {
|
||||
- { 0x8086, "i915", i915_chip_ids, ARRAY_SIZE(i915_chip_ids) },
|
||||
- { 0x8086, "i965", i965_chip_ids, ARRAY_SIZE(i965_chip_ids) },
|
||||
+ { 0x8086, "i915", "i915", i915_chip_ids, ARRAY_SIZE(i915_chip_ids) },
|
||||
+ { 0x8086, "i965", "va_gl", i965_chip_ids, ARRAY_SIZE(i965_chip_ids) },
|
||||
#ifndef DRIVER_MAP_GALLIUM_ONLY
|
||||
- { 0x1002, "radeon", r100_chip_ids, ARRAY_SIZE(r100_chip_ids) },
|
||||
- { 0x1002, "r200", r200_chip_ids, ARRAY_SIZE(r200_chip_ids) },
|
||||
+ { 0x1002, "radeon", "radeon", r100_chip_ids, ARRAY_SIZE(r100_chip_ids) },
|
||||
+ { 0x1002, "r200", "r200", r200_chip_ids, ARRAY_SIZE(r200_chip_ids) },
|
||||
#endif
|
||||
- { 0x1002, "r300", r300_chip_ids, ARRAY_SIZE(r300_chip_ids) },
|
||||
- { 0x1002, "r600", r600_chip_ids, ARRAY_SIZE(r600_chip_ids) },
|
||||
- { 0x1002, "radeonsi", radeonsi_chip_ids, ARRAY_SIZE(radeonsi_chip_ids) },
|
||||
- { 0x10de, "nouveau", NULL, -1 },
|
||||
- { 0x1af4, "virtio_gpu", virtio_gpu_chip_ids, ARRAY_SIZE(virtio_gpu_chip_ids) },
|
||||
- { 0x15ad, "vmwgfx", vmwgfx_chip_ids, ARRAY_SIZE(vmwgfx_chip_ids) },
|
||||
+ { 0x1002, "r300", "r300", r300_chip_ids, ARRAY_SIZE(r300_chip_ids) },
|
||||
+ { 0x1002, "r600","r600", r600_chip_ids, ARRAY_SIZE(r600_chip_ids) },
|
||||
+ { 0x1002, "radeonsi", "radeonsi", radeonsi_chip_ids, ARRAY_SIZE(radeonsi_chip_ids) },
|
||||
+ { 0x10de, "nouveau", "nouveau", NULL, -1 },
|
||||
+ { 0x1af4, "virtio_gpu", "virtio_gpu", virtio_gpu_chip_ids, ARRAY_SIZE(virtio_gpu_chip_ids) },
|
||||
+ { 0x15ad, "vmwgfx", "vmwgfx", vmwgfx_chip_ids, ARRAY_SIZE(vmwgfx_chip_ids) },
|
||||
{ 0x0000, NULL, NULL, 0 },
|
||||
};
|
||||
|
||||
--
|
||||
2.19.0
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 13118f3052e870c3cef6260235b489a288df5a59 Mon Sep 17 00:00:00 2001
|
||||
From 1070ffa0953e9200688fc8fae11e3ab0680b86f2 Mon Sep 17 00:00:00 2001
|
||||
From: Adam Jackson <ajax@redhat.com>
|
||||
Date: Tue, 9 Oct 2018 12:28:48 -0400
|
||||
Subject: [PATCH xserver] xfree86: LeaveVT from xf86CrtcCloseScreen
|
||||
|
@ -10,7 +10,7 @@ Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
|
|||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
|
||||
index 686cb51..710a41d 100644
|
||||
index 37a45bb3af..45d325f4d2 100644
|
||||
--- a/hw/xfree86/modes/xf86Crtc.c
|
||||
+++ b/hw/xfree86/modes/xf86Crtc.c
|
||||
@@ -776,6 +776,8 @@ xf86CrtcCloseScreen(ScreenPtr screen)
|
||||
|
@ -23,5 +23,5 @@ index 686cb51..710a41d 100644
|
|||
|
||||
xf86RotateCloseScreen(screen);
|
||||
--
|
||||
2.19.1
|
||||
2.19.0
|
||||
|
||||
|
|
|
@ -132,5 +132,5 @@ index 039dc4a4d..358d89f0f 100644
|
|||
xf86Info.vtno = -1;
|
||||
return 0;
|
||||
--
|
||||
2.21.0
|
||||
2.18.4
|
||||
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
From 71703e4e8bd00719eefad53c2ed6c604079f87ea Mon Sep 17 00:00:00 2001
|
||||
From: rpm-build <rpm-build>
|
||||
Date: Wed, 17 Oct 2018 09:00:59 +1000
|
||||
Subject: [PATCH xserver] xfree86: ensure the readlink buffer is
|
||||
null-terminated
|
||||
|
||||
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||
Reviewed-by: Dave Airlie <airlied@redhat.com>
|
||||
---
|
||||
hw/xfree86/fbdevhw/fbdevhw.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/hw/xfree86/fbdevhw/fbdevhw.c b/hw/xfree86/fbdevhw/fbdevhw.c
|
||||
index 95089515c..f146ff4a4 100644
|
||||
--- a/hw/xfree86/fbdevhw/fbdevhw.c
|
||||
+++ b/hw/xfree86/fbdevhw/fbdevhw.c
|
||||
@@ -331,12 +331,12 @@ fbdev_open(int scrnIndex, const char *dev, char **namep)
|
||||
|
||||
/* only touch non-PCI devices on this path */
|
||||
{
|
||||
- char buf[PATH_MAX];
|
||||
+ char buf[PATH_MAX] = {0};
|
||||
char *sysfs_path = NULL;
|
||||
char *node = strrchr(dev, '/') + 1;
|
||||
|
||||
if (asprintf(&sysfs_path, "/sys/class/graphics/%s", node) < 0 ||
|
||||
- readlink(sysfs_path, buf, sizeof(buf)) < 0 ||
|
||||
+ readlink(sysfs_path, buf, sizeof(buf) - 1) < 0 ||
|
||||
strstr(buf, "devices/pci")) {
|
||||
free(sysfs_path);
|
||||
close(fd);
|
||||
--
|
||||
2.19.1
|
||||
|
|
@ -1,16 +1,16 @@
|
|||
From f374410a00145d1703633547e90f10d43b3ded9f Mon Sep 17 00:00:00 2001
|
||||
From aa2f34d80ef3118eae0cce73b610c36cdcb978fe Mon Sep 17 00:00:00 2001
|
||||
From: Ben Skeggs <bskeggs@redhat.com>
|
||||
Date: Thu, 27 Apr 2017 10:52:24 +1000
|
||||
Subject: [PATCH] xfree86: use modesetting driver by default on GeForce 8 and
|
||||
newer
|
||||
Date: Sat, 22 Apr 2017 02:26:28 +1000
|
||||
Subject: [PATCH xserver] xfree86: use modesetting driver by default on GeForce
|
||||
8 and newer
|
||||
|
||||
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
|
||||
---
|
||||
hw/xfree86/common/xf86pciBus.c | 22 ++++++++++++++++++++++
|
||||
1 file changed, 22 insertions(+)
|
||||
hw/xfree86/common/xf86pciBus.c | 20 ++++++++++++++++++++
|
||||
1 file changed, 20 insertions(+)
|
||||
|
||||
diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
|
||||
index 682e723..2c36a3d 100644
|
||||
index 8158c2b62..78d1c947d 100644
|
||||
--- a/hw/xfree86/common/xf86pciBus.c
|
||||
+++ b/hw/xfree86/common/xf86pciBus.c
|
||||
@@ -37,6 +37,7 @@
|
||||
|
@ -21,11 +21,10 @@ index 682e723..2c36a3d 100644
|
|||
#include "os.h"
|
||||
#include "Pci.h"
|
||||
#include "xf86.h"
|
||||
@@ -1146,8 +1147,29 @@ xf86VideoPtrToDriverList(struct pci_device *dev,
|
||||
break;
|
||||
case 0x10de:
|
||||
case 0x12d2:
|
||||
+ {
|
||||
@@ -1190,6 +1191,25 @@ xf86VideoPtrToDriverList(struct pci_device *dev,
|
||||
int idx = 0;
|
||||
|
||||
#if defined(__linux__) || defined(__NetBSD__)
|
||||
+ char busid[32];
|
||||
+ int fd;
|
||||
+
|
||||
|
@ -45,12 +44,9 @@ index 682e723..2c36a3d 100644
|
|||
+ }
|
||||
+ }
|
||||
+
|
||||
driverList[0] = "nouveau";
|
||||
break;
|
||||
+ }
|
||||
case 0x1106:
|
||||
driverList[0] = "openchrome";
|
||||
break;
|
||||
driverList[idx++] = "nouveau";
|
||||
#endif
|
||||
driverList[idx++] = "nv";
|
||||
--
|
||||
1.8.3.1
|
||||
2.12.2
|
||||
|
||||
|
|
|
@ -19,22 +19,6 @@ Section "InputClass"
|
|||
Option "IgnoreRelativeAxes" "off"
|
||||
EndSection
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=612140
|
||||
# please make Evoluent VerticalMouse 3 work out of the box
|
||||
# Button mapping on this mouse is quirky
|
||||
Section "InputClass"
|
||||
Identifier "Evoluent VerticalMouse 3"
|
||||
MatchProduct "Evoluent VerticalMouse 3"
|
||||
# Sets following configuration:
|
||||
# top button: left
|
||||
# middle button: middle
|
||||
# bottom button: right
|
||||
# wheel click: middle
|
||||
# thumb button: 8 (back)
|
||||
Option "ButtonMapping" "1 2 2 4 5 6 7 3 8"
|
||||
EndSection
|
||||
|
||||
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=55867
|
||||
# Bug 55867 - Doesn't know how to tag XI_TRACKBALL
|
||||
Section "InputClass"
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
builddir="abi-rebuild"
|
||||
|
||||
#if [ -e "$builddir" ]; then
|
||||
# echo "Path '$builddir' exists. Move out of the way first"
|
||||
# exit 1
|
||||
#fi
|
||||
if [ -e "$builddir" ]; then
|
||||
echo "Path '$builddir' exists. Move out of the way first"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p $builddir
|
||||
pushd $builddir
|
||||
|
@ -31,7 +31,7 @@ driverlist=$(grep ^Requires *.spec | awk '{ print $2 }')
|
|||
popd
|
||||
|
||||
# Things not in -drivers for whatever reason...
|
||||
extradrivers="xorg-x11-glamor xorg-x11-drv-ivtv"
|
||||
extradrivers="xorg-x11-drv-ivtv"
|
||||
|
||||
rm -rf xorg-x11-drivers
|
||||
echo $driverlist $extradrivers | xargs -n1 $pkg co $branch
|
||||
|
@ -46,10 +46,6 @@ for i in xorg-x11-drv-*/ ; do
|
|||
#mockchain -r fedora-20-x86_64 -l $OLDPWD
|
||||
#mockchain -r rhel-7.0-candidate-x86_64 -l $OLDPWD
|
||||
|
||||
if [ $i = "xorg-x11-glamor" ]; then
|
||||
koji wait-repo f21-build --build $($pkg verrel)
|
||||
fi
|
||||
|
||||
popd
|
||||
done
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ SERVERNUM=99
|
|||
AUTHFILE=
|
||||
ERRORFILE=/dev/null
|
||||
STARTWAIT=3
|
||||
XVFBARGS="-screen 0 640x480x8"
|
||||
XVFBARGS="-screen 0 640x480x24"
|
||||
LISTENTCP="-nolisten tcp"
|
||||
XAUTHPROTO=.
|
||||
|
||||
|
@ -142,7 +142,7 @@ if [ -z "$*" ]; then
|
|||
exit 2
|
||||
fi
|
||||
|
||||
if ! which xauth >/dev/null; then
|
||||
if ! type xauth >/dev/null; then
|
||||
error "xauth command not found"
|
||||
exit 3
|
||||
fi
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue