i965/fs: Use the actual regsister width in brw_reg_from_fs_reg
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Oct 2014 17:46:48 +0000 (10:46 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Oct 2014 20:17:03 +0000 (13:17 -0700)
commitb33e5465a7b62cfa05a29f163659ca60d30fe6c9
tree9c1b81a8cb2a4492678580629d80c745c9cbe000
parent75986830b40d2442be3d22c25dde5d70682babef
i965/fs: Use the actual regsister width in brw_reg_from_fs_reg

This fixes a bug where 1-wide operations don't properly translate down to
1-wide instructions.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp