It could be similar bugs in compton and kwin. :) If this started recently, maybe you can try bisecting Mesa. I wonder if this might be related to bug 104599.