GPU tests: the library test's shaders compile with Wine's compiler too #2195
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2195
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2195"
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?
@winne42 on GitHub · 2026-11-25 07:25 UTC · original
winne42:gpu/library-test-without-embedded-root→main· +22 −7 · 1 files · 1 commits · openUnder Wine and Proton,
pipeline::library::tests::pipelines_load_on_many_threads_at_oncenever runs: it returns at "no shader compiler here". Wine'sd3dcompiler_47(vkd3d-shader) refuses the test's shader withE5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'. That happens with both Ubuntu's Wine 10.0 and Proton Experimental's Wine 11.0. A structured buffer doesn't help either (Structured buffers store is not implemented). And even a shader it does compile has no root signature in it, because it drops[RootSignature](W5302), soCreateRootSignature(0, &codes[0])would fail next.The change
One test, in
crates/victory-gpu/src/pipeline/library.rs. Nothing outside the test changes.[numthreads(i + 1, 1, 1)] void main() {}, with no resources. A load with another program's description is still refused, as the test checks.D3D12SerializeRootSignatureinstead of being taken from the shader.Depends on #1722 under vkd3d-proton
Once the test reaches the library, it calls
open(&device, Vec::new()).expect("an empty library"). vkd3d-proton refuses that non-null empty blob, which is what #1722 fixes. So under vkd3d-proton this test now fails until #1722 is merged, where it used to return early. On Windows nothing changes, because the length alone is checked there.Tested
Linux,
x86_64-pc-windows-msvccross-build (lld-link + xwin), Wine 10.0 with vkd3d-proton 3.1 and DXVKdxgifrom Proton Experimental, RTX 3050 Laptop GPU. Not run on Windows.cargo test -p victory-gpu --lib pipeline::librarygives 8 passed. All 96 programs compile, are stored, and load.an empty library, as described above.a_rejected_blob_gives_an_empty_libraryfails the same way onmain.cargo clippy -p victory-gpu --all-targets --locked -- -D warnings, with and without--all-features: clean.No game data was used.
🤖 Generated with Claude Code
pipelines_load_on_many_threads_at_once returned at "no shader compiler here" under Wine: Wine's d3dcompiler_47 (vkd3d-shader) refuses RWByteAddressBuffer.Load ("Method 'Load' is not defined") and stores to structured buffers ("not yet implemented"), and does not keep a [RootSignature] attribute in the code. The test never dispatches, so its 96 programs now differ by group size alone, with no resources, and the empty root signature is serialised apart. Under vkd3d-proton the test then reaches the library, and needs #1722 there (an empty library from a null blob). Co-Authored-By: Claude Opus 5.5 <[email protected]>@ntgata1-dotcom on GitHub · 2026-11-25 11:20 UTC · original
RX 9070 XT (RADV) under Wine 11.22: the test reaches the library, as described
Setup: Arch Linux, RX 9070 XT (RDNA4), RADV / Mesa 26.3.1. System Wine 11.22 with its builtin
d3dcompiler_47. vkd3d-protonv3.1-83-gcae8353edand DXVKdxgifrom GE-Proton11-14.cargo xwin test --locked --target x86_64-pc-windows-msvc --no-fail-fast -p victory-gpu, runnerwine.victory-gpupipelines_load_on_many_threads_at_oncemain940d32f55ac23fan empty libraryopen, as you describe.pipeline::librarytests pass. Outsidepipeline::library, no test changes againstmain.Not run: Windows.
AI-assisted (Claude Code); numbers from my own runs.
@Marvisak on GitHub · 2026-11-25 12:38 UTC · original
Automated triage for the maintainers.
Merge candidate (test only).
pipelines_load_on_many_threads_at_onceincrates/victory-gpu/src/pipeline/library.rsnow makes its distinct programs by group size alone ([numthreads(i + 1, 1, 1)]) and uses an empty serialized root signature. Before, it used raw-buffer access and an embedded root signature, which Wine'sd3dcompiler_47refuses. The test exercises library loads on many threads, so the shader bodies don't matter, and on Windows it covers the same thing as before.CI
checkpasses, and the branch merges cleanly.For the maintainers: under Wine this alone moves the test from silently skipped to failing at
an empty library. It passes together with #1722 (RX 9070 XT run in the thread). Land it with or after #1722.Generated by Claude Code
@fuzeofficlal on GitHub · 2026-11-26 01:01 UTC · original
Code review and RTX 5090 + WARP verification at head
55ac23fb446amerged cleanly ontomain(63bcca43c6a0):crates/victory-gpu/src/pipeline/library.rs:608-660):pipelines_load_on_many_threads_at_onceto[numthreads(i + 1, 1, 1)] void main() {}with an empty root signature (D3D12SerializeRootSignature), matchinga_pipeline_loads_while_a_save_holds_the_libraryand avoiding Wine compiler issues with[RootSignature(RS)]+RWByteAddressBuffer.2 * Nshaders still compile to distinct bytecodes, so concurrentload, mismatched-bytecode rejection, concurrentstore, andSerializelocking remain fully exercised.VICTORY_D3D12_DEBUG=1, Rust 1.98.1):cargo xtask policy:191 files ok;cargo clippy -p victory-gpu --all-targets -- -D warnings(default +--features diagnostics): 0 warningsvictory-gpu --lib -- pipeline::: 23/23 passed default on RTX 5090; 26/26 passed (--features diagnostics) on WARP.LGTM.
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.