bug-14538: Remove validation error codes
https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14538
diff --git a/icd/intel/instance.c b/icd/intel/instance.c
index 83f9567..df0ae86 100644
--- a/icd/intel/instance.c
+++ b/icd/intel/instance.c
@@ -182,7 +182,7 @@
*/
icd_instance_destroy(icd);
intel_instance_destroy(instance);
- return VK_ERROR_INVALID_EXTENSION;
+ return VK_ERROR_EXTENSION_NOT_PRESENT;
}
}
@@ -192,7 +192,7 @@
if (info->layerCount > 0) {
icd_instance_destroy(icd);
intel_instance_destroy(instance);
- return VK_ERROR_INVALID_LAYER;
+ return VK_ERROR_LAYER_NOT_PRESENT;
}
*pInstance = instance;
@@ -310,7 +310,7 @@
*pPhysicalDeviceCount = count;
- return (count > 0) ? VK_SUCCESS : VK_ERROR_UNKNOWN;
+ return VK_SUCCESS;
}
ICD_EXPORT VkResult VKAPI vkDbgCreateMsgCallback(