diff options
| author | Cort Stratton <cort@google.com> | 2017-11-27 16:43:14 -0800 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2017-11-28 16:27:21 -0800 |
| commit | 11340ed2b58add8c7c19f27d699f59451df622d8 (patch) | |
| tree | 486a939b073f29a1b41fb918fdd35c6d1b882e6a | |
| parent | 5ee85853d7c92b25808cadf50c2950cb8421cb3f (diff) | |
| download | usermoji-11340ed2b58add8c7c19f27d699f59451df622d8.tar.xz | |
layers: validation_cache review feedback
| -rw-r--r-- | layers/core_validation.cpp | 7 | ||||
| -rw-r--r-- | scripts/external_revision_generator.py | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index f974395e..e08ca129 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -4499,18 +4499,19 @@ VKAPI_ATTR VkResult VKAPI_CALL MergePipelineCaches(VkDevice device, VkPipelineCa // Validation cache: // CV is the bottommost implementor of this extension. Don't pass calls down. VKAPI_ATTR VkResult VKAPI_CALL CreateValidationCacheEXT(VkDevice device, const VkValidationCacheCreateInfoEXT *pCreateInfo, - const VkAllocationCallbacks *pAllocator, VkValidationCacheEXT *pValidationCache) { + const VkAllocationCallbacks *pAllocator, + VkValidationCacheEXT *pValidationCache) { *pValidationCache = ValidationCache::Create(pCreateInfo); return *pValidationCache ? VK_SUCCESS : VK_ERROR_INITIALIZATION_FAILED; } VKAPI_ATTR void VKAPI_CALL DestroyValidationCacheEXT(VkDevice device, VkValidationCacheEXT validationCache, - const VkAllocationCallbacks *pAllocator) { + const VkAllocationCallbacks *pAllocator) { delete (ValidationCache *)validationCache; } VKAPI_ATTR VkResult VKAPI_CALL GetValidationCacheDataEXT(VkDevice device, VkValidationCacheEXT validationCache, size_t *pDataSize, - void *pData) { + void *pData) { size_t inSize = *pDataSize; ((ValidationCache *)validationCache)->Write(pDataSize, pData); return (pData && *pDataSize != inSize) ? VK_INCOMPLETE : VK_SUCCESS; diff --git a/scripts/external_revision_generator.py b/scripts/external_revision_generator.py index 34f71025..493068ea 100644 --- a/scripts/external_revision_generator.py +++ b/scripts/external_revision_generator.py @@ -1,9 +1,9 @@ #!/usr/bin/env python3 # -# Copyright (c) 2015-2016 The Khronos Group Inc. -# Copyright (c) 2015-2016 Valve Corporation -# Copyright (c) 2015-2016 LunarG, Inc. -# Copyright (c) 2015-2016 Google Inc. +# Copyright (c) 2015-2017 The Khronos Group Inc. +# Copyright (c) 2015-2017 Valve Corporation +# Copyright (c) 2015-2017 LunarG, Inc. +# Copyright (c) 2015-2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. |
