i965/fs: Use MOV_INDIRECT for all indirect uniform loads
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 Nov 2015 23:12:20 +0000 (15:12 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 14 Dec 2015 23:58:09 +0000 (15:58 -0800)
commita3cd95a88417d0ee5622d73f6a2f6aa02bb7e54a
treece5863e1f3461cf1c8c496a77c6312b96b1ef9c7
parent7ba70b1b5121577983c3493e181ee3568563f22e
i965/fs: Use MOV_INDIRECT for all indirect uniform loads

Instead of using reladdr, this commit changes the FS backend to emit a
MOV_INDIRECT whenever we need an indirect uniform load.  We also have to
rework some of the other bits of the backend to handle this new form of
uniform load.  The obvious change is that demote_pull_constants now acts
more like a lowering pass when it hits a MOV_INDIRECT.
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_nir.cpp