intel/fs: Retype dest to match value in read[First]Invocation
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 2 Sep 2017 05:37:42 +0000 (22:37 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Nov 2017 18:37:52 +0000 (10:37 -0800)
commit103081c9a9912a11b47077b8e25efdbbb3d65e10
treed23bbf7e605e0322650915059244a5a215f8365a
parentebaee9da4adaad10e1c46bdd2f5521175ea04044
intel/fs: Retype dest to match value in read[First]Invocation

This is what we really wanted all along.  Always retyping to D works
because that's what get_nir_src() always gives us, at least for 32-bit
types.  The SPIR-V variants of these operations accept arbitrary types
and we need this if we're going to handle 64 or 16-bit values.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_fs_nir.cpp