Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / libre-soc / vulkan / libresoc_device.c
index 0aadfe769a4027b864f41d35db3190b0b3fb2861..546f175c7d8bc922fb199c847ee8cfdcd7822c84 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);
 
@@ -1748,3 +1751,10 @@ void libresoc_DestroyFence(
        VkFence                                     _fence,
        const VkAllocationCallbacks*                pAllocator)
 {}
+
+
+void libresoc_DestroySemaphore(
+       VkDevice                                    _device,
+       VkSemaphore                                 _semaphore,
+       const VkAllocationCallbacks*                pAllocator)
+{}