From 85bb79e6a7c914c81b154bdd3aadfcd4c1b01c24 Mon Sep 17 00:00:00 2001 From: JB2WIN Date: Thu, 26 Nov 2026 22:39:09 +0100 Subject: [PATCH] test: skip the heap-handle probe on adapters without 32-lane waves The native module declares WaveSize=32 (the guest wave). WARP offers only 4-lane waves, so CreateComputePipelineState refuses the native shader and native_heap_handle_probe_warp failed with "pipeline state of the native shader". Return 77 when the adapter cannot run 32-lane waves, as native_store_replay and native_recording_check already do. AI-assisted. Co-Authored-By: Claude Opus 5.5 --- tests/native_heap_handle_probe.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/native_heap_handle_probe.cpp b/tests/native_heap_handle_probe.cpp index 3f358505a..6fb745d5d 100644 --- a/tests/native_heap_handle_probe.cpp +++ b/tests/native_heap_handle_probe.cpp @@ -149,6 +149,13 @@ int wmain(int argc, wchar_t **argv) { std::printf("adapter lacks shader model 6.6 or resource binding tier 3 (tier %d)\n", int(options.ResourceBindingTier)); return 77; } + // The native module declares WaveSize=32 (the guest wave), so an adapter without 32-lane waves cannot create it. + D3D12_FEATURE_DATA_D3D12_OPTIONS1 waves{}; + if (FAILED(device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS1, &waves, sizeof waves)) || !waves.WaveOps || + waves.WaveLaneCountMin > 32 || waves.WaveLaneCountMax < 32) { + std::printf("adapter has no 32-lane waves (%u..%u)\n", waves.WaveLaneCountMin, waves.WaveLaneCountMax); + return 77; + } try { x2w::ShaderDxilCompiler compiler(argv[2]); const auto module = native_module(shader_flags);