ac/nir: implement nir_op_{b2i,i2b}
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 24 Jun 2017 18:39:39 +0000 (20:39 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 27 Jun 2017 00:28:30 +0000 (10:28 +1000)
commitdacf73e527a94d58407e23d3b1884d377d357f88
tree14d9dbd9ba7d260c94f4bc988d2be2be10b7f05b
parent77d7764d5e86d1a44bac9e685ea061b0ffe588a8
ac/nir: implement nir_op_{b2i,i2b}

Booleans in NIR are ~0 for true, b2i returns 0/1.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c