i965/fs: Split VGRFs after lowering pull constants
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 19 Aug 2015 21:29:53 +0000 (14:29 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 27 Aug 2015 19:09:36 +0000 (12:09 -0700)
commitfee0c5af11dd0995de96e7053377d425a66d03a0
treed2a6fa7e443123105b897ca590bdc0d0fe44a423
parentf2e667172a6382f81d1f3e709f02c7ee6cfda4c7
i965/fs: Split VGRFs after lowering pull constants

The split_virtual_grfs code doesn't properly rewrite reladdr so we need to
make sure that any uniform indirects are lowered away first.

This fixes the glsl-fs-uniform-indexed-by-swizzled-vec4.shader_test in piglit

Cc: "10.6" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp