https://bugs.freedesktop.org/show_bug.cgi?id=66731
--- Comment #1 from Vadim Girlin ptpzz@yandex.ru --- Created attachment 82247 --> https://bugs.freedesktop.org/attachment.cgi?id=82247&action=edit shader dump
Looks like it's llvm backend's issue, I'm attaching the dump of the failing shader.
As far as I know, SET_GRADIENTS_x instructions should be in the same TEX clause with SAMPLE_G instructions that use corresponding gradients. SB ignores SET_GRADIENTS_x instructions in separate clauses and this makes the problem more noticeable.
IIRC there was also piglit test failing due to this problem with llvm backend.