nir: Turn imov/fmov of undef into undef
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 15 Dec 2016 23:17:33 +0000 (10:17 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Fri, 16 Dec 2016 09:32:59 +0000 (20:32 +1100)
commit3421b3f5a35f5cf29934f74c30850c4d04ba0237
tree6a40ba34692b8b69cd4724b00e1e4ae1e2fdaa3f
parent08fc74663bea34d61761b02b6194cdef686baefe
nir: Turn imov/fmov of undef into undef

Reverting the previous attempt at this a5502a721fd30fd resulted in
the following Vulkan test failing.

dEQP-VK.glsl.return.return_in_dynamic_loop_dynamic_vertex

This time we use the num_components from the alu dest rather than
num_inputs to the op to determine the size of the undef.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99100
src/compiler/nir/nir_opt_undef.c