aboutsummaryrefslogtreecommitdiff
path: root/loader/loader.c
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-09-04 13:39:59 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-09-10 10:16:35 -0600
commitc5f3987068d9857be82fd77f2c8888fccba64315 (patch)
treed5be3012b8a1a6bb0055cd6f67a67d3522abfebf /loader/loader.c
parentfae25d2777686b78b39042e621dfb0aae567d47f (diff)
downloadusermoji-c5f3987068d9857be82fd77f2c8888fccba64315.tar.xz
bug-14538: Remove driver validation checks
Marked validation checks done in the driver with TODOVV. Once we verify the check is covered in a validation layer we can remove the driver code.
Diffstat (limited to 'loader/loader.c')
-rw-r--r--loader/loader.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 0b7d1ba6..b12a065d 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2664,10 +2664,11 @@ VkResult VKAPI loader_DestroyInstance(
prev = next;
next = next->next;
}
- if (next == NULL) {
- // This must be an invalid instance handle or empty list
- return VK_ERROR_INVALID_HANDLE;
- }
+ /* TODOVV: Move this test to validation layer */
+// if (next == NULL) {
+// // This must be an invalid instance handle or empty list
+// return VK_ERROR_INVALID_HANDLE;
+// }
while (icds) {
if (icds->instance) {
@@ -3088,10 +3089,6 @@ LOADER_EXPORT VkResult VKAPI vkGetGlobalExtensionProperties(
uint32_t copy_size;
tls_instance = NULL;
- if (pCount == NULL) {
- return VK_ERROR_INVALID_POINTER;
- }
-
memset(&icd_extensions, 0, sizeof(icd_extensions));
loader_platform_thread_once(&once_init, loader_initialize);
@@ -3160,10 +3157,6 @@ LOADER_EXPORT VkResult VKAPI vkGetGlobalLayerProperties(
uint32_t copy_size;
- if (pCount == NULL) {
- return VK_ERROR_INVALID_POINTER;
- }
-
/* TODO: do we still need to lock */
loader_platform_thread_lock_mutex(&loader_lock);
@@ -3203,10 +3196,6 @@ VkResult VKAPI loader_GetPhysicalDeviceExtensionProperties(
struct loader_icd *icd = loader_get_icd(gpu, &gpu_index);
uint32_t copy_size;
- if (pCount == NULL) {
- return VK_ERROR_INVALID_POINTER;
- }
-
uint32_t count;
struct loader_extension_list *dev_ext_list;
@@ -3253,10 +3242,6 @@ VkResult VKAPI loader_GetPhysicalDeviceLayerProperties(
uint32_t gpu_index;
struct loader_icd *icd = loader_get_icd(gpu, &gpu_index);
- if (pCount == NULL) {
- return VK_ERROR_INVALID_POINTER;
- }
-
uint32_t count = icd->this_instance->device_layer_list.count;
if (pProperties == NULL) {