aboutsummaryrefslogtreecommitdiff
path: root/layers
diff options
context:
space:
mode:
authorTobin Ehlis <tobin@lunarg.com>2015-07-02 10:45:16 -0600
committerTobin Ehlis <tobin@lunarg.com>2015-07-07 08:50:57 -0600
commit57ebc4066ed65bc285a6e2e534ff44074eea7b55 (patch)
tree3ca029a6f288408e68c9569a00ab5578f49ac166 /layers
parent494aca00b6068297cee442347a2e3bdbbfffcd37 (diff)
downloadusermoji-57ebc4066ed65bc285a6e2e534ff44074eea7b55.tar.xz
tests: Fix some failing layer validation tests
MemTracker was changing an API return value during an error case which caused ParamChecker to complain, flagging unexpected error. ParamChecker was no allowing NULL fence on Queue Submit or NULL pDynamicOffsets on when binding Descriptor Sets. Both of these values can be NULL.
Diffstat (limited to 'layers')
-rw-r--r--layers/mem_tracker.cpp1
-rw-r--r--layers/param_checker.cpp15
2 files changed, 0 insertions, 16 deletions
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp
index 83192587..7fe5e672 100644
--- a/layers/mem_tracker.cpp
+++ b/layers/mem_tracker.cpp
@@ -1276,7 +1276,6 @@ VK_LAYER_EXPORT VkResult VKAPI vkResetFences(
if (!(pObjectInfo->create_info.fence_create_info.flags & VK_FENCE_CREATE_SIGNALED_BIT)) {
log_msg(mdd(device), VK_DBG_REPORT_ERROR_BIT, VK_OBJECT_TYPE_FENCE, pFences[i], 0, MEMTRACK_INVALID_FENCE_STATE, "MEM",
"Fence %p submitted to VkResetFences in UNSIGNALED STATE", pFences[i]);
- result = VK_ERROR_INVALID_VALUE;
}
else {
pObjectInfo->create_info.fence_create_info.flags =
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp
index f894fdda..94915884 100644
--- a/layers/param_checker.cpp
+++ b/layers/param_checker.cpp
@@ -2206,14 +2206,6 @@ void PostQueueSubmit(
return;
}
-
- if(fence == nullptr)
- {
- log_msg(mdd(queue), VK_DBG_REPORT_WARN_BIT, (VkObjectType)0, NULL, 0, 1, "PARAMCHECK",
- "vkQueueSubmit parameter, VkFence fence, is null pointer");
- return;
- }
-
if(result != VK_SUCCESS)
{
std::string reason = "vkQueueSubmit parameter, VkResult result, is " + EnumeratorString(result);
@@ -7449,13 +7441,6 @@ void PreCmdBindDescriptorSets(
"vkCmdBindDescriptorSets parameter, const VkDescriptorSet* pDescriptorSets, is null pointer");
return;
}
-
- if(pDynamicOffsets == nullptr)
- {
- log_msg(mdd(cmdBuffer), VK_DBG_REPORT_WARN_BIT, (VkObjectType)0, NULL, 0, 1, "PARAMCHECK",
- "vkCmdBindDescriptorSets parameter, const uint32_t* pDynamicOffsets, is null pointer");
- return;
- }
}
void PostCmdBindDescriptorSets(