mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-08 05:40:34 +01:00
Merge branch 'glamor-fix-potential-bo-race' into 'master'
glamor: Force to flush when copying an exporting pixmap See merge request xorg/xserver!1706
This commit is contained in:
commit
6757dca6df
1 changed files with 5 additions and 0 deletions
|
|
@ -359,6 +359,11 @@ glamor_make_pixmap_exportable(PixmapPtr pixmap, Bool modifiers_ok)
|
|||
0, 0, width, height, 0, 0);
|
||||
FreeScratchGC(scratch_gc);
|
||||
|
||||
/* In case that the pixmap backing BO importer's command stream accidentally
|
||||
* gets flushed first.
|
||||
*/
|
||||
glFlush();
|
||||
|
||||
/* Now, swap the tex/gbm/EGLImage/etc. of the exported pixmap into
|
||||
* the original pixmap struct.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue