From 8f20632a0ba45c3bfada293842e55129949a2ae9 Mon Sep 17 00:00:00 2001 From: Gangzheng Tong Date: Fri, 16 May 2025 14:51:46 -0700 Subject: Enable Windows full debug testsuite in CI (#7085) * Unify Debug Layer Control Logic and Add Disable Option for Debug Builds This PR refactors and unifies the debug layer control logic in slang-test. A new `-disable-debug-layers` option is introduced, allowing debug builds to skip enabling the validation (debug) layer. This is currently needed to ensure stability in the debug test suite. Previously, different toggles such as ENABLE_VALIDATION_LAYER, ENABLE_DEBUG_LAYER, and debugLayerEnabled were used inconsistently across different components of slang-test. This PR standardizes the logic by using a single variable, debugLayerEnabled, to control the enabling/disabling of the debug layer internally. Notes: By default, the debug/validation layer is enabled in debug builds and is not supported in release builds of slang-test. Fixes: #7132 * Disable spirv-opt for the DebugFunctionDefinition issue * Run debug build only in GCP machines * Fix VUID-vkCmdPipelineBarrier-pBufferMemoryBarriers-02818 dstAcessMask can't include VK_ACCESS_TRANSFER_READ_BIT when stage mask has VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR * Set failed retry limit to 32 --------- Co-authored-by: slangbot Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- tools/unit-test/slang-unit-test.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/unit-test') diff --git a/tools/unit-test/slang-unit-test.h b/tools/unit-test/slang-unit-test.h index 8f0f0a445..49cb5d8d7 100644 --- a/tools/unit-test/slang-unit-test.h +++ b/tools/unit-test/slang-unit-test.h @@ -43,6 +43,7 @@ struct UnitTestContext const char* workDirectory; const char* executableDirectory; Slang::RenderApiFlags enabledApis; + bool enableDebugLayers; }; typedef void (*UnitTestFunc)(UnitTestContext*); -- cgit v1.2.3