mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 02:10:35 +01:00
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>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit db5337afb2)
This commit is contained in:
parent
fb17307b1b
commit
a420301a8b
1 changed files with 2 additions and 0 deletions
|
|
@ -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(®ion, box, 1);
|
||||
|
||||
/* See if it's already mapped */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue