i965/fs: Add support for MOV_INDIRECT on pre-Broadwell hardware
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 Nov 2015 17:01:11 +0000 (09:01 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 Apr 2016 22:59:33 +0000 (15:59 -0700)
commit27bd8ac6f309b9f052a7fa9380ac5e12fb686e31
tree384b317b2a61f29275088e6f50414dd9ea585d52
parent889e6054b7795baa789cc771e76e009d1605efae
i965/fs: Add support for MOV_INDIRECT on pre-Broadwell hardware

While we're at it, we also add support for the possibility that the
indirect is, in fact, a constant.  This shouldn't happen in the common case
(if it does, that means NIR failed to constant-fold something), but it's
possible so we should handle it.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_generator.cpp