i965/fs: Fix a bug with dead_code_eliminate on large writes
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 24 Sep 2014 20:16:43 +0000 (13:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:13 +0000 (10:29 -0700)
commitc24dd54f973d1a42b0e2cc81aa219bb58f7523d9
treed9cb428bfa21a0bde25aa3f83cdafa6a73ab66a8
parent1385a4b706afa71eebcb72cd232faecc0b956b50
i965/fs: Fix a bug with dead_code_eliminate on large writes

Previously, if an instruction wrote to more than one register, we
implicitly assumed that it filled the entire register.  We never hit this
before because the only time we did multi-register writes was things like
texturing which always wrote to all of the registers.  However, with the
upcoming ability to do 16-wide instructions in SIMD8 and things of that
nature, we can have multi-register writes at offsets and we'll hit this.

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