Fix clang 10.0 build of ray tracing control flow tests
authorSlawomir Cygan <slawomir.cygan@intel.com>
Mon, 7 Dec 2020 17:19:25 +0000 (18:19 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 7 Dec 2020 21:01:56 +0000 (16:01 -0500)
The build fails due to -Werror,-Wunused-const-variable warning.
the PUSH_CONSTANTS_COUNT constant is used only in debug builds.

Components: Vulkan

Change-Id: I6ee3920619109024cb9ba29c0d22722d0069d91d

external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingComplexControlFlowTests.cpp

index e435326..176e8af 100644 (file)
@@ -56,7 +56,9 @@ static const VkFlags  ALL_RAY_TRACING_STAGES  = VK_SHADER_STAGE_RAYGEN_BIT_KHR
                                                                                                | VK_SHADER_STAGE_INTERSECTION_BIT_KHR
                                                                                                | VK_SHADER_STAGE_CALLABLE_BIT_KHR;
 
+#if defined(DE_DEBUG)
 static const deUint32  PUSH_CONSTANTS_COUNT    = 6;
+#endif
 static const deUint32  DEFAULT_CLEAR_VALUE             = 999999;
 
 enum TestType