ac/nir: fix translation of nir_op_b2i for doubles
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 12 Jan 2018 01:31:00 +0000 (12:31 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 14 Jan 2018 00:40:03 +0000 (11:40 +1100)
commit741b21b713f0e9fd7f8df802164120e0d8486d7b
tree1c446f7f9250a7013e5252f9a2d443d6bd298c90
parent4d61eb80187cd8e5984eed94f2ae3c7d6c3b3aa0
ac/nir: fix translation of nir_op_b2i for doubles

V2: just zero-extend the 32-bit value.

Fixes a number of int64 piglet tests, for example:

generated_tests/spec/arb_gpu_shader_int64/execution/conversion/frag-conversion-explicit-bool-int64_t.shader_test

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c