bug-14538: Remove validation error codes
https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14538
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp
index 7404119..c93f487 100644
--- a/layers/param_checker.cpp
+++ b/layers/param_checker.cpp
@@ -185,9 +185,9 @@
return "VK_RESULT_MAX_ENUM";
break;
}
- case VK_ERROR_INVALID_LAYER:
+ case VK_ERROR_LAYER_NOT_PRESENT:
{
- return "VK_ERROR_INVALID_LAYER";
+ return "VK_ERROR_LAYER_NOT_PRESENT";
break;
}
case VK_ERROR_INCOMPATIBLE_DRIVER:
@@ -195,11 +195,6 @@
return "VK_ERROR_INCOMPATIBLE_DRIVER";
break;
}
- case VK_ERROR_MEMORY_UNMAP_FAILED:
- {
- return "VK_ERROR_MEMORY_UNMAP_FAILED";
- break;
- }
case VK_ERROR_MEMORY_MAP_FAILED:
{
return "VK_ERROR_MEMORY_MAP_FAILED";
@@ -215,11 +210,6 @@
return "VK_ERROR_OUT_OF_HOST_MEMORY";
break;
}
- case VK_ERROR_UNKNOWN:
- {
- return "VK_ERROR_UNKNOWN";
- break;
- }
case VK_ERROR_INITIALIZATION_FAILED:
{
return "VK_ERROR_INITIALIZATION_FAILED";
@@ -255,19 +245,14 @@
return "VK_UNSUPPORTED";
break;
}
- case VK_ERROR_INCOMPATIBLE_DEVICE:
- {
- return "VK_ERROR_INCOMPATIBLE_DEVICE";
- break;
- }
case VK_SUCCESS:
{
return "VK_SUCCESS";
break;
}
- case VK_ERROR_INVALID_EXTENSION:
+ case VK_ERROR_EXTENSION_NOT_PRESENT:
{
- return "VK_ERROR_INVALID_EXTENSION";
+ return "VK_ERROR_EXTENSION_NOT_PRESENT";
break;
}
case VK_ERROR_DEVICE_LOST:
diff --git a/layers/shader_checker.cpp b/layers/shader_checker.cpp
index 632947a..678b567 100644
--- a/layers/shader_checker.cpp
+++ b/layers/shader_checker.cpp
@@ -976,7 +976,7 @@
return get_dispatch_table(shader_checker_device_table_map, device)->CreateGraphicsPipelines(device, pipelineCache, count, pCreateInfos, pPipelines);
}
else {
- return VK_ERROR_UNKNOWN;
+ return VK_ERROR_VALIDATION_FAILED;
}
}