aboutsummaryrefslogtreecommitdiffstats
path: root/xorg-server-hwcursor-gamma/0001-glamor-make-current-in-prepare-paths.patch
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-14 18:09:37 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-14 18:09:37 +0200
commit892616b31a52c26295d077725dc6aa59ad1105fd (patch)
treeb975d26bd655aa2af546d5c933016be499a481e7 /xorg-server-hwcursor-gamma/0001-glamor-make-current-in-prepare-paths.patch
parenticu-48 is being replace by icu48 (diff)
downloadaur-packages-892616b31a52c26295d077725dc6aa59ad1105fd.tar.gz
aur-packages-892616b31a52c26295d077725dc6aa59ad1105fd.tar.bz2
aur-packages-892616b31a52c26295d077725dc6aa59ad1105fd.tar.xz
update xorg-server-hwcursor-gamma
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--xorg-server-hwcursor-gamma/0001-glamor-make-current-in-prepare-paths.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/xorg-server-hwcursor-gamma/0001-glamor-make-current-in-prepare-paths.patch b/xorg-server-hwcursor-gamma/0001-glamor-make-current-in-prepare-paths.patch
new file mode 100644
index 0000000..6167395
--- /dev/null
+++ b/xorg-server-hwcursor-gamma/0001-glamor-make-current-in-prepare-paths.patch
@@ -0,0 +1,34 @@
+From 422a9f7f37eb6027fa4d20a4be208978832be6d6 Mon Sep 17 00:00:00 2001
+From: Dave Airlie <airlied@redhat.com>
+Date: Wed, 15 Jul 2015 17:54:03 +1000
+Subject: [PATCH] glamor: make current in prepare paths
+
+Lots of the accel paths only make current once they start
+doing someting, so a lot of them call the bail paths without
+make current, which means on PRIME systems for example
+we end up in the wrong context.
+
+Add a prepare pixmap in the prepare fallback path.
+
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90667
+Signed-off-by: Dave Airlie <airlied@redhat.com>
+---
+ glamor/glamor_prepare.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/glamor/glamor_prepare.c b/glamor/glamor_prepare.c
+index 9bfc557..68fb58f 100644
+--- a/glamor/glamor_prepare.c
++++ b/glamor/glamor_prepare.c
+@@ -45,6 +45,8 @@ glamor_prep_pixmap_box(PixmapPtr pixmap, glamor_access_t access, BoxPtr box)
+ if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(priv))
+ return TRUE;
+
++ glamor_make_current(glamor_priv);
++
+ RegionInit(&region, box, 1);
+
+ /* See if it's already mapped */
+--
+2.4.3
+