aboutsummaryrefslogtreecommitdiff
path: root/loader/debug_report.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/debug_report.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/debug_report.c')
-rw-r--r--loader/debug_report.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/loader/debug_report.c b/loader/debug_report.c
index c7c1d9a2..8a6bf5de 100644
--- a/loader/debug_report.c
+++ b/loader/debug_report.c
@@ -141,16 +141,18 @@ VkResult VKAPI loader_DbgCreateMsgCallback(
VkResult res;
uint32_t storage_idx;
- if (instance == VK_NULL_HANDLE)
- return VK_ERROR_INVALID_HANDLE;
+ /* TODOVV: move to validation layer */
+// if (instance == VK_NULL_HANDLE)
+// return VK_ERROR_INVALID_HANDLE;
for (inst = loader.instances; inst; inst = inst->next) {
if ((VkInstance) inst == instance)
break;
}
- if (inst == VK_NULL_HANDLE)
- return VK_ERROR_INVALID_HANDLE;
+ /* TODOVV: move to validation layer */
+// if (inst == VK_NULL_HANDLE)
+// return VK_ERROR_INVALID_HANDLE;
icd_info = calloc(sizeof(VkDbgMsgCallback), inst->total_icd_count);
if (!icd_info) {
@@ -210,16 +212,18 @@ VkResult VKAPI loader_DbgDestroyMsgCallback(
VkResult res = VK_SUCCESS;
struct loader_instance *inst;
- if (instance == VK_NULL_HANDLE)
- return VK_ERROR_INVALID_HANDLE;
+ /* TODOVV: Move to validation layer */
+// if (instance == VK_NULL_HANDLE)
+// return VK_ERROR_INVALID_HANDLE;
for (inst = loader.instances; inst; inst = inst->next) {
if ((VkInstance) inst == instance)
break;
}
- if (inst == VK_NULL_HANDLE)
- return VK_ERROR_INVALID_HANDLE;
+ /* TODOVV: Move to validation layer */
+// if (inst == VK_NULL_HANDLE)
+// return VK_ERROR_INVALID_HANDLE;
icd_info = *(VkDbgMsgCallback **) &msgCallback;
storage_idx = 0;