At this stage after adding few more stubs driver fails at
[mesa.git] / src / libre-soc / vulkan / libresoc_image.c
index 46b9acb200e8b95ff22a5757959bee6f9ebd8d62..4778d4cd47185918cbd415b1d637a50afe47bbbd 100644 (file)
@@ -157,3 +157,40 @@ void libresoc_GetImageSubresourceLayout(
 {
 //TODO: stub
 }
+
+VkResult
+libresoc_CreateImageView(VkDevice _device,
+                    const VkImageViewCreateInfo *pCreateInfo,
+                    const VkAllocationCallbacks *pAllocator,
+                    VkImageView *pView)
+{
+       //TODO: stub
+       return VK_SUCCESS;
+       // LIBRESOC_FROM_HANDLE(libresoc_device, device, _device);
+       // struct libresoc_image_view *view;
+
+       // view = vk_alloc2(&device->vk.alloc, pAllocator, sizeof(*view), 8,
+       //                 VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
+       // if (view == NULL)
+       //      return vk_error(device->instance, VK_ERROR_OUT_OF_HOST_MEMORY);
+
+       // vk_object_base_init(&device->vk, &view->base,
+       //                  VK_OBJECT_TYPE_IMAGE_VIEW);
+
+       // libresoc_image_view_init(view, device, pCreateInfo, NULL);
+
+       // *pView = libresoc_image_view_to_handle(view);
+
+       // return VK_SUCCESS;
+}
+void
+libresoc_DestroyImage(VkDevice _device, VkImage _image,
+                 const VkAllocationCallbacks *pAllocator)
+{
+
+}
+
+void
+libresoc_DestroyImageView(VkDevice _device, VkImageView _iview,
+                     const VkAllocationCallbacks *pAllocator)
+{}