Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 1 | From aec0be857ed3faef8802c7fd61f3d7798a565108 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 29 Apr 2021 16:03:42 -0700 |
| 4 | Subject: [PATCH] Include <limits> header for numeric_limits |
| 5 | |
| 6 | Fixes |
| 7 | vulkancts/framework/vulkan/vkRayTracingUtil.hpp:116:32: error: 'numeric_limits' is not a member of 'std' |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | framework/vulkan/vkRayTracingUtil.hpp | 1 + |
| 13 | modules/vulkan/api/vktApiBufferTests.cpp | 1 + |
| 14 | modules/vulkan/spirv_assembly/vktSpvAsmNonSemanticInfoTests.cpp | 2 ++ |
| 15 | 3 files changed, 4 insertions(+) |
| 16 | |
| 17 | --- a/framework/vulkan/vkRayTracingUtil.hpp |
| 18 | +++ b/framework/vulkan/vkRayTracingUtil.hpp |
| 19 | @@ -33,6 +33,7 @@ |
| 20 | #include "tcuVector.hpp" |
| 21 | #include "tcuVectorType.hpp" |
| 22 | |
| 23 | +#include <limits> |
| 24 | #include <vector> |
| 25 | |
| 26 | namespace vk |
| 27 | --- a/modules/vulkan/api/vktApiBufferTests.cpp |
| 28 | +++ b/modules/vulkan/api/vktApiBufferTests.cpp |
| 29 | @@ -35,6 +35,7 @@ |
| 30 | #include "tcuPlatform.hpp" |
| 31 | |
| 32 | #include <algorithm> |
| 33 | +#include <limits> |
| 34 | |
| 35 | namespace vkt |
| 36 | { |
| 37 | --- a/modules/vulkan/spirv_assembly/vktSpvAsmNonSemanticInfoTests.cpp |
| 38 | +++ b/modules/vulkan/spirv_assembly/vktSpvAsmNonSemanticInfoTests.cpp |
| 39 | @@ -28,6 +28,8 @@ |
| 40 | #include "vktSpvAsmComputeShaderCase.hpp" |
| 41 | #include "vktSpvAsmGraphicsShaderTestUtil.hpp" |
| 42 | |
| 43 | +#include <limits> |
| 44 | + |
| 45 | namespace vkt |
| 46 | { |
| 47 | namespace SpirVAssembly |
| 48 | --- a/modules/vulkan/memory/vktMemoryDeviceMemoryReportTests.cpp |
| 49 | +++ b/modules/vulkan/memory/vktMemoryDeviceMemoryReportTests.cpp |
| 50 | @@ -40,6 +40,7 @@ |
| 51 | |
| 52 | #include "deSharedPtr.hpp" |
| 53 | |
| 54 | +#include <limits> |
| 55 | #include <set> |
| 56 | #include <vector> |
| 57 | |
| 58 | --- a/modules/vulkan/draw/vktDrawDepthClampTests.cpp |
| 59 | +++ b/modules/vulkan/draw/vktDrawDepthClampTests.cpp |
| 60 | @@ -38,6 +38,7 @@ |
| 61 | #include "vkQueryUtil.hpp" |
| 62 | #include "tcuTextureUtil.hpp" |
| 63 | |
| 64 | +#include <limits> |
| 65 | #include <cmath> |
| 66 | |
| 67 | namespace vkt |
| 68 | --- a/modules/vulkan/wsi/vktWsiFullScreenExclusiveTests.cpp |
| 69 | +++ b/modules/vulkan/wsi/vktWsiFullScreenExclusiveTests.cpp |
| 70 | @@ -39,6 +39,8 @@ |
| 71 | #include "tcuPlatform.hpp" |
| 72 | #include "tcuCommandLine.hpp" |
| 73 | |
| 74 | +#include <limits> |
| 75 | + |
| 76 | #if ( DE_OS == DE_OS_WIN32 ) |
| 77 | #define NOMINMAX |
| 78 | #define WIN32_LEAN_AND_MEAN |
| 79 | --- a/modules/vulkan/synchronization/vktSynchronizationUtil.cpp |
| 80 | +++ b/modules/vulkan/synchronization/vktSynchronizationUtil.cpp |
| 81 | @@ -21,6 +21,7 @@ |
| 82 | * \brief Synchronization tests utilities |
| 83 | *//*--------------------------------------------------------------------*/ |
| 84 | |
| 85 | +#include <limits> |
| 86 | #include "vktSynchronizationUtil.hpp" |
| 87 | #include "vkTypeUtil.hpp" |
| 88 | #include "vkCmdUtil.hpp" |