spirv: fix typo in spec_constant_decoration_cb()
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 14 Nov 2016 09:04:48 +0000 (10:04 +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 41da0e85c9db7456a9cd1df0de174d1133f280cf..9dc93e20202a240cd49bd10e875151bd3261aedf 100644 (file)
@@ -930,7 +930,7 @@ vtn_null_constant(struct vtn_builder *b, const struct glsl_type *type)
 }
 
 static void
-spec_constant_deocoration_cb(struct vtn_builder *b, struct vtn_value *v,
+spec_constant_decoration_cb(struct vtn_builder *b, struct vtn_value *v,
                              int member, const struct vtn_decoration *dec,
                              void *data)
 {
@@ -952,7 +952,7 @@ static uint32_t
 get_specialization(struct vtn_builder *b, struct vtn_value *val,
                    uint32_t const_value)
 {
-   vtn_foreach_decoration(b, val, spec_constant_deocoration_cb, &const_value);
+   vtn_foreach_decoration(b, val, spec_constant_decoration_cb, &const_value);
    return const_value;
 }