Here's a series trying to fix up glDrawBuffers handling. I was initially looking into splitting up i915/i965 intel_draw_buffers, and ended up 4 patches deep in yak hair while trying to track down how completeness was actually working.