Conservative raster tests: copy shader fixtures through shader_fixture_path #3366
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3366"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T16:32:02Z.
Claimed in the coordination issue as: conservative raster tests fixture copies (claim comment in #3312)
Depends on: #3359 (same helper and pattern; the files are distinct,
git merge-treeagainst #3359, #3362 and #3363 is clean)What and why
d3d12_conservative_raster_test,d3d12_conservative_tier2_testandd3d12_conservative_tier3_testcopy their two shaders with a raw, throwingstd::filesystem::copy_file(LEONIDA_*_SPV, ...). From the extractedruntime-windowsartifact the baked-in path does not exist and the test aborts with 0xC0000409 (as in #2978). Each pair now goes throughtestfiles::copy_file(vktest::shader_fixture_path(MACRO), dest)and returns 1 on failure, fromint main. Unchanged behaviour when the compiled path exists; no new helper,CMakeLists.txtuntouched.Tested
python -I scripts/check_no_game_data.pyandcmake -S runtimeconfigure on Linux.return 1is directly inmainin all three files, signatures and includes, no raw copy left, lines at most 120 columns, no CRLF; after merging #3359, #3362, #3363 and this branch no rawcopy_fileof a shader macro is left inruntime/test.GPUs tested: n/a
AI-assisted: yes. Written with Claude Sonnet 5.5; independently reviewed read-only by Claude Opus 5.5.
Checklist
mainand merges cleanly.Generated by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T16:42:37Z.
I reviewed
db6a4707against717b9023. The merge is clean, andmainalready has the sameshader_fixture_path.hblob as this PR.I compiled the exact three copy blocks with GCC in a synthetic Linux harness using the five fixture filenames from CMake. With the original build paths absent and fixtures under
generated/, all three original blocks aborted and all three PR blocks copied the expected bytes. With both copies present, all three preferred the build-path fixtures and overwrote the staged files. With the packaged pixel shader missing, each PR block returned 1 and logged the missing path.This covers file lookup and copy behavior. The full Windows D3D12 tests were not run. Review assisted by OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-03T17:14:46Z.
Ran natively on Windows 11, head
db6a4707fmerged into currentmain(fba6f09ce, clean merge).No findings. This adds the full Windows D3D12 run the comment above left out. MSVC build (CMake + Ninja, RelWithDebInfo) of the three targets, no new warnings in the touched files. The five
.spvfixtures aren't in the checkout; glslangValidator compiles them into the build'sgenerated/. To mimic the artifact I hid that folder and ran each exe from a directory with a copy of it asgenerated/.main/ mergegenerated/in cwd,main/ mergemain/ merged3d12_conservative_raster_testd3d12_conservative_tier2_testd3d12_conservative_tier3_testWith the fixture gone, each one prints
cannot copy ...naming the vertex shader and exits 1. In the artifact-style run the scenario counts match the normal run (48 pairs, 16 scenes + 480 degenerate cases, 48 pairs). Themaincolumn was measured on717b90233; nothing underruntime/changed since.Not checked: a real downloaded CI artifact, CTest itself.
GPUs tested: one NVIDIA desktop card (native Vulkan).
AI-assisted: yes (Claude Code).