Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / libre-soc / vulkan / libresoc_device.c
index 92a901657e9e1cd9a7a75997c6808de55a34af7b..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);
 
@@ -1727,3 +1730,31 @@ VkResult libresoc_ResetFences(VkDevice _device,
        //TODO: stub
        return VK_SUCCESS;
 }
+
+VkResult libresoc_CreateFramebuffer(
+       VkDevice                                    _device,
+       const VkFramebufferCreateInfo*              pCreateInfo,
+       const VkAllocationCallbacks*                pAllocator,
+       VkFramebuffer*                              pFramebuffer)
+{
+       //TODO: stub
+       return VK_SUCCESS;
+}
+void libresoc_DestroyBuffer(
+       VkDevice                                    _device,
+       VkBuffer                                    _buffer,
+       const VkAllocationCallbacks*                pAllocator)
+{}
+
+void libresoc_DestroyFence(
+       VkDevice                                    _device,
+       VkFence                                     _fence,
+       const VkAllocationCallbacks*                pAllocator)
+{}
+
+
+void libresoc_DestroySemaphore(
+       VkDevice                                    _device,
+       VkSemaphore                                 _semaphore,
+       const VkAllocationCallbacks*                pAllocator)
+{}