Use a real hard link when the test filesystem supports it. Check that the index and skip file hashes survive rejected output paths. The test passes on Debian and fails when equivalent() is replaced with lexical normalization alone.
AI-assisted (Codex).
Keep both the filesystem header for identity checks and the upstream type traits for the large-module budget. Preserve the input checks and CLI coverage.
AI-assisted (Codex).
Reject cache, stats and snapshot paths that point to the shader index or skip list before opening them. Check file identity so case differences and filesystem links cannot hide an alias.
vk_pipeline_check previously created one VkPipelineLayout with a hardcoded 144-byte push-constant range and set 0 only (without checking vkCreatePipelineLayout's result). On a 128-byte push-constant device (AMD Windows RDNA2 iGPUs, some Intel Arc drivers) that violates VUID-VkPushConstantRange-size-00298, and every --pc-tail-ubo shader declaring set 1 fails pipeline creation with VK_ERROR_UNKNOWN / VUID-VkComputePipelineCreateInfo-layout-07988.
Parse push_constant_bytes and pc_tail.bytes from index.json (with strict from_chars validation, tested in check_vk_pipeline_cli.cmake), skip shaders whose required push-constant size exceeds props.limits.maxPushConstantsSize, add set 1 (UNIFORM_BUFFER_DYNAMIC at binding 0), and create one pipeline layout per distinct (push_bytes, has_pc_tail) needed by the selected shaders within the device limit.
Claimed in #2300.
Co-Authored-By: Gemini 4 Neon <noreply@google.com>
- d3d12_vulkan_device.cpp, vk_test_device.h: #760 chained VkPhysicalDeviceCustomBorderColorFeaturesEXT onto
enable13, which #1706 replaced with leonida::Vulkan13Features; it goes at *v13.next() like the other later
feature structs. The runtime and the GPU test harness didn't compile.
- check_vk_pipeline_cli.cmake: #1958's lds_bytes cases matched "malformed JSON"; the index parser reports where it
stopped ("... at byte 37"), which the check now matches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- vk_pipeline_check.cpp: #1826's --isolate-batch parsed with the val() helper #1735 replaced, so the checker
didn't build; it now uses number() like the other options.
- check_vk_pipeline_cli.cmake (#1735) matched "malformed JSON"; #1847's index parser names the file and position
("index.json: expected '{' at byte 0"), which the check now matches.
- test_tbuffer_store: BUF_FMT_8_UINT stopped being an unsupported example once #1871 added the 8/16-bit UINT/SINT
formats; it uses BUF_FMT_8_USCALED.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CTest applies CMAKE_CROSSCOMPILING_EMULATOR only to tests whose command is a
target; the script test runs the host CMake, so the cross-build/Proton workflow
in docs/testing.md would execute the tool directly, without Wine. Pass the
emulator list as -DRUNNER and prepend it to both execute_process commands, the
same pattern as check_loaded_async.cmake.