https://bugs.freedesktop.org/show_bug.cgi?id=36965
--- Comment #3 from Martin Lambers marlam@marlam.de 2011-05-12 10:20:51 PDT --- (In reply to comment #2)
BTW this should be probably a mesa core bug, right?
There is code in Mesa to handle SRGB textures correctly, see http://cgit.freedesktop.org/mesa/mesa/tree/src/mesa/main/texgetimage.c lines 223-301.
I guess drivers can override this, but I don't know the internal structure of Mesa.