vk/device: Dissalow device destruction
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 4 Jun 2015 16:06:59 +0000 (09:06 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 4 Jun 2015 16:14:33 +0000 (09:14 -0700)
src/vulkan/device.c

index 654dc872bf6766b9a315549d27ddfc23f7142d85..0f51191720506b06384aff87301259ed813d604e 100644 (file)
@@ -414,6 +414,9 @@ VkResult anv_DestroyDevice(
 {
    struct anv_device *device = (struct anv_device *) _device;
 
+   /* FIXME: We should make device destruction actually safe. */
+   return VK_UNSUPPORTED;
+
    anv_compiler_destroy(device->compiler);