vk: Add a couple vk_error calls
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 11 Jun 2015 04:04:13 +0000 (21:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 11 Jun 2015 04:04:13 +0000 (21:04 -0700)
src/vulkan/device.c
src/vulkan/formats.c

index 8cb5b3f8c934a90e2b06449248c4825e8ad4fb0c..3df707429e1a12149a887d3461e5726aa7500d7f 100644 (file)
@@ -1221,7 +1221,7 @@ VkResult anv_GetObjectInfo(
       return VK_SUCCESS;
 
    default:
-      return VK_UNSUPPORTED;
+      return vk_error(VK_UNSUPPORTED);
    }
 
 }
index c5e52c47b5f0f4e4734f7543721cc83aff4c539c..e915156c1bec440b07e52b2c4fcb2fb1b688de5a 100644 (file)
@@ -302,6 +302,6 @@ VkResult anv_GetFormatInfo(
       return VK_SUCCESS;
 
    default:
-      return VK_ERROR_INVALID_VALUE;
+      return vk_error(VK_ERROR_INVALID_VALUE);
    }
 }