i965/fs: Make half(fs_reg, unsigned) handle register files more explicitly
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 May 2015 22:57:11 +0000 (15:57 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 6 May 2015 17:29:29 +0000 (10:29 -0700)
commitcf4607e85339c3cfd6ab5fd4a28985c9fafb0b86
treecc81f8837904794e0c3d00157628279ca6827cda
parent88414de45e723a7fe8f052a3ab616aa7bc568519
i965/fs: Make half(fs_reg, unsigned) handle register files more explicitly

Previously, we had a special case for uniforms and immediates and then a
bunch of asserts for various other pessimal things.  This commit changes it
so that it explicitly does something on each register file.  Some of them
are disallowed and others are treated properly.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_ir_fs.h