summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-04-22 14:21:45 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-05-21 11:52:29 -0700
commit02d140ce9a0e8e5f800c55d05f971ae96b908a50 (patch)
tree7dd863450e8fcf0aa9c7fdf50eed8e3b36b67c4b /src/compiler
parentfd94a458234d21f5f43b88ae8edb095b4c01e626 (diff)
spirv: Pick the right bitsize when doing SpvUConvert
Reviewed-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/spirv/spirv_to_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 743f8ba8fb9..7d7471db3ed 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -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(