spirv: add support for doubles on OpComposite{Insert,Extract}
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 10 Nov 2016 11:11:03 +0000 (12:11 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 9 Jan 2017 08:10:13 +0000 (09:10 +0100)
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c

index 00bcdd57799cf98c24ba2458d48aa81b48127264..a305858c928c22bc0cb83144b81b14be6f085a73 100644 (file)
@@ -1146,6 +1146,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
             case GLSL_TYPE_UINT:
             case GLSL_TYPE_INT:
             case GLSL_TYPE_FLOAT:
+            case GLSL_TYPE_DOUBLE:
             case GLSL_TYPE_BOOL:
                /* If we hit this granularity, we're picking off an element */
                if (glsl_type_is_matrix(type)) {