Tests and fixes so the suite runs under Wine #2971
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2973"
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 neonbyte1 on 2026-11-26T01:50:25Z.
Test changes so that
cargo xtask wine-test(#1218) runs the Windows test suite on Linux. Stacked on #2969: the first commit here is that PR, so please review fromGPU tests: a capped view heap keeps its documented sizeon. I'll rebase it out once #2969 is decided.The runtime fixes this PR used to carry are now separate:
What's left here (tests that assumed Windows or particular hardware):
hosts_that_do_not_fuse_are_namedstill asserts on Windows that WARP doesn't fuse FMad. Under Wine, "WARP" is vkd3d-proton, which does fuse, so the test reports it instead. The null-buffer-view probe is skipped only where the host can't make the heap.E_NOTIMPL);Results under Wine 11.22, vkd3d-proton 3.1-83 (GE-Proton11-14) and DXVK
dxgi, on an RTX 5090 (driver 620.73.04), with #1218 merged for the runner (passed / failed):main63bcca4cargo clippy --workspace --all-targets(with and withoutdiagnostics) andcargo xtask policyare clean. Not run on Windows: on Windows these changes are skips that don't apply there, or keep the Windows assertion as it was.AI-assisted (Claude); measured on my machine, no game data shared.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T02:08:24Z.
Review: COMMENTED
Reviewed and verified against
main(63bcca43) on native Windows 11 (RTX 5090 + WARP,VICTORY_D3D12_DEBUG=1+dxil.dll) — no native Windows regressions observed (note: includes thecompute.rsshader migration also in #2969):D3D12SerializeRootSignature+StructuredBuffer<uint>/RWStructuredBuffer<uint>preserves all 4-byte alignment invariants (indirect::bound,twin::Twin::copy);pipeline/library.rspassingnullwith length0toCreatePipelineLibrarycomplies with native D3D12 as well as vkd3d-proton.descriptor/host.rsprobingHEAP_VIEWSbefore assertingdynamic_slots_are_held_until_releasedalso fixes that test on native RTX 5090 (1M view-heap limit);net.rsLazyLocklookups preserve nativews2_32.dllpassthrough;crash.rs10 msappend_guard()avoids exception-handler re-entry deadlocks.Local verification (native Windows 11):
victory-hle: 152/152 unit + 2/2 integration passedvictory-loader: 35/35 unit (includingconcurrent_crash_records_stay_together) + 4/4 integration passedvictory-gpu(--test-threads=1,VICTORY_D3D12_DEBUG=1): WARP--features diagnostics246/246 passed (skipping pre-existingcompositor_failure_presents_primary_in_the_same_frame); RTX 5090 passed all modified suites (dynamic_slots_are_held_until_released,indirect7/7,twin2/2,pipeline::library11/11,queue5/5,bindless3/3)victory-shader:emit::semantics_tests34/34,a_heap_buffer_read_where_no_buffer_view_is_reads_zerospassedcargo clippy --all-targets -- -D warnings(default &--features diagnostics) +cargo xtask policy(192 files ok): 0 warningsImported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-26T02:50:41Z.
Review: APPROVED
LGTM — reviewed the stack on top of #2969 (8db914232..cb61564dc).
The three real fixes check out:
bytes.is_empty() → nullis the correct fix — an empty Rust slice's pointer is non-null, and vkd3d-proton rejects a non-null pointer with zero length. The raw-vtableCreatePipelineLibrarycall withID3D12PipelineLibrary1::IID+from_rawis sound.WSAENETUNREACH/WSAHOST_NOT_FOUND+ aonce()log preserves the console-without-network answer instead of panicking; the export-presence test correctly moves these intoHOST_MAY_LACK.into_inner.Test-side changes verified:
wait_idlebumpssubmittedunder its lock before Signal — no fence-value collision with the submission path; the queue.rs present-test wait matches the documented vkd3d-proton#3524 hang.SharedDevice {device, queue}per adapter: command queues are free-threaded, WARP stays serialized, and the vkd3d fence-thread teardown motivation is real. Acceptable consequence: a device-removed event would now persist across tests — in practice that's fatal for the run anyway.under_wine()viawine_get_versionis the standard probe; both uses are cfg(test)/test-only.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T05:22:49Z.
Automated triage for the maintainers.
Merge candidate, to land after #2969 (recommending a look, not approving). Thanks for the split. The runtime fixes are now #3091 and #3092, the shared shader-test host is #3093, and the empty-library fix was dropped in favour of #1722. Apart from #2969's commit (
16080c4), the branch now changes only tests:dynamic_slots_are_held_until_released(descriptor/host.rs) first probes for aHEAP_VIEWS-slot heap. On a capped host it expects(4 + MIN_DYNAMIC, MIN_DYNAMIC), which matchesHostHeap::new'smake(count + MIN_DYNAMIC)branch onmain.hosts_that_do_not_fuse_are_namedkeeps the Windows WARP assertion and only reports the answer under Wine.xgamesave.rs, using the existingxmem::on_wine) skip under Wine with a reason printed.Host::wait_idle.On Windows, each change is either a skip that doesn't trigger or the original assertion. CI
checkpasses.Nits, none blocking:
under_wineis written twice, invictory-gpu/src/compute.rsandvictory-shader/src/emit/host.rs.a_heap_buffer_read_where_no_buffer_view_is_reads_zerosno longer fails when no adapter ran. On a machine with no SM 6.6 device it now passes silently.Its first commit is #2969, so merging #2969 first, then rebasing this, keeps the history clean.
Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T07:34:01Z.
Thanks. Split as suggested:
This PR now holds only test changes (body and results table updated). It stays on #2969 until that's decided; then I'll rebase it out.
On
crash.rs: the interleaving was within one process.concurrent_crash_records_stay_togetherwrites from several threads, and under Wine two records came out mixed. The lock doesn't cover two processes writing the same log. I haven't seen that case, and #3092 says so.Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T15:14:47Z.
Thanks for the two nits. Both are fixed in a follow-up commit,
d70de2e:under_wineis defined once now, invictory_shader::emit::host.victory-gpualready depends on that crate with thehostfeature, so the two GPU call sites use the shared helper, and the copy incompute.rsis gone.a_heap_buffer_read_where_no_buffer_view_is_reads_zerosnow prints a skip that names the test and the missing condition (an SM 6.6 device with a full view heap), following the existingeprintln!("...; skipped")convention, instead of passing without a word.Checked under Wine on the RTX 5090:
no SM 6.6 device with a 2097152-slot view heap; skipped.hosts_that_do_not_fuse_are_namedand the two memory tests that use the shared helper pass.cargo xtask policypass.AI-assisted (Claude); measured on my machine, no game data shared.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.