i965/fs: don't propagate cmod when the exec sizes differ
authorConnor Abbott <connor.w.abbott@intel.com>
Tue, 11 Aug 2015 23:16:42 +0000 (16:16 -0700)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 23 Nov 2015 07:30:30 +0000 (08:30 +0100)
commit95ac3b1daeaa7d40d49fa2e0bdef46346c2996d5
tree158f9e8ca32a86dc01ab0fea969420fa86892391
parent70171a9c89ebd885f30bd432452ee35099b6874a
i965/fs: don't propagate cmod when the exec sizes differ

This can happen when the source of the compare was split by the SIMD
lowering pass. Potentially, we could allow the case where the exec size
of scan_inst is larger, and scan_inst has the right quarter selected,
but doing that seems a little more risky.

v2: Merge the bail condition into the the previous if/break block (Matt)

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_cmod_propagation.cpp