Does this patch fix it? http://cgit.freedesktop.org/mesa/mesa/commit/?id=d3c08309abd17b6e0d466b677af57e3cc74b0e00