nir/spirv: print id for unsupported builtins
authorKarol Herbst <kherbst@redhat.com>
Wed, 11 Jul 2018 23:18:23 +0000 (01:18 +0200)
committerKarol Herbst <kherbst@redhat.com>
Sun, 15 Jul 2018 05:51:13 +0000 (07:51 +0200)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/compiler/spirv/vtn_variables.c

index c86416495b61005548a1b1346963c2ba5e19ffa8..67b4d59b9fe2add77fd9fd377585caf370ecf582 100644 (file)
@@ -1213,7 +1213,7 @@ vtn_get_builtin_location(struct vtn_builder *b,
       set_mode_system_value(b, mode);
       break;
    default:
-      vtn_fail("unsupported builtin");
+      vtn_fail("unsupported builtin: %u", builtin);
    }
 }