Make reseting an unsignaled fence a warning.
authorMichael Lentine <mlentine@google.com>
Thu, 24 Sep 2015 00:43:16 +0000 (17:43 -0700)
committerMichael Lentine <mlentine@google.com>
Wed, 30 Sep 2015 21:21:22 +0000 (14:21 -0700)
layers/mem_tracker.cpp

index 36574f60cd8d73f5aae65ba1a6b5786302b210ec..bb3051895622f7cabeb182c85fdb1ec282834d4a 100644 (file)
@@ -2,6 +2,7 @@
  * Vulkan
  *
  * Copyright (C) 2015 LunarG, Inc.
+ * Copyright (C) 2015 Google, Inc.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -1882,7 +1883,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkResetFences(
         if (fence_item != fenceMap.end()) {
             // Validate fences in SIGNALED state
             if (!(fence_item->second.createInfo.flags & VK_FENCE_CREATE_SIGNALED_BIT)) {
-                skipCall = log_msg(mdd(device), VK_DBG_REPORT_ERROR_BIT, VK_OBJECT_TYPE_FENCE, pFences[i].handle, 0, MEMTRACK_INVALID_FENCE_STATE, "MEM",
+                skipCall = log_msg(mdd(device), VK_DBG_REPORT_WARN_BIT, VK_OBJECT_TYPE_FENCE, pFences[i].handle, 0, MEMTRACK_INVALID_FENCE_STATE, "MEM",
                         "Fence %#" PRIxLEAST64 " submitted to VkResetFences in UNSIGNALED STATE", pFences[i].handle);
             }
             else {