Performance degrades after several glXMakeCurrent/glXMakeContextCurrent calls
Submitted by Steve
Assigned to Xorg Project Team
Description
Created attachment 68138 Modified isosurf sample from wxWidgets
It seems that on Sandybridge chipsets performance degrades after making several calls to glXMakeCurrent and/or glXMakeContextCurrent calls and Xorg process will slowly ramp up CPU. This issue has been repeated with Ubuntu 10.04 running Mesa 7.10 drivers, Ubuntu 12.04 running Mesa 8.x drivers, and Ubuntu 12.04 running Mesa 9.1-devel drivers.
If you create multiple contexts and change between them this problem doesn't seem to happen. It seems to only happen if you have one context and change between several different drawables.
I've modified a wxWidgets sample in order to demonstrate and reproduce the problem. Note that in my code I call SwapBuffers, but this is not necessary to reproduce the issue.
Attachment 68138, "Modified isosurf sample from wxWidgets":
isosurf.cpp
Version: git