Skip to content

Tests: keep the D3D12 pipeline smoke check portable under Wine - #1266

Closed
ghost wants to merge 2 commits into
mainfrom
unknown repository
Closed

ghost wants to merge 2 commits into
mainfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Nov 24, 2026 •

Copy link
Copy Markdown

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).

JMAN730 pushed a commit to JMAN730/project-flamingo that referenced this pull request Nov 24, 2026

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@ghost

ghost commented Nov 24, 2026

Copy link
Copy Markdown
Author

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_created would verify the runtime branch this PR changes. The existing synthetic fixture is sufficient.

AI-assisted (Codex).

@mercuryVM mercuryVM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested 119de42 on Windows 11, RTX 5070, MSVC:

  • cargo test -p victory-shader -- --test-threads=1 passes on the head (120 passed, 1 ignored).
  • Merged into our fork: the workspace and shader tests pass, and clippy is clean both ways.

The change looks right. wine_get_version exported 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: an eprintln! when the Wine branch returns early would make the skip show up in the test output.

AI-assisted (Claude Code).

mercuryVM added a commit to mercuryVM/VIctory that referenced this pull request Nov 24, 2026
… check portable under Wine

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@neonbyte1

Copy link
Copy Markdown

@BaggyALPHA sure, give me a moment because I'm currently in a session solving a few shader related issues.

@neonbyte1

Copy link
Copy Markdown

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 via cargo xtask wine-test --vkd3d-proton … -- -p victory-shader.

  • With this PR, emit::tests::stub_pipeline_is_created passes. The pipeline is created and the test logs pipeline created under Wine. Skipping native D3D12 checksum checks.
  • Without it, on the same tree minus f14fdfb, the test fails at emit/mod.rs:597 with digest [00, …, 00] accepted. vkd3d-proton takes the zeroed hash, so the skip is needed.
  • Full victory-shader suite with this PR: 120 passed, 0 failed, 1 ignored (bench_write).

AI-assisted (Claude).

github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
@Marvisak

Copy link
Copy Markdown
Owner

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.

@Marvisak Marvisak closed this Nov 25, 2026
Steenax6 added a commit to Steenax6/VIctory-NVID that referenced this pull request Nov 26, 2026
A raw view whose range ran past the buffer (a start at or past the end, a
length beyond it, an end smaller than a dword) is not a valid call, and what
a refused creation leaves in the slot is undefined. raw_at and raw_uav_at now
cut the length to what the buffer holds and make a null view where nothing of
the request lies in it; the start is never moved. A counter says on the first
and every 4096th cut which kind it was. Not seen on this machine.

Source: fxceless/victory-fork pull request Marvisak#1266.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Steenax6 added a commit to Steenax6/VIctory-NVID that referenced this pull request Nov 26, 2026
…from upstream and the forks

The host device is made on the adapter the system ranks first for
performance, never a software one, and the log names it
(VICTORY_D3D12_ADAPTER picks another; after Marvisak/VIctory pull request
Marvisak#3073). A texture's clear value the host cannot take is dropped (Marvisak#3065),
a raw buffer view's range stays inside its buffer (fxceless/victory-fork
pull request Marvisak#1266), the structure builder turns off when title memory by
address has no copy number left (Marvisak#1265), concurrent crash records are
kept whole (Marvisak#3092), and the title's idle and lowest threads run below
normal (Marvisak#2903; VICTORY_TITLE_PRIORITIES=0 leaves them).

Unordered views the title places in memory get a texture of the host's
own (after fxceless/victory-fork pull request Marvisak#114 and the same design in
another fork); a placed view at address 0 is the title's null descriptor
and is a null view without a warning: the old "not mirrored" line was
that, for a sampling view.

For debugging: VICTORY_CRASH_DUMP_DIR writes a full-memory minidump at an
unhandled exception, outside the repository only (Geckomacabre/vx-layer
707b75be0), and `cargo xtask refusals <log>` says what a run lost and why
(Marvisak#2892). To be measured, off until then: VICTORY_MAP_LEAN=1 (mapping
pages asks the host only for what it needs, Marvisak#2916) and
VICTORY_DSTORAGE_STAGING_MB (a floor for the staging limit).

Runs of 2026-11-26 on an RTX 4070 Ti before the last commit: first room
74.7 ms a frame, the open world's bedroom 94.8 ms; pictures right, no
error and no device loss. No placed unordered texture view came up in
either run, so that path is not exercised yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Steenax6 added a commit to Steenax6/VIctory-NVID that referenced this pull request Nov 26, 2026
…pies, small takes, landings beside the guards

The buffer work: a block the title rewrites in many places under flights
goes up as one run and no page's runs settle the flights
(VICTORY_MERGE_BLOCK_RUNS), a title buffer copy left to its landing
keeps its place among what reads and writes its destination (after
Marvisak/VIctory pull request Marvisak#2810; its orders are tests here), the
copies with something to send are kept in a list, the write journal is a
table by page, and preparing reads the clock only for the steps it times
(after Marvisak#3096). What shaders wrote lands in title memory beside the
guards, through views of our own (VICTORY_LAND_BESIDE, on; `=2` reads
every write back through the title's address and counted none amiss in
the prologue and in the open world): guarded blocks stay read-only and
are counted written. A refresh that no event has touched can be left out
(VICTORY_REFRESH_EVENTS, off until its check form `=2` has run). A view
heap that goes takes with it what the pass over picked buffer views kept
for it (fxceless/victory-fork pull request Marvisak#1276).

The small takes: the host device is made on the adapter the system ranks
first, never a software one, and the log names it (Marvisak#3073); a clear value
the host cannot take is dropped (Marvisak#3065); a raw buffer view's range stays
inside its buffer (fxceless Marvisak#1266); the structure builder turns off when
title memory by address has no copy number left (fxceless Marvisak#1265);
concurrent crash records are kept whole (Marvisak#3092); the title's idle and
lowest threads run below normal (Marvisak#2903); unordered views the title
places in memory get a texture of the host's own; VICTORY_CRASH_DUMP_DIR,
`cargo xtask refusals <log>`, VICTORY_MAP_LEAN and
VICTORY_DSTORAGE_STAGING_MB (off until measured).

A lost host device says its context line by line, a failure on it waits
for the report that names the stopped list, and the tests on the
software adapter run one at a time (they died at random in parallel).

Runs of 2026-11-26 on an RTX 4070 Ti: first room 69.6 ms a frame with
the buffer work (77.4 before) and 68.7 ms with landings beside the guards
(75.5 without, same build). This work lost the host device at the
world's entry in 4 of 9 runs until a list held the targets it binds
(already in the tree); with that, 0 of 6.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants