nir/copy_propagate: do not copy-propagate MOV srcs with source modifiers
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 6 Nov 2015 11:08:49 +0000 (12:08 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 13 Nov 2015 06:54:33 +0000 (07:54 +0100)
commit8610cd6b8c71b92a8e68603c030961e36faa0ef4
tree703edf0c1ac41d43b43c6a8f5f0bbd59de2139b9
parent5f43e074d4a4e74b1238a5687da5d38e53ad4596
nir/copy_propagate: do not copy-propagate MOV srcs with source modifiers

If a source operand in a MOV has source modifiers, then we cannot
copy-propagate it from the parent instruction and remove the MOV.

v2: remove the check for source source modifiers from is_move() (Jason)

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_opt_copy_propagate.c