spirv: Pick the right bitsize when doing SpvUConvert
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 22 Apr 2019 21:21:45 +0000 (14:21 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 21 May 2019 18:52:29 +0000 (11:52 -0700)
Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/compiler/spirv/spirv_to_nir.c

index 743f8ba8fb96d6a5e5863c93e5239e51d44195bd..7d7471db3edce6033f5942f882009f72e68b34f3 100644 (file)
@@ -1926,6 +1926,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
          switch (opcode) {
          case SpvOpSConvert:
          case SpvOpFConvert:
+         case SpvOpUConvert:
             /* We have a source in a conversion */
             src_alu_type =
                nir_get_nir_type_for_glsl_type(