Tests: keep the D3D12 pipeline smoke check portable under Wine #1266
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1266"
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 Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-24T16:56:20Z.
The pipeline smoke test now keeps its successful-pipeline check under Wine and runs the existing checksum rejection assertions on native Windows. vkd3d-proton intentionally ignores the DXIL container checksum, so its acceptance of an unsigned or incorrectly signed container does not indicate a pipeline regression. This addresses the failure reported in #1218.
Windows verification used only the repository's synthetic fixture. The focused test ran on WARP, including both native checksum assertions. The shader crate suite passed 120 tests with one ignored. Clippy with all targets and features and the pre-commit asset-policy check passed. Independent Linux verification by @neonbyte1 confirmed that the focused test passes under Wine with vkd3d-proton once #1218 and this PR are applied together. It failed on the same setup with only #1218 applied. The full shader suite passed 120 tests with one ignored. See the Wine test report.
AI-assisted (Codex).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T17:06:52Z.
Review: APPROVED
Skips the container-hash check only under Wine (ntdll!wine_get_version probe, module checked before lookup, export never called — SAFETY comment is accurate). vkd3d-proton indeed does not enforce the DXIL container checksum, so the positive pipeline check stays meaningful while the negative hash checks would false-fail under Wine. Test-only change. Local verification: macOS arm64, rustc 1.98.1, PR head merged into main
ffe310e,cargo test -p victory-shader --locked. Shader execution tests (valu_tests/host) are#[cfg(all(test, windows))], so macOS covers lowering/decode/unit tests only. 96 passed, 0 failed (module is Windows-gated, not compiled here).Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T17:17:32Z.
Review: APPROVED
Tested
119de422on Windows 11, RTX 5070, MSVC:cargo test -p victory-shader -- --test-threads=1passes on the head (120 passed, 1 ignored).The change looks right.
wine_get_versionexported from ntdll is the usual way to detect Wine, the export is never called, and on native Windows both checksum assertions still run, as here. One thought: aneprintln!when the Wine branch returns early would make the skip show up in the test output.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-24T17:11:35Z.
Windows CI is green. I also rechecked the relative-path fix from #1218 with a Windows command-capture harness. Both Cargo invocations now receive the expected SDK search paths when xtask starts outside the repository root.
@neonbyte1, could you run the focused pipeline smoke test with #1218 and this PR applied together on your Wine/vkd3d-proton setup? A pass for
emit::tests::stub_pipeline_is_createdwould verify the runtime branch this PR changes. The existing synthetic fixture is sufficient.AI-assisted (Codex).
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-24T18:06:50Z.
@BaggyALPHA sure, give me a moment because I'm currently in a session solving a few shader related issues.
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-24T18:38:49Z.
Ran on Linux: Wine 11.22, vkd3d-proton from GE-Proton11-14, RTX 5090, driver 620.73.04. The tree was
ffe310e+ #1218 (037185c,d27b279) + this PR (f14fdfb), with tests run viacargo xtask wine-test --vkd3d-proton … -- -p victory-shader.emit::tests::stub_pipeline_is_createdpasses. The pipeline is created and the test logspipeline created under Wine. Skipping native D3D12 checksum checks.f14fdfb, the test fails atemit/mod.rs:597withdigest [00, …, 00] accepted. vkd3d-proton takes the zeroed hash, so the skip is needed.victory-shadersuite with this PR: 120 passed, 0 failed, 1 ignored (bench_write).AI-assisted (Claude).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:36:05Z.
Automated triage for the maintainers. Closing because it is outside the project's scope (VIctory targets Windows hosts; ports, launchers and tooling for other platforms are not being taken).
Skips the container-checksum assertions of one test when ntdll exports wine_get_version. Wine/Proton test support is outside the project's scope (it belongs to the unmerged Linux wine-test PR #1218) and it changes nothing on Windows.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed