GCC 11 build fixes
authorMika Väinölä <mika.vainola@siru.fi>
Thu, 13 Jan 2022 08:00:09 +0000 (10:00 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 20 Jan 2022 23:55:47 +0000 (23:55 +0000)
Some files used std::numeric_limits without including <limits> and
failed to compile.

VK-GL-CTS issue: 2842

Change-Id: I21e37ce38db08c7c7041f4628ac852588a788852

external/vulkancts/modules/vulkan/draw/vktDrawDepthClampTests.cpp
external/vulkancts/modules/vulkan/memory/vktMemoryDeviceMemoryReportTests.cpp
external/vulkancts/modules/vulkan/ray_query/vktRayQueryAccelerationStructuresTests.cpp
external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingAccelerationStructuresTests.cpp
external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildTests.cpp

index 55c2fb7f281145ee60596ad573bb4fe065768cd0..832c00744231d09fd3068a36a05755c06b4fb71f 100644 (file)
@@ -39,6 +39,7 @@
 #include "tcuTextureUtil.hpp"
 
 #include <cmath>
+#include <limits>
 
 namespace vkt
 {
index 239d5ed4a3b13e339a99a7be3df4293d14d40ee8..05ffbc15ec884b57c6e0a7bf15cca6993d9c4f16 100644 (file)
@@ -42,6 +42,7 @@
 
 #include <set>
 #include <vector>
+#include <limits>
 
 namespace vkt
 {
index fcbe6457b7cbe08efc4355b98f4559967c626a57..25f6084a9c408085908ae59bd8d7765edc1dbdc1 100644 (file)
@@ -24,6 +24,8 @@
 #include "vktRayQueryAccelerationStructuresTests.hpp"
 
 #include <array>
+#include <set>
+#include <limits>
 
 #include "vkDefs.hpp"
 #include "deClock.h"
index 08ae84447a0ccb1fc75de15b063c3585719e5c3c..1a5c1429693f6db3da23d5ebcd01ffa2b5eb045f 100644 (file)
@@ -43,6 +43,9 @@
 #include "tcuImageCompare.hpp"
 #include "tcuFloat.hpp"
 
+#include <set>
+#include <limits>
+
 namespace vkt
 {
 namespace RayTracing
index ef342d8b0aa050f4f0c5af9e9b69f4eddf5fe9c2..97bb2fb5b03ebd266be130967018bba8c54a5666 100644 (file)
@@ -38,6 +38,8 @@
 
 #include "deClock.h"
 
+#include <limits>
+
 namespace vkt
 {
 namespace RayTracing