Created attachment 75382[details]
apitrace dump using ubo
I switched from glUniform to UBO and get sometimes short black lines. I've made a trimed apitrace dump so that the last call is the corrupted one.
The expected result will be shown on the other apitrace dump with glUniform (there are many gl errors because of uploading to optimized out uniforms, please ignore them)
I'll also attach the affected region of the framebuffer.
My specs:
HD4000
3.0 Mesa 9.2-devel (git-0a82828)

Landed now:
commit 1323772543083dec23baf5a50222bdfc88ff6c3a
Author: Eric Anholt <eric@anholt.net>
Date: Wed Mar 6 15:58:46 2013 -0800
i965/fs: Fix broken rendering in large shaders with UBO loads.
The lowering process creates a new vgrf on gen7 that should be represented
in live interval analysis. As-is, it was getting a conflicting allocation
with gl_FragDepth in the dolphin emulator, producing broken rendering.
NOTE: This is a candidate for the 9.1 branch.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=61317
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
It should get cherry-picked to stable in the next round.