Blame SOURCES/0001-glamor-make-current-in-prepare-paths.patch

47f74b
From db5337afb248edf81087cf8d74006fc496d70589 Mon Sep 17 00:00:00 2001
47f74b
From: Dave Airlie <airlied@redhat.com>
47f74b
Date: Wed, 15 Jul 2015 17:56:11 +1000
47f74b
Subject: [PATCH] glamor: make current in prepare paths
47f74b
MIME-Version: 1.0
47f74b
Content-Type: text/plain; charset=UTF-8
47f74b
Content-Transfer-Encoding: 8bit
47f74b
47f74b
Lots of the accel paths only make current once they start
47f74b
doing someting, so a lot of them call the bail paths without
47f74b
make current, which means on PRIME systems for example
47f74b
we end up in the wrong context.
47f74b
47f74b
Add a prepare pixmap in the prepare fallback path.
47f74b
47f74b
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90667
47f74b
Signed-off-by: Dave Airlie <airlied@redhat.com>
47f74b
Signed-off-by: Eric Anholt <eric@anholt.net>
47f74b
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
47f74b
Reviewed-by: Eric Anholt <eric@anholt.net>
47f74b
---
47f74b
 glamor/glamor_prepare.c | 2 ++
47f74b
 1 file changed, 2 insertions(+)
47f74b
47f74b
diff --git a/glamor/glamor_prepare.c b/glamor/glamor_prepare.c
47f74b
index 833291c..5a73e6c 100644
47f74b
--- a/glamor/glamor_prepare.c
47f74b
+++ b/glamor/glamor_prepare.c
47f74b
@@ -45,6 +45,8 @@ glamor_prep_pixmap_box(PixmapPtr pixmap, glamor_access_t access, BoxPtr box)
47f74b
     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(priv))
47f74b
         return TRUE;
47f74b
 
47f74b
+    glamor_make_current(glamor_priv);
47f74b
+
47f74b
     RegionInit(&region, box, 1);
47f74b
 
47f74b
     /* See if it's already mapped */
47f74b
-- 
47f74b
2.4.3
47f74b