i965/fs: Make fs_reg::effective_width take fs_inst* instead of fs_visitor*
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 20 Sep 2014 03:36:52 +0000 (20:36 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:14 +0000 (10:29 -0700)
commit5f41d052bf53e32761fb528f4be99a1af3a33ebc
tree109d37b687d3752118ed0f5a4e10c9546dac53b1
parent6ba31cc000b096a3b1fe0e0a935a3ab2aa6803d2
i965/fs: Make fs_reg::effective_width take fs_inst* instead of fs_visitor*

   Now that we have execution sizes, we can use that instead of the
   dispatch width.  This way it also works for 8-wide instructions in
   SIMD16.

i965/fs: Make effective_width a variable instead of a function

i965/fs: Preserve effective width in constant propagation

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