Created attachment 82247 [details]
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.