Potential race condition where X commands haven't finished processing when we bind a texture and generate mipmaps
Bug #1016367 reported by
Sam Spilsbury
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz |
Fix Released
|
High
|
Sam Spilsbury | ||
Compiz Core |
Incomplete
|
Undecided
|
Unassigned | ||
compiz (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
There's a potential race condition in this code:
(*GL::
(*GL::
If there are changes to the pixmap, or if pixmap goes away in between those calls, then the resultant call will be invalid. We should instead grab the server, get the pixmap, wait for the server and then attempt to bind it. That wil also guaruntee tear-free pixmap binds.
Related branches
lp://staging/~compiz-team/compiz/compiz.fix_1016367
- Daniel van Vugt: Approve
-
Diff: 77 lines (+22/-6)2 files modifiedplugins/opengl/src/privatetexture.h (+2/-0)
plugins/opengl/src/texture.cpp (+20/-6)
lp://staging/~sil2100/compiz-core/cherry_3275
Ready for review
for merging
into
lp://staging/compiz-core
- Daniel van Vugt: Disapprove
-
Diff: 77 lines (+22/-6)2 files modifiedplugins/opengl/src/privatetexture.h (+2/-0)
plugins/opengl/src/texture.cpp (+20/-6)
Changed in compiz: | |
importance: | Undecided → High |
assignee: | nobody → Sam Spilsbury (smspillaz) |
milestone: | none → 0.9.8.0 |
status: | New → In Progress |
description: | updated |
Changed in compiz: | |
status: | In Progress → Fix Committed |
Changed in compiz-core: | |
status: | New → In Progress |
assignee: | nobody → Łukasz Zemczak (sil2100) |
Changed in compiz: | |
status: | Fix Committed → Fix Released |
Changed in compiz-core: | |
status: | In Progress → Incomplete |
assignee: | Łukasz Zemczak (sil2100) → nobody |
To post a comment you must log in.
This bug was fixed in the package compiz - 1:0.9.8.0-0ubuntu1
--------------- 8.0-0ubuntu1) quantal-proposed; urgency=low
compiz (1:0.9.
* debian/control, debian/rules:
- enable gles on armel and armhf
- use dh-translations rather than custom code
[ Sam Spilsbury ] patches/ workaround_ broken_ drivers. patch
* Enable OpenGL ES building
- Refresh debian/
- Remove non-ported plugins from compiz-plugins
- Add FindOpenGLES2.cmake to compiz-dev
[ Timo Jyrinki ] patches/ compiz- package- gles2.patch:
* New upstream release.
- Code to make compiz work on GLES. This includes several changes
to the compiz API. (LP: #201342) (LP: #901097) (LP: #1004251)
(LP: #1037710)
- Draft first 0.9.8.0 NEWS and bump VERSION
* debian/
- Remove, obsoleted by the upstream GLES work
* Disable plugins that don't work on pure GLES on armhf/armel:
- bench, firepaint, mblur, showmouse, splash, showrepaint, td, widget
-- Sebastien Bacher <email address hidden> Fri, 31 Aug 2012 22:59:50 +0200