diff options
| author | Michael Lentine <mlentine@google.com> | 2015-09-23 17:43:16 -0700 |
|---|---|---|
| committer | Michael Lentine <mlentine@google.com> | 2015-09-30 14:21:22 -0700 |
| commit | 6c0002b9d17d2b61ed537290c8a4eacb169e18d1 (patch) | |
| tree | d61fa199797539331677a8b341d017b46cf5a038 | |
| parent | 1d05122c1630572a4fa947cf94d9836c6abb3b36 (diff) | |
| download | usermoji-6c0002b9d17d2b61ed537290c8a4eacb169e18d1.tar.xz | |
Make reseting an unsignaled fence a warning.
| -rw-r--r-- | layers/mem_tracker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp index 36574f60..bb305189 100644 --- a/layers/mem_tracker.cpp +++ b/layers/mem_tracker.cpp @@ -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 { |
