At this commit driver skeleton is able to dump spirv and nir
[mesa.git] / src / libre-soc / vulkan / libresoc_device.c
index 0aadfe769a4027b864f41d35db3190b0b3fb2861..303a69a9beb3d5d38a6abf7d3efbc133f0a952fb 100644 (file)
@@ -31,6 +31,7 @@
 #include "util/debug.h"
 #include "util/driconf.h"
 #include "libresoc_private.h"
+#include "compiler/glsl_types.h"
 #include "vk_util.h"
 #include "vk_alloc.h"
 
@@ -379,6 +380,7 @@ static const struct debug_control libresoc_debug_options[] = {
        {"nomemorycache", LIBRESOC_DEBUG_NO_MEMORY_CACHE},
        {"llvm", LIBRESOC_DEBUG_LLVM},
        {"forcecompress", LIBRESOC_DEBUG_FORCE_COMPRESS},
+       {"nir", LIBRESOC_DEBUG_DUMP_NIR},
        {NULL, 0}
 };
 
@@ -504,6 +506,7 @@ libresoc_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
        }
        instance->physical_devices_enumerated = false;
        list_inithead(&instance->physical_devices);
+       glsl_type_singleton_init_or_ref();
        libresoc_init_dri_options(instance);
        *pInstance = libresoc_instance_to_handle(instance);