ac: convert nir_op_f2f32 src to a float
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Feb 2018 06:17:31 +0000 (17:17 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Feb 2018 23:46:28 +0000 (10:46 +1100)
commitef8082baf860cb19cbb8c6435e9144ff16b3429f
tree0705e258cf1c16adcbebf099549dfd9e3426eccc
parent1b1e5f8edfb16b8c8d5170bdd110f730352b6137
ac: convert nir_op_f2f32 src to a float

Fixes the following piglit test:

./bin/arb_vertex_attrib_64bit-check-explicit-location -auto -fbo

Where we would end up with the nir such as:

vec1 64 ssa_11 = pack_64_2x32_split ssa_9, ssa_10
vec1 32 ssa_12 = f2f32 ssa_2

And our pack_64_2x32_split nir to llvm code always produces
a 64bit integer as output.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_nir_to_llvm.c