spirv: fix the translation of SPIR-V conversion opcodes to NIR
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 14 Mar 2018 07:32:08 +0000 (08:32 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 15 Mar 2018 07:51:01 +0000 (08:51 +0100)
commitce2fd8705693d70a2422c5dd292fffea7fdce5ba
tree196cf361606adfb3359c8344a6d162097a6cfb75
parent98f35ad63c23805c32654843f55208e675d4e4db
spirv: fix the translation of SPIR-V conversion opcodes to NIR

There are some SPIRV opcodes (like UConvert and SConvert) have some
expectations of the output that doesn't depend on the operands
data type. Generalize the solution of all of them.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/vtn_alu.c